Skip to content

Commit 843b7c8

Browse files
committed
Enable more ruff lints
1 parent 65302f7 commit 843b7c8

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,24 @@ src = ["src"]
4646
target-version = "py312"
4747

4848
[tool.ruff.lint]
49-
select = ["ANN", "D", "E", "F", "I"]
49+
select = [
50+
"ANN", # flake8-annotations
51+
"B", # flake8-bugbear
52+
"C4", # flake8-comprehensions
53+
"D", # pydocstyle
54+
"E", # pycodestyle errors
55+
"F", # Pyflakes
56+
"I", # isort
57+
"N", # pep8-naming
58+
"NPY", # NumPy-specific rules
59+
"PD", # pandas-vet
60+
"PIE", # flake8-pie
61+
"PTH", # flake8-use-pathlib
62+
"RUF", # Ruff-specific rules
63+
"S", # flake8-bandit
64+
"SIM", # flake8-simplify
65+
"UP", # pyupgrade
66+
]
5067
ignore = []
5168
fixable = ["ALL"]
5269
unfixable = []
@@ -55,7 +72,7 @@ unfixable = []
5572
convention = "google"
5673

5774
[tool.ruff.lint.per-file-ignores]
58-
"tests/**/*.py" = []
75+
"tests/**/*.py" = ["S101"]
5976

6077
[build-system]
6178
requires = ["uv_build>=0.9.3,<0.10.0"]

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Shared fixtures for tests data."""
22

3+
from collections.abc import Sequence
34
from pathlib import Path
45
from types import SimpleNamespace
5-
from typing import Sequence
66

77
import pytest
88

0 commit comments

Comments
 (0)