Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
aaefa62
maint: adding mypy pre-commit hook.
germa89 Oct 14, 2024
d98af0a
maint: adding mypy pre-commit hook
germa89 Oct 14, 2024
f665910
chore: merge remote-tracking branch 'origin/main' into maint/annotati…
germa89 May 20, 2025
82eac39
fix: format mypy arguments in pre-commit configuration
germa89 May 20, 2025
8df26ae
chore: adding changelog file 3935.maintenance.md [dependabot-skip]
pyansys-ci-bot May 20, 2025
1132d6a
fix: add type ignore comment for Theme class definition
germa89 May 20, 2025
8315814
Merge branch 'maint/annotating-some-files' of https://github.com/ansy…
germa89 May 20, 2025
51bb17d
feat: adding mypy precommit hook
germa89 May 20, 2025
2e5b6cf
refactor: annotation
germa89 May 20, 2025
27d2afe
chore: adding changelog file 3935.dependencies.md [dependabot-skip]
pyansys-ci-bot May 20, 2025
a12d3b8
refactor: enhance type hints and annotations in launcher.py
germa89 May 21, 2025
ccc46ce
refactor: enhance type hints and annotations in commands.py
germa89 May 21, 2025
4638b44
refactor: update return type annotation for launch_mapdl_on_cluster f…
germa89 May 21, 2025
cad9314
Merge branch 'main' into maint/annotating-some-files
germa89 May 21, 2025
e0c5cd2
refactor: removing assert
germa89 May 21, 2025
af7f97d
feat: removing bandit exception
germa89 May 21, 2025
fcbaa0f
refactor: skip mypy checks in pre-commit configuration
germa89 May 21, 2025
0fffa0c
revert: typings in files
germa89 May 21, 2025
e162f18
chore: adding changelog file 3940.dependencies.md [dependabot-skip]
pyansys-ci-bot May 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3935.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: adding mypy support
1 change: 1 addition & 0 deletions doc/changelog.d/3940.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: adding mypy support
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down