mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 09:37:07 +03:00
36cf100e8b
* Use ruff format to replace black * Adjust ruff config to be compatible with ruff-format https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules * Format * Replace black with ruff format in Makefile
24 lines
610 B
YAML
24 lines
610 B
YAML
default_language_version:
|
|
python: python3.11
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.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/astral-sh/ruff-pre-commit
|
|
rev: v0.1.2
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
|
|
- id: ruff-format
|