-
Notifications
You must be signed in to change notification settings - Fork 52
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
67 changed files
with
2,380 additions
and
801 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
docs/scripts/latex/*.png | ||
*-blx.bib | ||
*.asv | ||
*.aux | ||
|
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 |
---|---|---|
@@ -1,63 +1,124 @@ | ||
# Exclude every file or folder starting with a dot. | ||
exclude: ^(\.|\{\{cookiecutter\.project_slug\}\}/.+) | ||
exclude: ^(\.|{{cookiecutter\.project_slug}}/.+) | ||
|
||
repos: | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v3.8.5 | ||
hooks: | ||
- id: reorder-python-imports | ||
args: [--unclassifiable-application-module=src] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
args: ["--maxkb=100000"] # Set to max file size in Github | ||
- id: check-byte-order-marker | ||
types: [text] | ||
- id: check-merge-conflict | ||
- id: check-json | ||
- id: pretty-format-json | ||
args: [--autofix, --no-sort-keys, --no-ensure-ascii] | ||
- id: trailing-whitespace | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.1.0 | ||
hooks: | ||
- id: pyupgrade | ||
- id: check-added-large-files | ||
args: ['--maxkb=25'] | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-vcs-permalinks | ||
- id: check-yaml | ||
exclude: | | ||
(?x)^( | ||
{{cookiecutter.project_slug}}/environment.yml| | ||
{{cookiecutter.project_slug}}/.pre-commit-config.yaml | ||
)$ | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: mixed-line-ending | ||
- id: no-commit-to-branch | ||
args: [--branch, main] | ||
- id: trailing-whitespace | ||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.9.0 | ||
hooks: | ||
- id: python-check-blanket-noqa | ||
- id: python-check-mock-methods | ||
- id: python-no-eval | ||
- id: python-no-log-warn | ||
- id: python-use-type-annotations | ||
- id: text-unicode-replacement-char | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.37.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: v1.12.1 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [black] | ||
files: '(\.md|\.rst)$' | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
language_version: python3.9 | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
exclude: docs/bld/example/r/r_example/src/documentation/conf.py | ||
additional_dependencies: | ||
[ | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v3.8.1 | ||
hooks: | ||
- id: reorder-python-imports | ||
- repo: https://github.com/psf/black | ||
rev: 22.6.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/myint/docformatter | ||
rev: v1.3.1 | ||
hooks: | ||
- id: docformatter | ||
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [ | ||
flake8-alfred, | ||
flake8-bugbear, | ||
flake8-builtins, | ||
flake8-comprehensions, | ||
flake8-deprecated, | ||
flake8-docstrings, | ||
flake8-eradicate, | ||
flake8-print, | ||
flake8-rst-docstrings, | ||
flake8-pytest-style, | ||
flake8-todo, | ||
flake8-typing-imports, | ||
flake8-unused-arguments, | ||
pep8-naming, | ||
pydocstyle, | ||
] | ||
# Harmonizing flake8 and black | ||
args: | ||
[ | ||
"--max-line-length=88", | ||
"--ignore=E203,E402,E501,E800,W503", | ||
"--select=B,C,E,F,W,T4,B9", | ||
] | ||
Pygments, | ||
] | ||
args: [--exclude, "conf.py, docs/"] | ||
- repo: https://github.com/econchick/interrogate | ||
rev: 1.5.0 | ||
hooks: | ||
- id: interrogate | ||
args: [ | ||
-v, | ||
--fail-under=40, | ||
--config, | ||
pyproject.toml, | ||
--exclude, | ||
"{{cookiecutter.project_slug}}/" | ||
] | ||
pass_filenames: false | ||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.14 | ||
hooks: | ||
- id: mdformat | ||
additional_dependencies: [ | ||
mdformat-gfm, | ||
mdformat-black, | ||
] | ||
args: [--wrap, "88"] | ||
files: (README\.md) | ||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.14 | ||
hooks: | ||
- id: mdformat | ||
additional_dependencies: [ | ||
mdformat-myst, | ||
mdformat-black, | ||
] | ||
args: [--wrap, "88"] | ||
files: (docs/.) | ||
# Exclude files with admonitions. | ||
# exclude: | | ||
# (?x)^( | ||
# path/to/file.py | ||
# )$ | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.1.0 | ||
hooks: | ||
- id: codespell | ||
- repo: https://github.com/guilatrova/tryceratops | ||
rev: v1.1.0 | ||
hooks: | ||
- id: tryceratops | ||
exclude: "{{cookiecutter.project_slug}}/pyproject.toml" | ||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes | ||
# - id: identity # Prints all files passed to pre-commits. Debugging. |
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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ channels: | |
- nodefaults | ||
|
||
dependencies: | ||
- python=3.9 | ||
- python==3.9 | ||
- pip | ||
- setuptools_scm | ||
- toml | ||
|
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
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.