Spaces:
Runtime error
Runtime error
File size: 1,199 Bytes
42cdc8f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
exclude: ^(.github/|.art/)
- id: end-of-file-fixer
exclude: ^(.github/|.art/)
- id: debug-statements
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args:
[
"--in-place",
"--remove-unused-variable",
"--ignore-init-module-imports",
"--remove-all-unused-imports",
]
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
hooks:
- id: pyupgrade
args: ["--py3-plus"]
# - repo: https://github.com/asottile/seed-isort-config
# rev: v2.2.0
# hooks:
# - id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.9.1
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.10
- repo: local
hooks:
- id: flake8
name: flake8
types: [python]
language: system
entry: poetry run flake8 --config .flake8
exclude: run.py
|