Last active
October 12, 2023 18:06
-
-
Save mrapacz/03f6c985d60e3697db62176d5c28582d to your computer and use it in GitHub Desktop.
pre-commit template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repos: | |
- repo: https://github.com/myint/docformatter | |
rev: v1.7.1 | |
hooks: | |
- id: docformatter | |
args: [ '--pre-summary-newline', '--wrap-summaries', '132', '--wrap-descriptions', '132', --in-place ] | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.4.0 | |
hooks: | |
- id: check-json | |
- id: check-merge-conflict | |
- id: end-of-file-fixer | |
- id: requirements-txt-fixer | |
- id: trailing-whitespace | |
- repo: https://github.com/psf/black | |
rev: 23.3.0 | |
hooks: | |
- id: black | |
language_version: python3.10 | |
args: [ '--line-length', '131' ] | |
- repo: https://github.com/asottile/reorder_python_imports | |
rev: v3.9.0 | |
hooks: | |
- id: reorder-python-imports | |
args: [ --py310-plus ] | |
- repo: https://github.com/pycqa/flake8 | |
rev: 6.0.0 | |
hooks: | |
- id: flake8 | |
args: [ '--ignore', 'E231', '--ignore', 'E203', '--max-line-length', '131' ] | |
- repo: https://github.com/asottile/pyupgrade | |
rev: v3.4.0 | |
hooks: | |
- id: pyupgrade | |
args: [ --py310-plus ] | |
- repo: https://github.com/pre-commit/mirrors-mypy | |
rev: v1.3.0 | |
hooks: | |
- id: mypy | |
additional_dependencies: | |
- types-requests | |
args: [ --ignore-missing-imports ] | |
- repo: https://github.com/pre-commit/pygrep-hooks | |
rev: v1.10.0 | |
hooks: | |
- id: python-use-type-annotations | |
- repo: https://github.com/dosisod/refurb | |
rev: v1.16.0 | |
hooks: | |
- id: refurb | |
language_version: "3.10" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment