2017-11-21 15:35:51 +00:00
|
|
|
repos:
|
2018-08-13 17:57:07 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2020-07-27 13:15:01 +00:00
|
|
|
rev: v3.1.0
|
2017-11-21 15:35:51 +00:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: double-quote-string-fixer
|
2018-12-28 02:27:56 +00:00
|
|
|
# This stopped working so comment out for now (started applying to files that didn't need it):
|
|
|
|
# - id: fix-encoding-pragma
|
2017-11-21 15:35:51 +00:00
|
|
|
- id: check-yaml
|
2015-12-21 03:05:20 +00:00
|
|
|
|
2020-08-01 18:26:08 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
rev: v0.782
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2020-07-30 13:31:03 +00:00
|
|
|
|
2020-07-27 13:15:01 +00:00
|
|
|
- repo: https://github.com/pycqa/pydocstyle
|
|
|
|
rev: 5.0.2
|
2017-11-21 15:35:51 +00:00
|
|
|
hooks:
|
|
|
|
- id: pydocstyle
|
2018-03-01 03:18:39 +00:00
|
|
|
exclude: bidict/_version.py
|
2017-11-21 15:35:51 +00:00
|
|
|
|
2020-07-27 13:15:01 +00:00
|
|
|
- repo: https://github.com/pycqa/flake8
|
|
|
|
rev: 3.8.3
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
|
2020-11-28 15:09:30 +00:00
|
|
|
# https://pre-commit.com/#repository-local-hooks
|
|
|
|
# Enable once the next release (which supports Python 3.9) is out:
|
|
|
|
# https://github.com/PyCQA/pylint/pull/3890#issuecomment-731585934
|
|
|
|
#- repo: local
|
|
|
|
# hooks:
|
|
|
|
# - id: pylint
|
|
|
|
# name: pylint
|
|
|
|
# entry: pylint
|
|
|
|
# language: system
|
|
|
|
# types: [python]
|
|
|
|
|
2018-08-13 17:57:07 +00:00
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
2020-07-30 13:31:03 +00:00
|
|
|
rev: v1.1.9
|
2017-11-21 15:35:51 +00:00
|
|
|
hooks:
|
|
|
|
- id: forbid-crlf
|
|
|
|
- id: remove-crlf
|
|
|
|
- id: forbid-tabs
|
|
|
|
- id: remove-tabs
|
2018-12-28 02:27:56 +00:00
|
|
|
# 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
|
2017-11-21 15:35:51 +00:00
|
|
|
|
2018-12-28 02:27:56 +00:00
|
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
2020-07-27 13:15:01 +00:00
|
|
|
rev: 2.1.4
|
2018-12-28 02:27:56 +00:00
|
|
|
hooks:
|
|
|
|
- id: shellcheck
|