Skip to content

Commit 71cf298

Browse files
committed
Reset Ruff configuration to recommended defaults
- Remove custom line-length setting (79 -> 88 chars default) - Remove custom exclude patterns, using Ruff's built-in defaults - Remove custom lint rule selections, using recommended rule set - Remove custom isort and format configurations - Keep Django-specific __init__.py wildcard import allowance - Update documentation to reflect simplified configuration
1 parent d0163ff commit 71cf298

2 files changed

Lines changed: 5 additions & 41 deletions

File tree

.kiro/steering/tech.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
## Code Quality Tools
2727

28-
- **Ruff** - Fast Python linter and formatter with import sorting (line length: 79)
28+
- **Ruff** - Fast Python linter and formatter with import sorting
2929
- **django-nose** - Test runner
3030

3131
## Common Commands

pyproject.toml

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -77,50 +77,14 @@ Repository = "https://github.com/weallcode/website"
7777
Homepage = "https://github.com/weallcode/website"
7878

7979
[tool.ruff]
80-
line-length = 79
80+
# Use Ruff's recommended defaults
8181
target-version = "py311"
82-
exclude = [
83-
".eggs",
84-
".git",
85-
".hg",
86-
".mypy_cache",
87-
".tox",
88-
".venv",
89-
"_build",
90-
"buck-out",
91-
"build",
92-
"dist",
93-
"migrations",
94-
]
95-
96-
[tool.ruff.format]
97-
98-
99-
[tool.ruff.lint.isort]
100-
known-third-party = ["django"]
101-
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
102-
combine-as-imports = true
103-
force-wrap-aliases = true
104-
split-on-trailing-comma = true
105-
106-
[dependency-groups]
107-
dev = [
108-
"pre-commit>=4.2.0",
109-
]
11082

11183
[tool.ruff.lint]
11284
# Allow wildcard imports in __init__.py files (common Django pattern)
11385
per-file-ignores = {"__init__.py" = ["F403", "F401"]}
11486

115-
# Enable specific rule categories
116-
select = [
117-
"E", # pycodestyle errors
118-
"W", # pycodestyle warnings
119-
"F", # pyflakes
120-
"I", # isort
121-
]
122-
123-
# Ignore specific rules that are common in Django projects
124-
ignore = [
125-
"E501", # line too long (handled by formatter)
87+
[dependency-groups]
88+
dev = [
89+
"pre-commit>=4.2.0",
12690
]

0 commit comments

Comments
 (0)