Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AIR and FURB rulesets to Ruff config #528

Merged
merged 2 commits into from
Sep 6, 2024
Merged
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
5 changes: 5 additions & 0 deletions .changeset/chatty-insects-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/ruff-config": major
---

Updated Ruff config‘s `ruff` dependency.
5 changes: 5 additions & 0 deletions .changeset/tricky-shirts-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/ruff-config": major
---

Added `AIR` and `FURB` rulesets to Ruff config.
Binary file modified .yarn/install-state.gz
Binary file not shown.
39 changes: 20 additions & 19 deletions packages/ruff-config/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ruff-config/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repository = "https://github.com/spear-ai/citizen"

[tool.poetry.dependencies]
python = ">=3.10,<3.13"
ruff = "^0.3.7"
ruff = "^0.6.4"

[build-system]
build-backend = "poetry.core.masonry.api"
Expand Down
3 changes: 2 additions & 1 deletion packages/ruff-config/spear_ai_ruff_config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ignore = [
]
select = [
"A",
"AIR",
"ANN",
"ARG",
"ASYNC",
Expand All @@ -35,6 +36,7 @@ select = [
"FBT",
"FIX",
"FLY",
"FURB",
"G",
"I",
"ICN",
Expand Down Expand Up @@ -65,7 +67,6 @@ select = [
"TCH",
"TD",
"TID",
"TRIO",
"TRY",
"UP",
"W",
Expand Down