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]
|
[dependency-groups]
|
||||||
dev = ["pre-commit>=4.2.0", "pyinstaller>=6.14.2", "ruff>=0.12.5"]
|
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]
|
[tool.ruff.lint]
|
||||||
select = [
|
select = [
|
||||||
# pycodestyle
|
# pycodestyle
|
||||||
@@ -33,6 +56,8 @@ select = [
|
|||||||
|
|
||||||
[tool.ruff.format]
|
[tool.ruff.format]
|
||||||
docstring-code-format = true
|
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]
|
[tool.ruff.lint.pycodestyle]
|
||||||
max-line-length = 88
|
max-line-length = 88
|
||||||
|
|||||||
Reference in New Issue
Block a user