diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e9e574297f6e6a1c35fb16a549c96153cedd297..5e6ec82aee66b18ca7303f3d2b7dde96c0ce403d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,7 +49,7 @@ type: extends: .code_changes stage: checks script: - - mypy duniterpy tests examples --ignore-missing-imports + - mypy duniterpy tests examples lint: extends: .code_changes diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df6eebe9089829186fef76f27f94fd7e4c5f18d0..1baaf3357dcaae136c55c67b6a829422e6989d94 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: args: ["--profile", "black"] exclude: ^docs/ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.812 + rev: v0.910 hooks: - id: mypy exclude: ^docs/ diff --git a/pyproject.toml b/pyproject.toml index 94fdbda68cd111adf3f1ec44b33d166bf0047469..68913d70751c0ef8cb5bb239482604d5f2845145 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ mnemonic = "^0.19" [tool.poetry.dev-dependencies] black = {version = "^21.4b2", allow-prereleases = true} -mypy = "^0.790" +mypy = "^0.910" pylint = "^2.7.2" pre-commit = "^2.12.1" sphinx = "^3.2.1" @@ -52,3 +52,6 @@ src_paths = ["duniterpy", "tests", "examples"] disable = "C,E0401,R0401,R0801,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613" enable = "C0121,C0202,C0321" jobs = 0 + +[tool.mypy] +ignore_missing_imports = true