mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-10 19:57:15 +03:00
79b4a23ae0
* Update Makefile * django master requires at least python 3.10 now * Allow customizing options passed to tox -e pre-commit * py.test -> pytest * Update ruff * Fix E721 Do not compare types, use `isinstance()` * Add back black to dev dependencies * Pin black and ruff versions
27 lines
672 B
YAML
27 lines
672 B
YAML
default_language_version:
|
|
python: python3.11
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
- id: check-json
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- id: end-of-file-fixer
|
|
exclude: ^docs/.*$
|
|
- id: pretty-format-json
|
|
args:
|
|
- --autofix
|
|
- id: trailing-whitespace
|
|
exclude: README.md
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.7.0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.0.283
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
|