From 27d0f9297e43730dbbf8ec4080354249500f8cb5 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Thu, 24 Jun 2021 21:09:36 +0200 Subject: [PATCH] [mypy] Add support for mypy v0.910 https://mypy-lang.blogspot.com/2021/06/mypy-0910-released.html https://mypy-lang.blogspot.com/2021/06/mypy-0900-released.html With pyproject configuration support move option to the configuration https://mypy.readthedocs.io/en/stable/config_file.html?highlight=pyproject#using-a-pyproject-toml-file Update to v0.910 in pyproject.toml and .pre-commit-config.yml --- .gitlab-ci.yml | 2 +- .pre-commit-config.yaml | 2 +- pyproject.toml | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e9e5742..5e6ec82a 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 df6eebe9..1baaf335 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 94fdbda6..68913d70 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 -- GitLab