File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,21 @@ commands =
67
67
-i " {toxinidir}/docs/src/examples" \
68
68
{[tox]lint_folders} " {toxinidir}/README.rst"
69
69
70
- [testenv:format]
71
- # Abuse tox to do actual formatting. Users can call `tox -e format` to run
72
- # formatting on all files
70
+ [testenv:{format,format-unsafe}]
71
+ description =
72
+ format: Formats files in working directory.
73
+ format-unsafe: Formats files in working directory. Fixes more linter errors
74
+ but might alter code logic. Result of this formatting should
75
+ be double checked.
73
76
skip_install = true
74
77
deps =
75
78
ruff
76
79
black
77
80
blackdoc
78
81
isort
79
82
commands =
80
- ruff check --fix {[tox]lint_folders}
83
+ format: ruff check --fix {[tox]lint_folders}
84
+ format-unsafe: ruff check --fix --unsafe-fixes {[tox]lint_folders}
81
85
black {[tox]lint_folders}
82
86
blackdoc {[tox]lint_folders}
83
87
isort {[tox]lint_folders}
You can’t perform that action at this time.
0 commit comments