-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
543 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
fail_fast: True | ||
|
||
ci: | ||
# Commit name when auto fixing PRs. | ||
autofix_commit_msg: | | ||
ci: auto fixes from pre-commit.com hooks. | ||
for more information, see https://pre-commit.ci | ||
# PR name when autoupdate | ||
autoupdate_commit_msg: 'ci: pre-commit autoupdate' | ||
|
||
|
||
repos: | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/numpy/numpydoc | ||
rev: v1.8.0 | ||
hooks: | ||
- id: numpydoc-validation | ||
exclude: | | ||
(?x)( | ||
tests/| | ||
examples| | ||
doc/source/| | ||
src/ansys/mapdl/core/_commands| | ||
src/ansys/mapdl/core/commands | ||
) | ||
- repo: https://github.com/psf/black | ||
rev: 24.10.0 # If version changes --> modify "blacken-docs" manually as well. | ||
hooks: | ||
- id: black | ||
args: | ||
- --line-length=88 | ||
|
||
- repo: https://github.com/adamchainz/blacken-docs | ||
rev: 1.19.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [black==24.10.0] | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.1.1 | ||
hooks: | ||
- id: flake8 | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.3.0 | ||
hooks: | ||
- id: codespell | ||
args: ["--toml", "pyproject.toml"] | ||
additional_dependencies: ["tomli"] | ||
|
||
# - repo: https://github.com/pycqa/pydocstyle | ||
# rev: 6.1.1 | ||
# hooks: | ||
# - id: pydocstyle | ||
# additional_dependencies: [toml] | ||
# exclude: "tests/" | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
|
||
# this validates our github workflow files | ||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.29.4 | ||
hooks: | ||
- id: check-github-workflows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.