Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ jobs:
run: uv lock --check
- name: Verify against basedpyright baseline
run: uv run --frozen basedpyright
- name: Lint with ruff
run: uv run --frozen ruff check
- name: Format with ruff
run: uv run --frozen ruff format --diff
Comment thread
szykol marked this conversation as resolved.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,22 @@ reportUnknownMemberType = false
reportUnusedCallResult = false

# https://docs.astral.sh/ruff/configuration/
[tool.ruff]
line-length = 120

[tool.ruff.lint]
fixable = ["ALL"]
select = [
"ANN", # flake-8-annotations
"B", # flake8-bugbear
"C4", # comprehensions
"DOC", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PT", # flake-8-pytest-rules
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
]
ignore = [
Expand All @@ -103,3 +108,6 @@ ignore = [

[tool.ruff.lint.isort]
combine-as-imports = true

[tool.ruff.format]
docstring-code-format = true
Loading