@@ -33,27 +33,52 @@ dev = ["changelist == 0.5"]
33
33
Home = " https://scientific-python.org/specs/spec-0001/"
34
34
Source = " https://github.com/scientific-python/lazy-loader"
35
35
36
-
37
36
[tool .changelist ]
38
37
ignored_user_logins = [" dependabot[bot]" , " pre-commit-ci[bot]" , " web-flow" ]
39
38
40
39
[tool .setuptools .dynamic .version ]
41
40
attr = ' lazy_loader.__version__'
42
41
43
42
[tool .ruff ]
44
- line-length = 88
45
43
exclude = [
46
44
" lazy_loader/tests/fake_pkg/__init__.pyi" ,
47
45
]
48
46
49
47
[tool .ruff .lint ]
50
- select = [
51
- " C" ,
52
- " E" ,
53
- " F" ,
54
- " W" ,
55
- " B" ,
56
- " I" ,
57
- " UP" ,
48
+ extend-select = [
49
+ " B" , # flake8-bugbear
50
+ " I" , # isort
51
+ " ARG" , # flake8-unused-arguments
52
+ " C4" , # flake8-comprehensions
53
+ " EM" , # flake8-errmsg
54
+ " ICN" , # flake8-import-conventions
55
+ " G" , # flake8-logging-format
56
+ " PGH" , # pygrep-hooks
57
+ " PIE" , # flake8-pie
58
+ " PL" , # pylint
59
+ " PT" , # flake8-pytest-style
60
+ # "PTH", # flake8-use-pathlib
61
+ " RET" , # flake8-return
62
+ " RUF" , # Ruff-specific
63
+ " SIM" , # flake8-simplify
64
+ " T20" , # flake8-print
65
+ " UP" , # pyupgrade
66
+ " YTT" , # flake8-2020
67
+ " EXE" , # flake8-executable
68
+ " NPY" , # NumPy specific rules
69
+ " PD" , # pandas-vet
70
+ " FURB" , # refurb
71
+ " PYI" , # flake8-pyi
72
+ ]
73
+ ignore = [
74
+ " PLR09" , # Too many <...>
75
+ " PLR2004" , # Magic value used in comparison
76
+ " ISC001" , # Conflicts with formatter
77
+ " B018" , # Found useless expression
78
+ " B028" , # No explicit `stacklevel` keyword argument found
79
+ " PT011" , # `pytest.raises(ValueError)` is too broad
80
+ " EM102" , # Exception must not use an f-string literal
81
+ " EM101" , # Exception must not use a string literal
82
+ " RET505" , # Unnecessary `elif` after `return` statement
83
+ " SIM108" , # Use ternary operator
58
84
]
59
- ignore = [" B018" , " B028" ]
0 commit comments