diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9e2723afc3..b02f569fb52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,10 +9,17 @@ ci: # PR name when autoupdate autoupdate_commit_msg: 'ci: pre-commit autoupdate' + skip: [mypy] repos: +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.15.0 + hooks: + - id: mypy + args: [ --follow-imports=silent, --config-file=pyproject.toml] + - repo: https://github.com/ansys/pre-commit-hooks rev: v0.5.2 hooks: diff --git a/doc/changelog.d/3935.dependencies.md b/doc/changelog.d/3935.dependencies.md new file mode 100644 index 00000000000..bfcd7d4ef8a --- /dev/null +++ b/doc/changelog.d/3935.dependencies.md @@ -0,0 +1 @@ +ci: adding mypy support \ No newline at end of file diff --git a/doc/changelog.d/3940.dependencies.md b/doc/changelog.d/3940.dependencies.md new file mode 100644 index 00000000000..bfcd7d4ef8a --- /dev/null +++ b/doc/changelog.d/3940.dependencies.md @@ -0,0 +1 @@ +ci: adding mypy support \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 45f8db664c0..2d0083ec4ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -243,13 +243,15 @@ checks = [ # "EX01", # "No examples section found", ] - override_SS05 = [ # override SS05 to allow docstrings starting with these words # '^Process ', # '^Assess ', # '^Access ', ] +[tool.mypy] +disable_error_code = ["return-value", "return", "import-untyped", "import-not-found"] + [tool.towncrier] package = "ansys.mapdl.core" directory = "doc/changelog.d"