2019-04-09 16:57:29 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/asottile/seed-isort-config
|
2020-05-08 17:16:13 +03:00
|
|
|
rev: v2.1.1
|
2019-04-09 16:57:29 +03:00
|
|
|
hooks:
|
|
|
|
- id: seed-isort-config
|
2020-04-02 22:52:31 +03:00
|
|
|
- repo: https://github.com/timothycrosley/isort
|
|
|
|
rev: 4.3.21
|
2019-04-09 16:57:29 +03:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
- repo: https://github.com/ambv/black
|
|
|
|
rev: stable
|
|
|
|
hooks:
|
|
|
|
- id: black
|
2019-04-09 19:02:36 +03:00
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
2020-05-22 23:30:42 +03:00
|
|
|
rev: 3.8.1
|
2019-04-09 19:02:36 +03:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
additional_dependencies: ['flake8-coding==1.3.1', 'flake8-copyright==0.2.2', 'flake8-debugger==3.1.0', 'flake8-mypy==17.8.0']
|
2019-05-14 18:22:34 +03:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2020-05-22 23:30:42 +03:00
|
|
|
rev: v3.1.0
|
2019-05-14 18:22:34 +03:00
|
|
|
hooks:
|
2019-12-08 14:59:45 +03:00
|
|
|
- id: check-ast
|
|
|
|
- id: check-docstring-first
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-symlinks
|
|
|
|
- id: debug-statements
|
2019-05-14 18:22:34 +03:00
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-yaml
|
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: name-tests-test
|
|
|
|
args: ['--django']
|
2019-05-14 21:32:09 +03:00
|
|
|
- id: check-json
|
|
|
|
exclude: ^tests/fixtures/
|
2019-09-11 13:41:06 +03:00
|
|
|
- id: requirements-txt-fixer
|
2020-05-08 14:25:21 +03:00
|
|
|
- id: check-vcs-permalinks
|
2019-05-16 18:24:18 +03:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2020-05-22 23:30:42 +03:00
|
|
|
rev: v1.17.1
|
2019-05-16 18:24:18 +03:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
exclude_types: [json]
|
2019-06-13 19:41:04 +03:00
|
|
|
- repo: https://github.com/marco-c/taskcluster_yml_validator
|
2020-05-22 23:30:42 +03:00
|
|
|
rev: v0.0.6
|
2019-06-13 19:41:04 +03:00
|
|
|
hooks:
|
|
|
|
- id: taskcluster_yml
|
2019-12-08 15:01:17 +03:00
|
|
|
- repo: https://github.com/asottile/yesqa
|
2020-02-26 13:22:43 +03:00
|
|
|
rev: v1.1.0
|
2019-12-08 15:01:17 +03:00
|
|
|
hooks:
|
|
|
|
- id: yesqa
|
2019-12-08 15:24:00 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2020-04-02 22:53:03 +03:00
|
|
|
rev: v0.770
|
2019-12-08 15:24:00 +03:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2020-02-28 11:34:33 +03:00
|
|
|
name: mypy-bugbug
|
2020-04-07 13:06:24 +03:00
|
|
|
files: ^bugbug/|^scripts/
|
|
|
|
entry: mypy bugbug/ scripts/
|
2020-02-28 11:34:33 +03:00
|
|
|
pass_filenames: false
|
|
|
|
- id: mypy
|
|
|
|
name: mypy-bugbug-http
|
|
|
|
files: ^http_service/
|
|
|
|
entry: mypy http_service/
|
|
|
|
pass_filenames: false
|
2019-06-08 22:24:22 +03:00
|
|
|
- repo: meta
|
|
|
|
hooks:
|
|
|
|
- id: check-useless-excludes
|
2019-06-13 14:15:53 +03:00
|
|
|
default_language_version:
|
|
|
|
python: python3.7
|