File tree Expand file tree Collapse file tree 2 files changed +35
-23
lines changed Expand file tree Collapse file tree 2 files changed +35
-23
lines changed Original file line number Diff line number Diff line change @@ -86,3 +86,34 @@ indent = 4
86
86
include_trailing_comma = true
87
87
lines_after_imports = 2
88
88
known_first_party = " skmatter"
89
+
90
+ [tool .ruff ]
91
+ exclude = [" docs/src/examples/" ]
92
+ lint.ignore = [
93
+ " F401" ,
94
+ " E203" ,
95
+ " D100" ,
96
+ " D101" ,
97
+ " D102" ,
98
+ " D205" ,
99
+ " D400" ,
100
+ " D401" ,
101
+ " D410" ,
102
+ " D411" ,
103
+ ]
104
+ line-length = 88
105
+ lint.select = [
106
+ " D" ,
107
+ " E" ,
108
+ " F" ,
109
+ " W" ,
110
+ ]
111
+
112
+ [tool .ruff .lint .pydocstyle ]
113
+ convention = " numpy"
114
+
115
+ [tool .ruff .lint .per-file-ignores ]
116
+ "examples/**" = [
117
+ " D205" ,
118
+ " D400" ,
119
+ ]
Original file line number Diff line number Diff line change @@ -55,14 +55,11 @@ skip_install = true
55
55
deps =
56
56
black
57
57
blackdoc
58
- flake8
59
- flake8-bugbear
60
- flake8-docstrings
61
- flake8-sphinx-links
58
+ ruff
62
59
isort
63
60
sphinx-lint
64
61
commands =
65
- flake8 {[tox]lint_folders}
62
+ ruff check {[tox]lint_folders}
66
63
black --check --diff {[tox]lint_folders}
67
64
blackdoc --check --diff {[tox]lint_folders}
68
65
isort --check-only --diff {[tox]lint_folders}
@@ -75,10 +72,12 @@ commands =
75
72
# formatting on all files
76
73
skip_install = true
77
74
deps =
75
+ ruff
78
76
black
79
77
blackdoc
80
78
isort
81
79
commands =
80
+ ruff check --fix {[tox]lint_folders}
82
81
black {[tox]lint_folders}
83
82
blackdoc {[tox]lint_folders}
84
83
isort {[tox]lint_folders}
@@ -92,21 +91,3 @@ extras = examples
92
91
commands =
93
92
sphinx-build {posargs:-E} -W -b doctest docs/src docs/build/doctest
94
93
sphinx-build {posargs:-E} -W -b html docs/src docs/build/html
95
-
96
- [flake8]
97
- max_line_length = 88
98
- exclude =
99
- docs/src/examples/
100
- docstring-convention = numpy
101
- per-file-ignores =
102
- # D205 and D400 are incompatible with the requirements of sphinx-gallery
103
- examples/**:D205, D400
104
- ignore =
105
- E203
106
- D100
107
- D101
108
- D102
109
- D205
110
- D400
111
- D401
112
- W503
You can’t perform that action at this time.
0 commit comments