File tree Expand file tree Collapse file tree 1 file changed +45
-3
lines changed Expand file tree Collapse file tree 1 file changed +45
-3
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,53 @@ raw-options = {version_scheme = "release-branch-semver" }
109109[tool .hatch .build .hooks .vcs ]
110110version-file = " niworkflows/_version.py"
111111
112+ # Disable black
112113[tool .black ]
114+ exclude = " .*"
115+
116+ [tool .ruff ]
113117line-length = 99
114- target-version = [' py37' ]
115- skip-string-normalization = true
116- extend-exclude = ' _version.py'
118+
119+ [tool .ruff .lint ]
120+ extend-select = [
121+ " F" ,
122+ " E" ,
123+ " W" ,
124+ " I" ,
125+ " UP" ,
126+ " YTT" ,
127+ " S" ,
128+ " BLE" ,
129+ " B" ,
130+ " A" ,
131+ # "CPY",
132+ " C4" ,
133+ " DTZ" ,
134+ " T10" ,
135+ # "EM",
136+ " EXE" ,
137+ " FA" ,
138+ " ISC" ,
139+ " ICN" ,
140+ " PT" ,
141+ " Q" ,
142+ ]
143+ ignore = [
144+ " S311" , # We are not using random for cryptographic purposes
145+ " ISC001" ,
146+ " S603" ,
147+ ]
148+
149+ [tool .ruff .lint .flake8-quotes ]
150+ inline-quotes = " single"
151+
152+ [tool .ruff .lint .extend-per-file-ignores ]
153+ "*/test_*.py" = [" S101" ]
154+ "docs/conf.py" = [" A001" ]
155+ "docs/sphinxext/github_link.py" = [" BLE001" ]
156+
157+ [tool .ruff .format ]
158+ quote-style = " single"
117159
118160[tool .pytest .ini_options ]
119161minversion = " 6"
You can’t perform that action at this time.
0 commit comments