Skip to content

Commit

Permalink
pre-commit autoupdate & move mypy config
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Feb 28, 2023
1 parent 71e203f commit abbd3d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/timothycrosley/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/python/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.0.1
hooks:
- id: mypy
args: ["--strict", "--show-error-codes"]
additional_dependencies:
- pronto
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ target-version = ['py38', 'py39', 'py310', 'py311']
# https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file
[tool.mypy]
python_version = "3.8"
strict = true
pretty = true
show_error_context = true

[[tool.mypy.overrides]]
module = [
Expand Down

0 comments on commit abbd3d2

Please sign in to comment.