Skip to content

Commit

Permalink
Move mypy check to a pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne committed Jan 1, 2021
1 parent c227673 commit 6ed320e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/qa.yml
Expand Up @@ -16,7 +16,6 @@ jobs:
matrix:
toxenv:
- checkqa
- mypy
- readme
python-version:
- "3.x"
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -17,6 +17,13 @@ repos:
language_version: python3
additional_dependencies:
- flake8-pytest-style
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
hooks:
- id: mypy
# Avoid error: Duplicate module named 'setup'
# https://github.com/python/mypy/issues/4008
exclude: ^tests/test_data/
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
Expand Down
6 changes: 0 additions & 6 deletions tox.ini
Expand Up @@ -3,7 +3,6 @@ envlist =
# NOTE: keep this in sync with the env list in .github/workflows/ci.yml.
py{36,37,38,39,py,py3}-pip{20.1,20.2,20.3,previous,latest,master}-coverage
checkqa
mypy
readme
skip_missing_interpreters = True

Expand Down Expand Up @@ -34,11 +33,6 @@ deps = pre-commit
commands_pre =
commands = pre-commit run --all-files --show-diff-on-failure

[testenv:mypy]
deps = mypy
commands_pre =
commands = mypy piptools

[testenv:readme]
deps = twine
commands_pre =
Expand Down

0 comments on commit 6ed320e

Please sign in to comment.