feat: implement linting and testing

This commit is contained in:
Stijnvandenbroek
2026-03-03 22:02:25 +00:00
parent 8dd6a7b890
commit fc43570506
16 changed files with 884 additions and 56 deletions

View File

@@ -27,4 +27,35 @@ attribute = "defs"
dev = [
"pytest",
"dagster-webserver",
"pre-commit",
"ruff",
"sqlfluff",
"sqlfluff-templater-dbt",
]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long handled by formatter
"B008", # function call in default argument (Dagster configs use this)
]
[tool.ruff.lint.isort]
known-first-party = ["data_platform"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v"