Created
September 24, 2023 09:14
-
-
Save tgran2028/ac3a7d8785bf825e273066be50af9966 to your computer and use it in GitHub Desktop.
pre-commit config template
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
# Install pre-commit hooks via | |
# pre-commit install | |
exclude: > | |
(?x)^( | |
\.vscode/settings\.json| | |
tests/commonmark/commonmark\.json| | |
.*\.xml| | |
tests/.*\.txt | |
)$ | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.4.0 | |
hooks: | |
- id: check-json | |
- id: check-yaml | |
- id: end-of-file-fixer | |
- id: trailing-whitespace | |
- repo: https://github.com/asottile/pyupgrade | |
rev: v3.10.1 | |
hooks: | |
- id: pyupgrade | |
args: [--py37-plus] | |
- repo: https://github.com/PyCQA/isort | |
rev: 5.12.0 | |
hooks: | |
- id: isort | |
- repo: https://github.com/psf/black | |
rev: 23.9.1 | |
hooks: | |
- id: black | |
- repo: https://github.com/PyCQA/flake8 | |
rev: 6.1.0 | |
hooks: | |
- id: flake8 | |
additional_dependencies: [flake8-bugbear] | |
- repo: https://github.com/pre-commit/mirrors-mypy | |
rev: v1.5.1 | |
hooks: | |
- id: mypy | |
args: [--config-file=pyproject.toml] | |
additional_dependencies: | |
- importlib_metadata | |
- myst-parser~=1.0.0 | |
- "sphinx~=5.0" | |
- nbclient | |
- types-PyYAML | |
files: > | |
(?x)^( | |
myst_nb/.+\.py| | |
)$ | |
- repo: https://github.com/codespell-project/codespell | |
rev: v2.2.5 | |
hooks: | |
- id: codespell | |
args: ["-S", "*.ipynb"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment