mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-28 05:34:13 -04:00
Add mypy checks
This commit is contained in:
parent
b6ca12ebff
commit
f54b7b2dbf
6 changed files with 73 additions and 63 deletions
6
.github/workflows/python-check.yml
vendored
6
.github/workflows/python-check.yml
vendored
|
@ -25,12 +25,16 @@ jobs:
|
|||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt
|
||||
python -m pip install flake8 pylint black
|
||||
python -m pip install flake8 pylint black mypy
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
|
||||
- name: Type check with mypy
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
mypy pyhon/
|
||||
# - name: Analysing the code with pylint
|
||||
# run: |
|
||||
# pylint --max-line-length 88 $(git ls-files '*.py')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue