Skip to content

Commit b55a9e7

Browse files
committed
cleanup
1 parent ac96fb1 commit b55a9e7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.cursor/rules/quick-reference.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tox -e py3.12-django-v5.2.3
4444

4545
### Code Quality
4646

47-
Our `linters` tox environment runs `black` for formatting, `flake8` for linting and `mypy` for type checking.
47+
Our `linters` tox environment runs `ruff-format` for formatting, `ruff` for linting and `mypy` for type checking.
4848

4949
```bash
5050
tox -e linters

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,21 +208,20 @@ select = [
208208

209209
# Use ONLY the same ignores as the original flake8 config + compatibility for this codebase
210210
ignore = [
211-
"E203", # Whitespace before ':' -- handled by black
212-
"E501", # Line too long -- handled by black
211+
"E203", # Whitespace before ':'
212+
"E501", # Line too long
213213
"E402", # Module level import not at top of file
214214
"E731", # Do not assign a lambda expression, use a def
215-
"B014", # Redundant exception types by flake8-bugbear (but B rules not selected anyway)
216-
"N812", # Lowercase imported as non-lowercase (but N rules not selected anyway)
217-
"N804", # First argument of classmethod should be named cls (but N rules not selected anyway)
215+
"B014", # Redundant exception types
216+
"N812", # Lowercase imported as non-lowercase
217+
"N804", # First argument of classmethod should be named cls
218218

219219
# Additional ignores for codebase compatibility
220220
"F401", # Unused imports - many in TYPE_CHECKING blocks used for type comments
221221
"E721", # Use isinstance instead of type() == - existing pattern in this codebase
222222
]
223223

224224
[tool.ruff.format]
225-
# Match black's behavior
226225
# ruff format already excludes the same files as specified in extend-exclude
227226
# Ensure Python 3.7 compatibility - avoid using Python 3.9+ syntax features
228227
skip-magic-trailing-comma = false

0 commit comments

Comments
 (0)