@@ -41,6 +41,11 @@ dependencies = [
41
41
42
42
dynamic = [" version" ]
43
43
44
+ [project .optional-dependencies ]
45
+ test = [
46
+ " pytest" ,
47
+ ]
48
+
44
49
[project .urls ]
45
50
"Bug Tracker" = " https://github.com/scipp/essspectroscopy/issues"
46
51
"Documentation" = " https://scipp.github.io/essspectroscopy"
@@ -71,14 +76,14 @@ extend-exclude = [
71
76
72
77
[tool .ruff .lint ]
73
78
# See https://docs.astral.sh/ruff/rules/
74
- select = [" B" , " C4" , " DTZ" , " E" , " F" , " G" , " I" , " PERF" , " PGH" , " PT" , " PYI" , " RUF" , " S" , " T20" , " W" ]
79
+ select = [" B" , " C4" , " DTZ" , " E" , " F" , " G" , " I" , " PERF" , " PGH" , " PT" , " PYI" , " RUF" , " S" , " T20" , " UP " , " W" ]
75
80
ignore = [
76
81
# Conflict with ruff format, see
77
82
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
78
83
" COM812" , " COM819" , " D206" , " D300" , " E111" , " E114" , " E117" , " ISC001" , " ISC002" , " Q000" , " Q001" , " Q002" , " Q003" , " W191" ,
79
84
]
80
- fixable = [" I001" , " B010 " ]
81
- isort.known-first-party = [" essspectroscopy " ]
85
+ fixable = [" B010 " , " I001" , " PT001 " ]
86
+ isort.known-first-party = [" ess.spectroscopy " ]
82
87
pydocstyle.convention = " numpy"
83
88
84
89
[tool .ruff .lint .per-file-ignores ]
@@ -109,3 +114,11 @@ enable_error_code = [
109
114
" truthy-bool" ,
110
115
]
111
116
warn_unreachable = true
117
+
118
+ [tool .codespell ]
119
+ ignore-words-list = [
120
+ # Codespell wants "socioeconomic" which seems to be the standard spelling.
121
+ # But we use the word in our code of conduct which is the contributor covenant.
122
+ # Let's not modify it if we don't have to.
123
+ " socio-economic" ,
124
+ ]
0 commit comments