Skip to content

Commit

Permalink
add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Dec 19, 2022
1 parent 287aac8 commit 3ad33f6
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
repos:
- repo: https://github.com/Zac-HD/shed
rev: 0.10.8
hooks:
- id: shed
args: ['--py39-plus']

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.283
hooks:
- id: pyright
entry: env PYRIGHT_PYTHON_FORCE_VERSION=latest pyright
args: ['--pythonversion=3.11', '--warnings']
additional_dependencies:
# Required for pyright strict mode
- hypothesis
- hypothesmith
- pytest
- flake8

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md,markdown']
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: [--remove]
- id: check-yaml
- id: debug-statements
exclude: _pytest/(debugging|hookspec).py
language_version: python3

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
args: ["--exclude", ".*,tests/trio*.py"]
language_version: python3
additional_dependencies:
- flake8-builtins
- flake8-bugbear
- flake8-comprehensions

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ["--exclude", ".*,tests/trio*.py"]
language_version: python3
additional_dependencies:
- flake8-eradicate

0 comments on commit 3ad33f6

Please sign in to comment.