diff --git a/.gitignore b/.gitignore index ab24d1ed..8be154f4 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,7 @@ __pycache__/ *.egg-info/ .eggs/ *.egg +uv.lock # Generated runtime data core/data/ diff --git a/core/pyproject.toml b/core/pyproject.toml index 1dc830df..c594314b 100644 --- a/core/pyproject.toml +++ b/core/pyproject.toml @@ -28,3 +28,29 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["framework"] + +[tool.ruff] +target-version = "py311" + +line-length = 100 + +lint.select = [ + "B", # bugbear errors + "C4", # flake8-comprehensions errors + "E", # pycodestyle errors + "F", # pyflakes errors + "I", # import sorting + "Q", # flake8-quotes errors + "UP", # py-upgrade + "W", # pycodestyle warnings +] + +lint.isort.combine-as-imports = true +lint.isort.known-first-party = ["framework"] +lint.isort.section-order = [ + "future", + "standard-library", + "third-party", + "first-party", + "local-folder", +] \ No newline at end of file