2024-05-11 15:35:36 +08:00
|
|
|
|
2024-02-06 03:20:31 +08:00
|
|
|
- id: pyproject-fmt
|
|
|
|
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
|
|
|
|
additional_dependencies: ["tox>=4.9"]
|
2018-05-24 20:17:09 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
2024-04-28 22:11:11 +08:00
|
|
|
- id: pylint
|
|
|
|
name: pylint
|
|
|
|
entry: pylint
|
|
|
|
language: system
|
|
|
|
types: [python]
|
|
|
|
args: ["-rn", "-sn", "--fail-on=I"]
|
|
|
|
stages: [manual]
|
2018-05-24 20:17:09 +08:00
|
|
|
- id: rst
|
|
|
|
name: rst
|
2018-05-26 09:16:54 +08:00
|
|
|
entry: rst-lint --encoding utf-8
|
2020-01-25 22:31:21 +08:00
|
|
|
files: ^(RELEASING.rst|README.rst|TIDELIFT.rst)$
|
2018-05-24 20:17:09 +08:00
|
|
|
language: python
|
|
|
|
additional_dependencies: [pygments, restructuredtext_lint]
|
2018-08-02 06:21:34 +08:00
|
|
|
- id: changelogs-rst
|
2018-09-08 00:32:36 +08:00
|
|
|
name: changelog filenames
|
|
|
|
language: fail
|
2019-12-06 19:47:39 +08:00
|
|
|
entry: 'changelog files must be named ####.(breaking|bugfix|deprecation|doc|feature|improvement|trivial|vendor).rst'
|
|
|
|
exclude: changelog/(\d+\.(breaking|bugfix|deprecation|doc|feature|improvement|trivial|vendor).rst|README.rst|_template.rst)
|
2018-09-08 00:32:36 +08:00
|
|
|
files: ^changelog/
|
2019-01-21 03:59:48 +08:00
|
|
|
- id: py-deprecated
|
|
|
|
name: py library is deprecated
|
|
|
|
language: pygrep
|
2019-01-22 11:46:57 +08:00
|
|
|
entry: >
|
|
|
|
(?x)\bpy\.(
|
|
|
|
_code\.|
|
|
|
|
builtin\.|
|
|
|
|
code\.|
|
2020-07-24 15:20:37 +08:00
|
|
|
io\.|
|
2019-01-22 11:46:57 +08:00
|
|
|
path\.local\.sysfind|
|
|
|
|
process\.|
|
2020-07-24 15:20:37 +08:00
|
|
|
std\.|
|
|
|
|
error\.|
|
|
|
|
xml\.
|
2019-01-22 11:46:57 +08:00
|
|
|
)
|
2019-01-21 03:59:48 +08:00
|
|
|
types: [python]
|
2021-02-22 16:43:52 +08:00
|
|
|
- id: py-path-deprecated
|
|
|
|
name: py.path usage is deprecated
|
2022-05-17 19:09:21 +08:00
|
|
|
exclude: docs|src/_pytest/deprecated.py|testing/deprecated_test.py|src/_pytest/legacypath.py
|
2021-02-22 16:43:52 +08:00
|
|
|
language: pygrep
|
|
|
|
entry: \bpy\.path\.local
|
|
|
|
types: [python]
|