Skip to content

Commit

Permalink
feat(mypy): from tox to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianMaurin authored and JulianMaurin committed Aug 2, 2022
1 parent fc5b94e commit 48bff7d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ repos:
hooks:
- id: check-manifest
args: [--no-build-isolation]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.971"
hooks:
- id: mypy
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
requires = ["setuptools"]
build-backend = "setuptools.build_meta"


[tool.coverage.run]
parallel = true
branch = true
Expand All @@ -14,8 +13,13 @@ source = ["jwt", ".tox/*/site-packages"]
[tool.coverage.report]
show_missing = true


[tool.isort]
profile = "black"
atomic = true
combine_as_imports = true

[tool.mypy]
python_version = 3.7
ignore_missing_imports = true
warn_unused_ignores = true
no_implicit_optional = true
7 changes: 0 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ dev =
types-cryptography>=3.3.21
pytest>=6.0.0,<7.0.0
coverage[toml]==5.0.4
mypy
pre-commit

[options.packages.find]
Expand All @@ -67,9 +66,3 @@ exclude =

[flake8]
extend-ignore = E203, E501

[mypy]
python_version = 3.7
ignore_missing_imports = true
warn_unused_ignores = true
no_implicit_optional = true
6 changes: 0 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ commands =
python -m doctest README.rst


[testenv:typing]
basepython = python3.8
extras = dev
commands = mypy jwt


[testenv:lint]
basepython = python3.8
extras = dev
Expand Down

0 comments on commit 48bff7d

Please sign in to comment.