48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
|
|
- id: pyproject-fmt
|
|
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
|
|
additional_dependencies: ["tox>=4.9"]
|
|
- repo: local
|
|
hooks:
|
|
- id: pylint
|
|
name: pylint
|
|
entry: pylint
|
|
language: system
|
|
types: [python]
|
|
args: ["-rn", "-sn", "--fail-on=I"]
|
|
stages: [manual]
|
|
- id: rst
|
|
name: rst
|
|
entry: rst-lint --encoding utf-8
|
|
files: ^(RELEASING.rst|README.rst|TIDELIFT.rst)$
|
|
language: python
|
|
additional_dependencies: [pygments, restructuredtext_lint]
|
|
- id: changelogs-rst
|
|
name: changelog filenames
|
|
language: fail
|
|
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)
|
|
files: ^changelog/
|
|
- id: py-deprecated
|
|
name: py library is deprecated
|
|
language: pygrep
|
|
entry: >
|
|
(?x)\bpy\.(
|
|
_code\.|
|
|
builtin\.|
|
|
code\.|
|
|
io\.|
|
|
path\.local\.sysfind|
|
|
process\.|
|
|
std\.|
|
|
error\.|
|
|
xml\.
|
|
)
|
|
types: [python]
|
|
- id: py-path-deprecated
|
|
name: py.path usage is deprecated
|
|
exclude: docs|src/_pytest/deprecated.py|testing/deprecated_test.py|src/_pytest/legacypath.py
|
|
language: pygrep
|
|
entry: \bpy\.path\.local
|
|
types: [python]
|