Commit f0ce514 1 parent 7cbc833 commit f0ce514 Copy full SHA for f0ce514
File tree 2 files changed +16
-12
lines changed
{{cookiecutter.project_name}}
2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ filterwarnings = ["error"]
61
61
62
62
[tool .ruff ]
63
63
line-length = 120
64
+
65
+ [tool .ruff .format ]
66
+ docstring-code-format = true
67
+
68
+ [tool .ruff .lint ]
64
69
allowed-confusables = [" ’" , " ×" ]
65
70
select = [
66
71
" A" ,
@@ -96,13 +101,10 @@ ignore = [
96
101
]
97
102
unfixable = [" RUF001" ] # never “fix” “confusables”
98
103
99
- [tool .ruff .format ]
100
- docstring-code-format = true
101
-
102
- [tool .ruff .isort ]
104
+ [tool .ruff .lint .isort ]
103
105
known-first-party = [" scverse_template_scripts" ]
104
106
105
- [tool .ruff .per-file-ignores ]
107
+ [tool .ruff .lint . per-file-ignores ]
106
108
"tests/*.py" = [
107
109
" ARG001" , # pytest fixtures don’t need to be used
108
110
" PLR0913" , # allow as many pytest fixtures being used as one likes
Original file line number Diff line number Diff line change @@ -68,8 +68,14 @@ addopts = [
68
68
]
69
69
70
70
[tool .ruff ]
71
- src = [" src" ]
72
71
line-length = 120
72
+ src = [" src" ]
73
+ extend-include = [" *.ipynb" ]
74
+
75
+ [tool .ruff .format ]
76
+ docstring-code-format = true
77
+
78
+ [tool .ruff .lint ]
73
79
select = [
74
80
" F" , # Errors detected by Pyflakes
75
81
" E" , # Error detected by Pycodestyle
@@ -110,15 +116,11 @@ ignore = [
110
116
# We want docstrings to start immediately after the opening triple quote
111
117
" D213" ,
112
118
]
113
- extend-include = [" *.ipynb" ]
114
-
115
- [tool .ruff .format ]
116
- docstring-code-format = true
117
119
118
- [tool .ruff .pydocstyle ]
120
+ [tool .ruff .lint . pydocstyle ]
119
121
convention = " numpy"
120
122
121
- [tool .ruff .per-file-ignores ]
123
+ [tool .ruff .lint . per-file-ignores ]
122
124
"docs/*" = [" I" ]
123
125
"tests/*" = [" D" ]
124
126
"*/__init__.py" = [" F401" ]
You can’t perform that action at this time.
0 commit comments