Skip to content

Commit

Permalink
Update ruff config for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Dec 6, 2023
1 parent f351e50 commit 956084c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:

# Run `ruff` using github formatting to enable automatic inline annotations.
- name: Run ruff
run: "ruff check --format=github ."
run: "ruff check --output-format=github ."
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ start-dev = "uvicorn api.main:app --reload"
[tool.ruff]
target-version = "py310"
extend-exclude = [".cache"]
select = ["ALL"]
ignore = [
"ANN002", "ANN003", "ANN101",
"C901",
"CPY001",
"D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D416",
"EM",
"PLR0912",
"TRY003",
]
line-length = 120
select = ["ALL"]
unsafe-fixes = true
preview = true

[tool.ruff.isort]
order-by-type = false
Expand Down

0 comments on commit 956084c

Please sign in to comment.