mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 22:11:55 +00:00
Updating tests : workflows + pre-commit (#992)
* Updating tests : workflows + pre-commit * Updating tests : fixing mypy on pre-commit
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -30,9 +30,9 @@ jobs:
|
||||
- run: pip install types-pytz types-requests types-termcolor types-tabulate types-PyYAML types-python-dateutil
|
||||
- run: bandit -x ./tests -r . || true
|
||||
- run: black --check .
|
||||
- run: codespell --ignore-words-list=ba,buil,coo,ether,hist,hsi,mape,navagation,operatio,pres,ser,yeld --quiet-level=2 --skip="./tests,.git,*.css,*.csv,*.html,*.ini,*.ipynb,*.js,*.json,*.lock,*.scss,*.txt,*.yaml"
|
||||
- run: codespell --ignore-words-list=ba,buil,coo,ether,hist,hsi,mape,navagation,operatio,pres,ser,yeld --quiet-level=2 --skip=./tests,.git,*.css,*.csv,*.html,*.ini,*.ipynb,*.js,*.json,*.lock,*.scss,*.txt,*.yaml
|
||||
- run: flake8 . --count --ignore=E203,W503 --max-line-length=122 --show-source --statistics
|
||||
- run: mypy --ignore-missing-imports --exclude '/setup\.py$' .
|
||||
- run: mypy --ignore-missing-imports --exclude="/setup\.py$" .
|
||||
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py
|
||||
- run: safety check
|
||||
- run: |
|
||||
|
||||
6
.pre-commit-config.yaml
vendored
6
.pre-commit-config.yaml
vendored
@@ -4,7 +4,9 @@ repos:
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
exclude_types: [css, markdown, text, svg]
|
||||
- id: trailing-whitespace
|
||||
exclude_types: [html, markdown, text]
|
||||
- id: check-merge-conflict
|
||||
- id: detect-private-key
|
||||
- repo: https://github.com/psf/black
|
||||
@@ -21,12 +23,12 @@ repos:
|
||||
hooks:
|
||||
- id: codespell
|
||||
entry: codespell
|
||||
args: [ '--ignore-words-list=ba,buil,coo,ether,hist,hsi,mape,navagation,operatio,pres,ser,yeld', '--quiet-level=2', '--skip="./tests,.git,*.css,*.csv,*.html,*.ini,*.ipynb,*.js,*.json,*.lock,*.scss,*.txt,*.yaml"' ]
|
||||
args: [ '--ignore-words-list=ba,buil,coo,ether,hist,hsi,mape,navagation,operatio,pres,ser,yeld', '--quiet-level=2', '--skip=./tests,.git,*.css,*.csv,*.html,*.ini,*.ipynb,*.js,*.json,*.lock,*.scss,*.txt,*.yaml' ]
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: 'v0.812'
|
||||
hooks:
|
||||
- id: mypy
|
||||
args: [ '--ignore-missing-imports', '--exclude "/setup\.py$"', '.']
|
||||
args: [ '--ignore-missing-imports', '--exclude=/setup\.py$', '.']
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: pylint
|
||||
|
||||
Reference in New Issue
Block a user