2017-11-21 15:35:51 +00:00
|
|
|
repos:
|
2021-12-24 19:06:47 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-07-01 20:30:25 +00:00
|
|
|
rev: v4.3.0
|
2021-12-24 19:06:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: double-quote-string-fixer
|
|
|
|
- id: check-yaml
|
2015-12-21 03:05:20 +00:00
|
|
|
|
2022-10-23 12:38:52 +00:00
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
|
|
rev: v1.3.1
|
|
|
|
hooks:
|
|
|
|
- id: forbid-crlf
|
|
|
|
- id: remove-crlf
|
|
|
|
- id: forbid-tabs
|
|
|
|
- id: remove-tabs
|
|
|
|
|
2021-12-24 19:06:47 +00:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2022-10-29 16:45:14 +00:00
|
|
|
rev: v2.2.2
|
2021-12-24 19:06:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
2022-08-22 17:50:03 +00:00
|
|
|
args: ["--uri-ignore-words-list", "*"] # https://github.com/codespell-project/codespell/issues/2473
|
2021-04-24 17:27:17 +00:00
|
|
|
|
2021-12-24 19:06:47 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2022-10-29 16:45:14 +00:00
|
|
|
rev: v0.982
|
2021-12-24 19:06:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2022-01-31 21:30:18 +00:00
|
|
|
exclude: setup.py|docs/conf.py|tests
|
2020-07-30 13:31:03 +00:00
|
|
|
|
2021-12-24 19:06:47 +00:00
|
|
|
- repo: https://github.com/pycqa/pydocstyle
|
|
|
|
rev: 6.1.1
|
|
|
|
hooks:
|
|
|
|
- id: pydocstyle
|
2022-02-06 17:28:12 +00:00
|
|
|
exclude: setup.py|docs/conf.py|tests
|
2017-11-21 15:35:51 +00:00
|
|
|
|
2021-12-24 19:06:47 +00:00
|
|
|
- repo: https://github.com/pycqa/flake8
|
2022-08-06 19:54:13 +00:00
|
|
|
rev: 5.0.4
|
2021-12-24 19:06:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2020-07-27 13:15:01 +00:00
|
|
|
|
2022-10-01 16:32:33 +00:00
|
|
|
- repo: https://github.com/dosisod/refurb
|
2022-10-29 16:45:14 +00:00
|
|
|
rev: v1.4.0
|
2022-10-01 16:32:33 +00:00
|
|
|
hooks:
|
|
|
|
- id: refurb
|
2022-10-29 16:45:14 +00:00
|
|
|
args: ["--config-file", ".refurb.toml"]
|
2022-10-01 16:32:33 +00:00
|
|
|
|
2022-10-23 12:38:52 +00:00
|
|
|
- repo: https://github.com/RobertCraigie/pyright-python
|
2022-11-02 23:12:37 +00:00
|
|
|
rev: v1.1.278
|
2022-10-23 12:38:52 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyright
|
|
|
|
|
2021-12-24 19:06:47 +00:00
|
|
|
# https://pre-commit.com/#repository-local-hooks
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: pylint
|
|
|
|
name: pylint
|
|
|
|
entry: pylint
|
|
|
|
language: system
|
|
|
|
types: [python]
|
2022-02-06 17:28:12 +00:00
|
|
|
exclude: setup.py|run_tests.py|docs/conf.py
|