Created
September 9, 2022 18:08
-
-
Save emorozov/e2bae8531573b968419127639cb0321f to your computer and use it in GitHub Desktop.
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
default_language_version: | |
python: python3.10 | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.0.1 | |
hooks: | |
- id: check-merge-conflict | |
- id: end-of-file-fixer | |
- id: trailing-whitespace | |
- id: check-case-conflict | |
- id: check-yaml | |
- id: check-toml | |
- id: pretty-format-json | |
- id: check-added-large-files | |
args: ['--maxkb=250', '--enforce-all'] | |
- id: check-docstring-first | |
- id: detect-private-key | |
- id: no-commit-to-branch | |
args: [--branch, develop, --branch, main] | |
- repo: https://github.com/asottile/pyupgrade | |
rev: v2.29.0 | |
hooks: | |
- id: pyupgrade | |
args: [--py36-plus] | |
name: Upgrade code | |
- repo: https://github.com/PyCQA/isort | |
rev: 5.9.3 | |
hooks: | |
- id: isort | |
name: Run isort to sort imports | |
files: \.py$ | |
exclude: ^fwproto/.*$ | |
- repo: https://github.com/asottile/yesqa | |
rev: v1.2.3 | |
hooks: | |
- id: yesqa | |
- repo: local | |
hooks: | |
- id: mypy | |
name: mypy | |
language: system | |
types: [python] | |
pass_filenames: false | |
entry: mypy --namespace-packages -m p2p_beat | |
verbose: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment