bidict/.pre-commit-config.yaml

61 lines
1.7 KiB
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: double-quote-string-fixer
# This stopped working so comment out for now (started applying to files that didn't need it):
# - id: fix-encoding-pragma
- id: check-yaml
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782
hooks:
- id: mypy
- repo: https://github.com/pycqa/pydocstyle
rev: 5.0.2
hooks:
- id: pydocstyle
exclude: bidict/_version.py
- repo: https://github.com/pycqa/flake8
# Keep in sync with flake8 version in setup.py --
# check https://github.com/pre-commit/pre-commit-hooks/blob/master/setup.py
# for the version of flake8 that is included with this pre-commit repo.
rev: 3.8.3
hooks:
- id: flake8
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs
# This stopped working so comment out for now (started applying to files that didn't need it):
# - id: insert-license
# files: \.py$
# args:
# # Renamed LICENSE_HEADER -> .LICENSE_HEADER to avoid confusing licensee
# # (https://github.com/benbalter/licensee - what GitHub uses to detect license)
# - --license-filepath=.LICENSE_HEADER
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.5.3
hooks:
- id: pylint
# Needed to avoid ImportErrors when linting tests (keep in sync with versions in setup.py):
additional_dependencies:
- hypothesis < 6
- pytest < 7
- Sphinx < 4
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.4
hooks:
- id: shellcheck