@@ -33,27 +33,55 @@ dev = ["changelist == 0.5"]
3333Home = " https://scientific-python.org/specs/spec-0001/"
3434Source = " https://github.com/scientific-python/lazy-loader"
3535
36-
3736[tool .changelist ]
3837ignored_user_logins = [" dependabot[bot]" , " pre-commit-ci[bot]" , " web-flow" ]
3938
4039[tool .setuptools .dynamic .version ]
4140attr = ' lazy_loader.__version__'
4241
4342[tool .ruff ]
44- line-length = 88
4543exclude = [
4644 " lazy_loader/tests/fake_pkg/__init__.pyi" ,
4745]
4846
4947[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
5884]
59- ignore = [" B018" , " B028" ]
85+
86+ [tool .ruff .format ]
87+ docstring-code-format = true
0 commit comments