Skip to content

Commit b05410c

Browse files
committed
feat: configure ruff linting rules and ignore settings in pyproject.toml
1 parent ae406e3 commit b05410c

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,31 @@ pages = [
8383
{title = "Exceptions", name="fishaudio/exceptions", contents = ["fishaudio.exceptions.*"] },
8484
]
8585

86+
[tool.ruff.lint]
87+
extend-select = [
88+
"F", # Pyflakes rules
89+
"W", # PyCodeStyle warnings
90+
"E", # PyCodeStyle errors
91+
"I", # Sort imports properly
92+
"UP", # Warn if certain things can changed due to newer Python versions
93+
"C4", # Catch incorrect use of comprehensions, dict, list, etc
94+
"FA", # Enforce from __future__ import annotations
95+
"ISC", # Good use of string concatenation
96+
"ICN", # Use common import conventions
97+
"RET", # Good return practices
98+
"SIM", # Common simplification rules
99+
"TID", # Some good import practices
100+
"TC", # Enforce importing certain types in a TYPE_CHECKING block
101+
"PTH", # Use pathlib instead of os.path
102+
"TD", # Be diligent with TODO comments
103+
"NPY", # Some numpy-specific things
104+
]
105+
ignore = [
106+
"E501", # Line too long (handled by ruff format)
107+
]
108+
109+
[tool.ruff.lint.pyupgrade]
110+
keep-runtime-typing = true
111+
86112
[tool.uv.sources]
87113
fish-audio-sdk = { workspace = true }

0 commit comments

Comments
 (0)