mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
chore: add ruff rules
This commit is contained in:
@@ -8,12 +8,12 @@ repos:
|
||||
- id: mixed-line-ending
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: "v0.0.292"
|
||||
rev: "v0.1.3"
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [--fix, --exit-non-zero-on-fix]
|
||||
|
||||
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||
rev: 23.9.1
|
||||
rev: 23.10.1
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "23.10.2.dev0"
|
||||
__version__ = "23.11.0.dev0"
|
||||
|
||||
@@ -92,7 +92,7 @@ def library_version():
|
||||
for lib in libraries:
|
||||
try:
|
||||
d[lib] = version(lib)
|
||||
except Exception:
|
||||
except Exception: # noqa: PERF203
|
||||
d[lib] = "Unknown"
|
||||
return d
|
||||
|
||||
|
||||
@@ -26,8 +26,10 @@ select = [
|
||||
"I001",
|
||||
"ISC",
|
||||
"N",
|
||||
"PERF",
|
||||
"PIE",
|
||||
"PT",
|
||||
"PTH",
|
||||
"RET",
|
||||
"RUF",
|
||||
"SIM",
|
||||
|
||||
Reference in New Issue
Block a user