Skip to content

Commit

Permalink
chore: update packages, docs (#296)
Browse files Browse the repository at this point in the history
* update to core DLL v2.4.7
* update doc site packages
* fix URLs to C# code
* remove LGTM (#292)
* remove issues bot
* remove obsolete badges
* update dependabot
* remove obsolete v0.8 branch trigger
* update unit tests
  • Loading branch information
DaveSkender authored Dec 30, 2022
1 parent aace0f3 commit 3e23e4c
Show file tree
Hide file tree
Showing 96 changed files with 266 additions and 228 deletions.
6 changes: 2 additions & 4 deletions .github/build.main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# MAIN BUILD
trigger:
- main
- V0.8

pr:
- main
- V0.8

jobs:
- job: Build
Expand All @@ -27,7 +25,7 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: "$(PythonVersion)"

- task: gitversion/setup@0
displayName: Use GitVersion
inputs:
Expand All @@ -38,7 +36,7 @@ jobs:
inputs:
useConfigFile: true
configFilePath: 'gitversion.yml'

- powershell: |
echo "Current version: $(GitVersion.SemVer)"
displayName: Shows GitVersion
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
50 changes: 50 additions & 0 deletions .github/workflows/a11y.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: test docs
on:
pull_request:
branches: [main]

jobs:
testing:
name: a11y
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: docs
ruby-version: 2.7.0
bundler-cache: true

- name: Install GEMs
working-directory: docs
run: |
pwd
BUNDLE_GEMFILE="${{github.workspace}}/docs/GemFile" bundle install
- name: Build site
working-directory: docs
run: BUNDLE_GEMFILE="${{github.workspace}}/docs/GemFile" bundle exec jekyll build

- name: Serve site
working-directory: docs
run: BUNDLE_GEMFILE="${{github.workspace}}/docs/GemFile" bundle exec jekyll serve --detach

- name: Show environment
working-directory: docs
run: npx pa11y --environment

- name: Test accessibility
working-directory: docs
run: |
npx pa11y-ci \
--sitemap http://127.0.0.1:4000/sitemap.xml \
--sitemap-exclude "/*.pdf"
13 changes: 0 additions & 13 deletions .github/workflows/issues.yml

This file was deleted.

19 changes: 6 additions & 13 deletions .github/workflows/test.yml → .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: test doc site
name: test docs
on:
pull_request:
branches: [main]

jobs:
testing:
name: a11y and URLs
name: URLs
runs-on: ubuntu-latest

steps:
Expand All @@ -15,7 +15,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: "16"
node-version: '16'

- name: Install Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -41,15 +41,8 @@ jobs:
- name: Test for broken URLs
working-directory: docs
run: |
BUNDLE_GEMFILE="${{github.workspace}}/docs/GemFile" bundle exec htmlproofer \
BUNDLE_GEMFILE="${{github.workspace}}/docs/GemFile" bundle exec htmlproofer _site \
--assume-extension \
--http-status-ignore "403,406,429,503,999" \
--url-swap "https\://daveskender.github.io/Stock.Indicators.Python:http\://127.0.0.1:4000" \
_site
- name: Test accessibility
working-directory: docs
run: |
npx pa11y-ci \
--sitemap http://127.0.0.1:4000/sitemap.xml \
--sitemap-exclude "/*.pdf"
--url-swap "https\://dotnet.stockindicators.dev:http\://127.0.0.1:4000" \
--url-ignore "/fonts.gstatic.com/"
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![PyPI](https://img.shields.io/pypi/v/stock-indicators?color=blue&label=PyPI)](https://badge.fury.io/py/stock-indicators)
[![code coverage](https://img.shields.io/azure-devops/coverage/skender/stock.indicators/26/main?logo=AzureDevOps&label=Test%20Coverage)](https://dev.azure.com/skender/Stock.Indicators/_build/latest?definitionId=26&branchName=main&view=codecoverage-tab)
[![Language grade](https://img.shields.io/lgtm/grade/python/g/DaveSkender/Stock.Indicators.Python.svg?logo=lgtm&logoWidth=18&label=code%20quality)](https://lgtm.com/projects/g/DaveSkender/Stock.Indicators.Python)

# Stock Indicators for Python

Expand Down
7 changes: 4 additions & 3 deletions docs/GemFile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
source 'https://rubygems.org'

# windows compatibilty pack
gem 'wdm', '>= 0.1.1' if Gem.win_platform?
gem 'eventmachine', '1.2.7', git: 'https://github.com/eventmachine/eventmachine', tag: 'v1.2.7'
gem 'wdm', '>= 0.1.1' if Gem.win_platform? # windows compatibilty pack
gem 'faraday-retry'

# jekyll plugins
# local dev: bundle exec jekyll serve
Expand All @@ -16,4 +17,4 @@ end

# validate URLs with:
# bundle exec htmlproofer --http-status-ignore '999' _site;
gem "html-proofer", "~> 3.19"
gem "html-proofer", "~> 3.19.3"
30 changes: 16 additions & 14 deletions docs/GemFile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
GIT
remote: https://github.com/eventmachine/eventmachine
revision: 9cb13a8a62363df5ebcc414169a3deb2c1608528
tag: v1.2.7
specs:
eventmachine (1.2.7)

GEM
remote: https://rubygems.org/
specs:
Expand All @@ -23,14 +30,13 @@ GEM
http_parser.rb (~> 0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
execjs (2.8.1)
faraday (2.6.0)
faraday (2.7.2)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
ffi (1.15.5)
faraday-retry (2.0.0)
faraday (~> 2.0)
ffi (1.15.5-x64-mingw32)
forwardable-extended (2.6.0)
gemoji (3.0.1)
Expand Down Expand Up @@ -224,11 +230,7 @@ GEM
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.16.3)
nokogiri (1.13.9-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.9-x64-mingw32)
racc (~> 1.4)
nokogiri (1.13.9-x86_64-darwin)
nokogiri (1.13.10-x64-mingw32)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
Expand All @@ -238,7 +240,7 @@ GEM
forwardable-extended (~> 2.6)
posix-spawn (0.3.15)
public_suffix (4.0.7)
racc (1.6.0)
racc (1.6.2)
rainbow (3.1.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
Expand Down Expand Up @@ -267,20 +269,20 @@ GEM
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unf_ext (0.0.8.2-x64-mingw32)
unicode-display_width (1.8.0)
wdm (0.1.1)
yell (2.2.2)
zeitwerk (2.6.6)

PLATFORMS
universal-darwin-21
x64-mingw32

DEPENDENCIES
eventmachine (= 1.2.7)!
faraday-retry
github-pages
html-proofer (~> 3.19)
html-proofer (~> 3.19.3)
jekyll-last-modified-at
jekyll-redirect-from
jekyll-remote-theme
Expand All @@ -289,4 +291,4 @@ DEPENDENCIES
wdm (>= 0.1.1)

BUNDLED WITH
2.3.22
2.2.32
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![PyPI](https://img.shields.io/pypi/v/stock-indicators?color=blue&label=PyPI)](https://badge.fury.io/py/stock-indicators)
[![code coverage](https://img.shields.io/azure-devops/coverage/skender/stock.indicators/26/main?logo=AzureDevOps&label=Test%20Coverage)](https://dev.azure.com/skender/Stock.Indicators/_build/latest?definitionId=26&branchName=main&view=codecoverage-tab)
[![Language grade](https://img.shields.io/lgtm/grade/python/g/DaveSkender/Stock.Indicators.Python.svg?logo=lgtm&logoWidth=18&label=code%20quality)](https://lgtm.com/projects/g/DaveSkender/Stock.Indicators.Python)

**Stock Indicators for Python** is a library that produces financial market technical indicators. Send in historical price quotes and get back desired indicators such as moving averages, Relative Strength Index, Stochastic Oscillator, Parabolic SAR, etc. Nothing more.

Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Adl.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ Created by Marc Chaikin, the [Accumulation/Distribution Line/Index](https://en.w

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Adl/Adl.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Adl/Adl.Series.cs)
- [Python wrapper]({{site.sourceurl}}/adl.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Adx.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ Created by J. Welles Wilder, the [Average Directional Movement Index](https://en

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Adx/Adx.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Adx/Adx.Series.cs)
- [Python wrapper]({{site.sourceurl}}/adx.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Alligator.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ Created by Bill Williams, Alligator is a depiction of three smoothed moving aver

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Alligator/Alligator.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Alligator/Alligator.Series.cs)
- [Python wrapper]({{site.sourceurl}}/alligator.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Alma.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ Created by Arnaud Legoux and Dimitrios Kouzis-Loukas, [ALMA]({{site.github.base_

#### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Alma/Alma.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Alma/Alma.Series.cs)
- [Python wrapper]({{site.sourceurl}}/alma.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Aroon.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ Created by Tushar Chande, [Aroon](https://school.stockcharts.com/doku.php?id=tec

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Aroon/Aroon.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Aroon/Aroon.Series.cs)
- [Python wrapper]({{site.sourceurl}}/aroon.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Atr.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ Created by J. Welles Wilder, [Average True Range](https://en.wikipedia.org/wiki/

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Atr/Atr.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Atr/Atr.Series.cs)
- [Python wrapper]({{site.sourceurl}}/atr.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ Created by Bill Williams, the Awesome Oscillator (aka Super AO) is a measure of

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Awesome/Awesome.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Awesome/Awesome.Series.cs)
- [Python wrapper]({{site.sourceurl}}/awesome.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ results = indicators.get_beta(history_SPX, history_TSLA, 20, BetaType.STANDARD)

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Beta/Beta.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Beta/Beta.Series.cs)
- [Python wrapper]({{site.sourceurl}}/beta.py)
2 changes: 1 addition & 1 deletion docs/_indicators/BollingerBands.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ Created by John Bollinger, [Bollinger Bands](https://en.wikipedia.org/wiki/Bolli

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/BollingerBands/BollingerBands.cs)
- [C# core]({{site.base_sourceurl}}/a-d/BollingerBands/BollingerBands.Series.cs)
- [Python wrapper]({{site.sourceurl}}/bollinger_bands.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Bop.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ Created by Igor Levshin, the [Balance of Power](https://school.stockcharts.com/d

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Bop/Bop.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Bop/Bop.Series.cs)
- [Python wrapper]({{site.sourceurl}}/bop.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Cci.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ Created by Donald Lambert, the [Commodity Channel Index](https://en.wikipedia.or

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Cci/Cci.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Cci/Cci.Series.cs)
- [Python wrapper]({{site.sourceurl}}/cci.py)
2 changes: 1 addition & 1 deletion docs/_indicators/ChaikinOsc.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ Created by Marc Chaikin, the [Chaikin Oscillator](https://en.wikipedia.org/wiki/

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/ChaikinOsc/ChaikinOsc.cs)
- [C# core]({{site.base_sourceurl}}/a-d/ChaikinOsc/ChaikinOsc.Series.cs)
- [Python wrapper]({{site.sourceurl}}/chaikin_oscillator.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Chandelier.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ Created by Charles Le Beau, the [Chandelier Exit](https://school.stockcharts.com

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Chandelier/Chandelier.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Chandelier/Chandelier.Series.cs)
- [Python wrapper]({{site.sourceurl}}/chandelier.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Chop.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ Created by E.W. Dreiss, the Choppiness Index measures the trendiness or choppine

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Chop/Chop.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Chop/Chop.Series.cs)
- [Python wrapper]({{site.sourceurl}}/chop.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Cmf.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ Created by Marc Chaikin, [Chaikin Money Flow](https://en.wikipedia.org/wiki/Chai

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Cmf/Cmf.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Cmf/Cmf.Series.cs)
- [Python wrapper]({{site.sourceurl}}/cmf.py)
2 changes: 1 addition & 1 deletion docs/_indicators/ConnorsRsi.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ Created by Laurence Connors, the [ConnorsRSI](https://alvarezquanttrading.com/wp

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/ConnorsRsi/ConnorsRsi.cs)
- [C# core]({{site.base_sourceurl}}/a-d/ConnorsRsi/ConnorsRsi.Series.cs)
- [Python wrapper]({{site.sourceurl}}/connors_rsi.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Correlation.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ results = indicators.get_correlation(quotes_spx, quotes_tsla, 20)

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Correlation/Correlation.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Correlation/Correlation.Series.cs)
- [Python wrapper]({{site.sourceurl}}/correlation.py)
4 changes: 2 additions & 2 deletions docs/_indicators/Dema.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ See related [EMA](../Ema#content) and [Triple EMA](../Tema#content).

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Dema/Dema.cs)
- [Python wrapper]({{site.sourceurl}}/double_ema.py)
- [C# core]({{site.base_sourceurl}}/a-d/Dema/Dema.Series.cs)
- [Python wrapper]({{site.sourceurl}}/dema.py)
2 changes: 1 addition & 1 deletion docs/_indicators/Doji.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ results = indicators.get_doji(quotes);

### Sources

- [C# core]({{site.base_sourceurl}}/a-d/Doji/Doji.cs)
- [C# core]({{site.base_sourceurl}}/a-d/Doji/Doji.Series.cs)
- [Python wrapper]({{site.sourceurl}}/doji.py)
Loading

0 comments on commit 3e23e4c

Please sign in to comment.