Commit b031de1
committed
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
# Basic safety checks
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
args: ["--allow-multiple-documents"]
- id: destroyed-symlinks
- id: check-shebang-scripts-are-executable
# Simple auto-fixers
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: pretty-format-json
args: ["--autofix"]
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: trailing-whitespace
# Quick correctness checks
- id: debug-statements
- id: name-tests-test
# Security checks (can also be placed last)
- id: detect-private-key
- id: forbid-new-submodules
- repo: https://github.com/PyCQA/autoflake
rev: "v2.3.1"
hooks:
- id: autoflake
args:
[
"--in-place",
"--remove-all-unused-imports",
"--remove-unused-variables",
"--recursive",
]
- repo: https://github.com/asottile/pyupgrade
rev: "v3.21.2"
hooks:
- id: pyupgrade
args: ["--py310-plus", "--keep-runtime-typing"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.10"
hooks:
# Formatter first so code is canonicalized
- id: ruff-format
# Then linting + autofixes
- id: ruff
args: ["--output-format=full", "--fix", "--config", "ruff.toml"]
Fix1 parent ece8272 commit b031de1
4 files changed
+76
-70
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
0 commit comments