mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-25 11:03:58 +03:00
431826814d
* lint: use ruff pre commit hook * dont install ruff --------- Co-authored-by: Erik Wrede <erikwrede@users.noreply.github.com>
30 lines
701 B
YAML
30 lines
701 B
YAML
default_language_version:
|
|
python: python3.10
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.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/asottile/pyupgrade
|
|
rev: v2.37.3
|
|
hooks:
|
|
- id: pyupgrade
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.5.0
|
|
hooks:
|
|
- id: ruff
|
|
- id: ruff-format
|
|
args: [ --check ]
|