Add Ruff configuration for linting and formatting; set target version and exclusions
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -15,6 +15,29 @@ dependencies = [
|
||||
[dependency-groups]
|
||||
dev = ["pre-commit>=4.2.0", "pyinstaller>=6.14.2", "ruff>=0.12.5"]
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py313" # Target Python 3.13
|
||||
exclude = [
|
||||
".csv",
|
||||
".log",
|
||||
".md",
|
||||
".pyc",
|
||||
".pyo",
|
||||
".pyd",
|
||||
".pkl",
|
||||
".sqlite3",
|
||||
".git",
|
||||
".github",
|
||||
".idea",
|
||||
".vscode/*",
|
||||
".pytest_cache",
|
||||
".mypy_cache",
|
||||
".ruff_cache",
|
||||
".tox",
|
||||
".venv/*",
|
||||
"tests/*",
|
||||
]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
# pycodestyle
|
||||
@@ -33,6 +56,8 @@ select = [
|
||||
|
||||
[tool.ruff.format]
|
||||
docstring-code-format = true
|
||||
quote-style = "double" # Use double quotes for strings (like Black)
|
||||
indent-style = "space" # Use spaces for indentation
|
||||
|
||||
[tool.ruff.lint.pycodestyle]
|
||||
max-line-length = 88
|
||||
|
||||
Reference in New Issue
Block a user