Spaces:
Sleeping
Sleeping
File size: 1,228 Bytes
71382c0 |
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 |
exclude: .*\.pdb$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args:
- "--ignore=E203,E266,E501,F405,F403,W503"
- "--statistics"
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.5
hooks:
- id: ruff
args:
- "--fix"
- "--select"
- "UP,PT,I,E"#,F,W,C90,I,N,F405,E402" # Specify the rules to select
- "--line-length"
- "88"
- "--exit-non-zero-on-fix"
- "--ignore"
- "F405,F403,E501,E402,PT018,PT015,E722,E741"
types_or: [ python, pyi] #, jupyter ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
- repo: https://github.com/srstevenson/nb-clean
rev: "2.4.0"
hooks:
- id: nb-clean
args:
- --remove-empty-cells
- --preserve-cell-outputs
|