diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e718b38225502a4c5cf1c038ce0f462df4ab6f25..bbaa8f0aca5d40d5457c41628c2fd0d3210ed80a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,51 +1,82 @@ -# vim:ff=unix ts=2 sw=2 ai expandtab --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.5.0 + rev: v3.4.0 hooks: - - id: check-added-large-files - id: check-executables-have-shebangs - id: check-merge-conflict - - id: check-symlinks - - id: detect-private-key + - id: check-toml + files: Pipfile - 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 - rev: v1.20.0 + rev: v1.25.0 hooks: - id: yamllint + - repo: https://github.com/amperser/proselint/ rev: 0.10.2 hooks: - id: proselint types: [plain-text] exclude: LICENSE + - repo: https://github.com/ambv/black - rev: 19.10b0 + rev: 20.8b1 hooks: - id: black args: - | --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: - - 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: - |- --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: - - flake8-bugbear - - repo: https://github.com/pre-commit/mirrors-pylint - rev: v2.4.4 + - bandit + - pyroma + + - repo: https://gitlab.com/pycqa/flake8.git + rev: 3.8.4 hooks: - - id: pylint + - id: flake8 args: - |- - --disable=R0801,E0401 - - repo: https://www.shore.co.il/git/docker-pre-commit - rev: v0.3.0 - hooks: - - id: hadolint - - id: docker-compose + --doctests + additional_dependencies: + - flake8-bugbear