@@ -38,6 +38,43 @@ homepage = "https://github.com/scientific-python/devstats"
3838[tool .changelist ]
3939ignored_user_logins = [" dependabot[bot]" , " pre-commit-ci[bot]" , " web-flow" ]
4040
41+ [tool .ruff .lint ]
42+ extend-select = [
43+ " B" , # flake8-bugbear
44+ " I" , # isort
45+ " ARG" , # flake8-unused-arguments
46+ " C4" , # flake8-comprehensions
47+ " EM" , # flake8-errmsg
48+ " ICN" , # flake8-import-conventions
49+ " G" , # flake8-logging-format
50+ " PGH" , # pygrep-hooks
51+ " PIE" , # flake8-pie
52+ " PL" , # pylint
53+ " PT" , # flake8-pytest-style
54+ # "PTH", # flake8-use-pathlib
55+ " RET" , # flake8-return
56+ " RUF" , # Ruff-specific
57+ " SIM" , # flake8-simplify
58+ " T20" , # flake8-print
59+ " UP" , # pyupgrade
60+ " YTT" , # flake8-2020
61+ " EXE" , # flake8-executable
62+ " NPY" , # NumPy specific rules
63+ " PD" , # pandas-vet
64+ " FURB" , # refurb
65+ " PYI" , # flake8-pyi
66+ ]
67+ ignore = [
68+ " PLR09" , # Too many <...>
69+ " PLR2004" , # Magic value used in comparison
70+ " ISC001" , # Conflicts with formatter
71+ " ARG002" , # Unused method argument
72+ " EM101" , # Exception must not use a string literal
73+ " SIM115" , # Use context handler for opening files
74+ " RET504" , # Unnecessary assignment before `return` statement
75+ " T201" , # `print` found
76+ ]
77+
4178[tool .setuptools .packages .find ]
4279include = [" devstats*" ]
4380
0 commit comments