Files
DinQuant/backend_api_python/pyproject.toml
T
dienakdz 87f2845483 Refactor code for improved readability and consistency
- Cleaned up whitespace and formatting in various files including http.py, language.py, logger.py, safe_exec.py, and SQL migration scripts.
- Consolidated import statements and removed unnecessary blank lines.
- Updated logging configuration for better clarity.
- Enhanced the safe execution code with improved error handling and logging.
- Removed commented-out code and unnecessary variables in backfill_zero_trades.py and other scripts.
- Added a pyproject.toml for Ruff and Vulture configuration.
- Introduced requirements-dev.txt for development dependencies.
- Removed commented-out stock entries in init.sql for cleaner migration scripts.
2026-04-09 14:30:51 +07:00

33 lines
559 B
TOML

[tool.ruff]
line-length = 120
target-version = "py312"
extend-exclude = [
".git",
".venv",
"__pycache__",
"migrations",
]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]
[tool.ruff.format]
indent-style = "space"
line-ending = "lf"
quote-style = "double"
[tool.vulture]
paths = ["app", "scripts", "run.py", "gunicorn_config.py"]
exclude = ["migrations/", "__pycache__/"]
ignore_decorators = [
"@*.route",
"@*.get",
"@*.post",
"@*.put",
"@*.patch",
"@*.delete",
"@*.errorhandler",
]
ignore_names = ["test_*"]
min_confidence = 80