Skip to content

Commit

Permalink
🧪 Run MyPy across the range of Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jan 13, 2024
1 parent 680fbbf commit a610b6e
Showing 1 changed file with 48 additions and 6 deletions.
54 changes: 48 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,60 @@ repos:
rev: v0.991
hooks:
- id: mypy
alias: mypy-py38
name: MyPy, for Python 3.8
alias: mypy-py313
name: MyPy, for Python 3.13
additional_dependencies:
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest
args:
- --install-types
- --non-interactive
- --python-version=3.8
- --txt-report=.tox/.tmp/.mypy/python-3.8
- --cobertura-xml-report=.tox/.tmp/.mypy/python-3.8
- --html-report=.tox/.tmp/.mypy/python-3.8
- --python-version=3.13
- --txt-report=.tox/.tmp/.mypy/python-3.13
- --cobertura-xml-report=.tox/.tmp/.mypy/python-3.13
- --html-report=.tox/.tmp/.mypy/python-3.13
pass_filenames: false
- id: mypy
alias: mypy-py311
name: MyPy, for Python 3.11
additional_dependencies:
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest
args:
- --install-types
- --non-interactive
- --python-version=3.11
- --txt-report=.tox/.tmp/.mypy/python-3.11
- --cobertura-xml-report=.tox/.tmp/.mypy/python-3.11
- --html-report=.tox/.tmp/.mypy/python-3.11
pass_filenames: false
- id: mypy
alias: mypy-py39
name: MyPy, for Python 3.9
additional_dependencies:
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest
args:
- --install-types
- --non-interactive
- --python-version=3.9
- --txt-report=.tox/.tmp/.mypy/python-3.9
- --cobertura-xml-report=.tox/.tmp/.mypy/python-3.9
- --html-report=.tox/.tmp/.mypy/python-3.9
pass_filenames: false
- id: mypy
alias: mypy-py37
name: MyPy, for Python 3.7
additional_dependencies:
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest
args:
- --install-types
- --non-interactive
- --python-version=3.7
- --txt-report=.tox/.tmp/.mypy/python-3.7
- --cobertura-xml-report=.tox/.tmp/.mypy/python-3.7
- --html-report=.tox/.tmp/.mypy/python-3.7
pass_filenames: false

...

0 comments on commit a610b6e

Please sign in to comment.