Skip to content

Instantly share code, notes, and snippets.

@Anselmoo
Last active October 10, 2023 11:29
Show Gist options
  • Save Anselmoo/796a32ee415e4f41a99d54a2d1e12494 to your computer and use it in GitHub Desktop.
Save Anselmoo/796a32ee415e4f41a99d54a2d1e12494 to your computer and use it in GitHub Desktop.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
exclude: mkdocs.yml
- id: check-toml
- id: check-json
- id: check-symlinks
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=1000"]
- repo: https://github.com/psf/black.git
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.12b0]
- repo: https://github.com/PyCQA/isort.git
rev: 5.12.0
hooks:
- id: isort
additional_dependencies: [toml==0.10.2]
- repo: https://github.com/PyCQA/flake8.git
rev: 6.1.0
hooks:
- id: flake8
exclude: ^examples/
additional_dependencies: [flake8-docstrings]
entry: flake8 --docstring-convention google --max-doc-length 100 --max-line-length 88 --ignore E203,W503,W605
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
additional_dependencies:
[types-toml==0.10.4, types-PyYAML==6.0.1, types-tabulate==0.8.4]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0 # pick a git hash / tag to point to
hooks:
- id: pydocstyle
additional_dependencies: [toml==0.10.2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment