Move mypy to pre-commit
This commit is contained in:
parent
0266a32b5b
commit
2b9e5fa5d0
|
@ -71,3 +71,12 @@ repos:
|
|||
additional_dependencies:
|
||||
- eslint@^7.29.0
|
||||
- eslint-config-prettier@^8.3.0
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: mypy
|
||||
name: mypy
|
||||
entry: mypy
|
||||
language: system
|
||||
types: [python]
|
||||
exclude: tasks.py$
|
||||
args: ["--cache-dir=/dev/null"]
|
||||
|
|
|
@ -63,7 +63,6 @@ env = [
|
|||
|
||||
[tool.mypy]
|
||||
mypy_path = "$MYPY_CONFIG_FILE_DIR/stubs:$MYPY_CONFIG_FILE_DIR/src"
|
||||
exclude = "/migrations/"
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
|
|
|
@ -7,7 +7,7 @@ class Migration(migrations.Migration):
|
|||
|
||||
initial = True
|
||||
|
||||
dependencies = []
|
||||
dependencies: list[str] = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
|
|
Reference in a new issue