@@ -44,3 +44,46 @@ test-command = "pytest {project}/tests"
4444test-extras = [" test" ]
4545test-skip = [" *universal2:arm64" ]
4646build-verbosity = 1
47+
48+
49+ [tool .ruff ]
50+ select = [
51+ " E" , " F" , " W" , # flake8
52+ " B" , # flake8-bugbear
53+ " I" , # isort
54+ " ARG" , # flake8-unused-arguments
55+ " C4" , # flake8-comprehensions
56+ " EM" , # flake8-errmsg
57+ " ICN" , # flake8-import-conventions
58+ " ISC" , # flake8-implicit-str-concat
59+ " G" , # flake8-logging-format
60+ " PGH" , # pygrep-hooks
61+ " PIE" , # flake8-pie
62+ " PL" , # pylint
63+ " PT" , # flake8-pytest-style
64+ " PTH" , # flake8-use-pathlib
65+ " RET" , # flake8-return
66+ " RUF" , # Ruff-specific
67+ " SIM" , # flake8-simplify
68+ " T20" , # flake8-print
69+ " UP" , # pyupgrade
70+ " YTT" , # flake8-2020
71+ " EXE" , # flake8-executable
72+ " NPY" , # NumPy specific rules
73+ " PD" , # pandas-vet
74+ ]
75+ extend-ignore = [
76+ " PLR" , # Design related pylint codes
77+ " E501" , # Line too long
78+ ]
79+ target-version = " py37"
80+ src = [" src" ]
81+ unfixable = [
82+ " T20" , # Removes print statements
83+ " F841" , # Removes unused variables
84+ ]
85+ flake8-unused-arguments.ignore-variadic-names = true
86+ isort.required-imports = [" from __future__ import annotations" ]
87+
88+ [tool .ruff .per-file-ignores ]
89+ "tests/**" = [" T20" ]
0 commit comments