Skip to content
Snippets Groups Projects
Commit be11c084 authored by nimrod's avatar nimrod
Browse files

Use a common pre-commit config.

parent 1491bba8
No related branches found
No related tags found
No related merge requests found
# vim:ff=unix ts=2 sw=2 ai expandtab
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0 rev: v3.4.0
hooks: hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: check-merge-conflict - id: check-merge-conflict
- id: check-symlinks - id: check-toml
- id: detect-private-key files: Pipfile
- id: trailing-whitespace - id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://github.com/Yelp/detect-secrets
rev: v0.14.3
hooks:
- id: detect-secrets
- repo: https://github.com/adrienverge/yamllint - repo: https://github.com/adrienverge/yamllint
rev: v1.20.0 rev: v1.25.0
hooks: hooks:
- id: yamllint - id: yamllint
- repo: https://github.com/amperser/proselint/ - repo: https://github.com/amperser/proselint/
rev: 0.10.2 rev: 0.10.2
hooks: hooks:
- id: proselint - id: proselint
types: [plain-text] types: [plain-text]
exclude: LICENSE exclude: LICENSE
- repo: https://github.com/ambv/black - repo: https://github.com/ambv/black
rev: 19.10b0 rev: 20.8b1
hooks: hooks:
- id: black - id: black
args: args:
- | - |
--line-length=79 --line-length=79
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9 - repo: https://github.com/Lucas-C/pre-commit-hooks-markup
rev: v1.0.1
hooks: hooks:
- id: flake8 - id: rst-linter
- repo: https://github.com/myint/rstcheck.git
rev: master
hooks:
- id: rstcheck
- repo: https://github.com/PyCQA/prospector
rev: 1.3.1
hooks:
- id: prospector
args: args:
- |- - |-
--max-line-length=79 --max-line-length=79
- |-
--with-tool=pyroma
- |-
--with-tool=bandit
- |-
--without-tool=pep257
- |-
--doc-warnings
- |-
--test-warnings
- |-
--full-pep8
- |-
--strictness=high
- |-
--no-autodetect
additional_dependencies: additional_dependencies:
- flake8-bugbear - bandit
- repo: https://github.com/pre-commit/mirrors-pylint - pyroma
rev: v2.4.4
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.8.4
hooks: hooks:
- id: pylint - id: flake8
args: args:
- |- - |-
--disable=R0801,E0401 --doctests
- repo: https://www.shore.co.il/git/docker-pre-commit additional_dependencies:
rev: v0.3.0 - flake8-bugbear
hooks:
- id: hadolint
- id: docker-compose
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment