2022-12-05 18:17:52 -05:00
|
|
|
---
|
|
|
|
ci:
|
|
|
|
autoupdate_schedule: quarterly
|
2023-04-03 20:54:44 -04:00
|
|
|
default_language_version: python3.11
|
2022-12-05 18:17:52 -05:00
|
|
|
|
|
|
|
repos:
|
2022-12-06 16:52:30 -05:00
|
|
|
- repo: https://github.com/asottile/add-trailing-comma.git
|
2023-10-02 20:40:18 -04:00
|
|
|
rev: v3.1.0
|
2022-12-06 16:52:30 -05:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
|
|
|
|
|
|
|
- repo: https://github.com/PyCQA/isort.git
|
2024-01-01 13:18:37 -05:00
|
|
|
rev: 5.13.2
|
2022-12-06 16:52:30 -05:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
args:
|
|
|
|
- --honor-noqa
|
|
|
|
|
2022-12-05 18:17:52 -05:00
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
|
2024-05-16 11:39:26 -04:00
|
|
|
rev: v1.5.5
|
2022-12-05 18:17:52 -05:00
|
|
|
hooks:
|
|
|
|
- id: remove-tabs
|
|
|
|
|
|
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema.git
|
2024-05-16 11:39:26 -04:00
|
|
|
rev: 0.28.1
|
2022-12-05 18:17:52 -05:00
|
|
|
hooks:
|
2022-12-06 15:44:04 -05:00
|
|
|
- id: check-github-actions
|
2022-12-05 18:17:52 -05:00
|
|
|
- id: check-github-workflows
|
|
|
|
- id: check-jsonschema
|
|
|
|
name: Check GitHub Workflows set timeout-minutes
|
|
|
|
args:
|
|
|
|
- --builtin-schema
|
|
|
|
- github-workflows-require-timeout
|
|
|
|
files: ^\.github/workflows/[^/]+$
|
|
|
|
types:
|
|
|
|
- yaml
|
|
|
|
- id: check-readthedocs
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
2024-01-01 13:18:37 -05:00
|
|
|
rev: v4.5.0
|
2022-12-05 18:17:52 -05:00
|
|
|
hooks:
|
|
|
|
# Side-effects:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: mixed-line-ending
|
|
|
|
# Non-modifying checks:
|
2022-12-06 16:52:30 -05:00
|
|
|
- id: name-tests-test
|
|
|
|
files: >-
|
|
|
|
^tests/[^_].*\.py$
|
2022-12-05 18:17:52 -05:00
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-byte-order-marker
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-json
|
|
|
|
- id: check-symlinks
|
|
|
|
- id: check-yaml
|
|
|
|
- id: detect-private-key
|
2022-12-06 16:52:30 -05:00
|
|
|
# Heavy checks:
|
|
|
|
- id: check-ast
|
|
|
|
- id: debug-statements
|
|
|
|
language_version: python3
|
2022-12-05 18:17:52 -05:00
|
|
|
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2023-10-02 20:40:18 -04:00
|
|
|
rev: v2.2.6
|
2022-12-05 18:17:52 -05:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
|
|
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
2024-05-16 11:39:26 -04:00
|
|
|
rev: v1.35.1
|
2022-12-05 18:17:52 -05:00
|
|
|
hooks:
|
|
|
|
- id: yamllint
|
|
|
|
files: \.(yaml|yml)$
|
|
|
|
types:
|
|
|
|
- file
|
|
|
|
- yaml
|
|
|
|
args:
|
|
|
|
- --strict
|
|
|
|
|
2022-12-06 16:52:30 -05:00
|
|
|
- repo: https://github.com/PyCQA/flake8.git
|
2024-05-16 11:39:26 -04:00
|
|
|
rev: 7.0.0
|
2022-12-06 16:52:30 -05:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
args:
|
|
|
|
- --ignore
|
2024-05-16 11:39:26 -04:00
|
|
|
# NOTE: WPS326: Found implicit string concatenation
|
|
|
|
# NOTE: WPS332: Found walrus operator
|
2022-12-06 16:52:30 -05:00
|
|
|
- >-
|
|
|
|
D100,
|
|
|
|
D101,
|
|
|
|
D103,
|
|
|
|
D107,
|
|
|
|
E402,
|
|
|
|
E501,
|
|
|
|
WPS102,
|
|
|
|
WPS110,
|
|
|
|
WPS111,
|
|
|
|
WPS305,
|
2023-03-06 15:03:34 -05:00
|
|
|
WPS326,
|
|
|
|
WPS332,
|
2022-12-06 16:52:30 -05:00
|
|
|
WPS347,
|
|
|
|
WPS360,
|
|
|
|
WPS421,
|
|
|
|
WPS422,
|
|
|
|
WPS432,
|
|
|
|
WPS433,
|
|
|
|
WPS437,
|
|
|
|
WPS440,
|
|
|
|
WPS441,
|
|
|
|
WPS453,
|
|
|
|
additional_dependencies:
|
2024-05-16 11:39:26 -04:00
|
|
|
- flake8-2020 ~= 1.7.0
|
|
|
|
- flake8-pytest-style ~= 1.6.0
|
|
|
|
- wemake-python-styleguide ~= 0.19.0
|
2024-05-16 10:29:54 -04:00
|
|
|
language_version: python3.11 # flake8-commas doesn't work w/ Python 3.12
|
2022-12-06 16:52:30 -05:00
|
|
|
|
|
|
|
- repo: https://github.com/PyCQA/pylint.git
|
2024-05-16 11:39:26 -04:00
|
|
|
rev: v3.1.0
|
2022-12-06 16:52:30 -05:00
|
|
|
hooks:
|
|
|
|
- id: pylint
|
|
|
|
args:
|
|
|
|
- --disable
|
|
|
|
- >-
|
|
|
|
import-error,
|
|
|
|
invalid-name,
|
|
|
|
line-too-long,
|
|
|
|
missing-class-docstring,
|
|
|
|
missing-function-docstring,
|
|
|
|
missing-module-docstring,
|
|
|
|
protected-access,
|
|
|
|
super-init-not-called,
|
|
|
|
unused-argument,
|
|
|
|
wrong-import-position,
|
|
|
|
- --output-format
|
|
|
|
- colorized
|
|
|
|
|
2022-12-05 18:17:52 -05:00
|
|
|
...
|