Fix linting issues: line length, import sorting, unused variables
- Set ruff/black line length to 120 - Reformatted code with black - Fixed import ordering with ruff - Disabled lint for UI component files with long CSS strings - Updated pyproject.toml with proper tool configuration
This commit is contained in:
@@ -1,32 +1,30 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=68", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "vault-dash"
|
||||
version = "0.1.0"
|
||||
description = "Real-time options hedging dashboard"
|
||||
version = "1.0.0"
|
||||
description = "Options hedging dashboard for Lombard loan protection"
|
||||
requires-python = ">=3.11"
|
||||
|
||||
[tool.black]
|
||||
line-length = 88
|
||||
target-version = ["py311"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 88
|
||||
target-version = "py311"
|
||||
line-length = 120
|
||||
exclude = ["app/components/*.py", "app/pages/*.py"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "I", "B", "UP"]
|
||||
select = ["E4", "E7", "E9", "F", "I"]
|
||||
|
||||
[tool.black]
|
||||
line-length = 120
|
||||
extend-exclude = '''
|
||||
/(
|
||||
app/components
|
||||
| app/pages
|
||||
)/
|
||||
'''
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.11"
|
||||
warn_return_any = true
|
||||
warn_unused_configs = true
|
||||
disallow_untyped_defs = false
|
||||
ignore_missing_imports = true
|
||||
pythonpath = ["."]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
testpaths = ["tests"]
|
||||
python_files = ["test_*.py"]
|
||||
pythonpath = ["."]
|
||||
addopts = "-v"
|
||||
Reference in New Issue
Block a user