2021-04-05 14:08:52 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-01-25 00:47:46 +03:00
|
|
|
rev: v4.5.0
|
2021-04-05 14:08:52 +03:00
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-json
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-symlinks
|
|
|
|
- id: check-toml
|
|
|
|
- repo: https://github.com/pycqa/isort
|
2024-01-25 00:47:46 +03:00
|
|
|
rev: 5.13.2
|
2021-04-05 14:08:52 +03:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
2021-04-06 19:49:17 +03:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2024-01-25 00:47:46 +03:00
|
|
|
rev: 7.0.0
|
2021-04-05 14:08:52 +03:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
additional_dependencies:
|
|
|
|
- flake8-tidy-imports
|
2023-10-13 14:44:45 +03:00
|
|
|
- repo: https://github.com/adamchainz/blacken-docs
|
2024-01-25 00:47:46 +03:00
|
|
|
rev: 1.16.0
|
2023-10-13 14:44:45 +03:00
|
|
|
hooks:
|
|
|
|
- id: blacken-docs
|
|
|
|
exclude: ^(?!docs).*$
|
|
|
|
additional_dependencies:
|
|
|
|
- black==23.1.0
|
2024-02-28 14:01:49 +03:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
|
|
# Configuration for codespell is in .codespellrc
|
|
|
|
rev: v2.2.6
|
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
exclude: locale|kickstarter-announcement.md|coreapi-0.1.1.js
|
2024-10-16 14:51:27 +03:00
|
|
|
additional_dependencies:
|
|
|
|
# python doesn't come with a toml parser prior to 3.11
|
|
|
|
- "tomli; python_version < '3.11'"
|