Updating tests : workflows + pre-commit (#992)

* Updating tests : workflows + pre-commit

* Updating tests : fixing mypy on pre-commit
This commit is contained in:
Chavithra
2021-11-28 05:51:07 +01:00
committed by GitHub
parent ca45eaea2e
commit cb6c1d4850
2 changed files with 6 additions and 4 deletions

View File

@@ -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: |

View File

@@ -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