@@ -65,58 +65,57 @@ skip-string-normalization = true
65
65
[tool .ruff ]
66
66
line-length = 100
67
67
68
- [tool .ruff .lint ]
69
- select = [
68
+ lint.select = [
70
69
" B" , # flake8-bugbear
71
- " C" ,
72
- ' D' , # pydocstyle
73
- " E" , # pycodestyle
74
- " F" , # Pyflakes
75
- " I" , # isort
76
- " W" , # pycodestyle
77
70
# "T4",
78
71
" B9" ,
72
+ " C" ,
73
+ " D" , # pydocstyle
74
+ " E" , # pycodestyle
75
+ " F" , # Pyflakes
76
+ " I" , # isort
77
+ " W" , # pycodestyle
79
78
]
80
- ignore = [
79
+ lint.ignore = [
80
+ " C901" ,
81
81
" D100" , # Missing docstring in public module
82
- " D107" , # Missing docstring in `__init__`
83
82
" D104" , # Missing docstring in public package
84
83
" D105" , # Missing docstring in magic method
84
+ " D107" , # Missing docstring in `__init__`
85
+ " E402" ,
85
86
# "E203",
86
87
# "E266",
87
88
" E501" ,
88
89
# "W503",
89
90
" E722" ,
90
- " E402" ,
91
- " C901" ,
92
91
]
93
- exclude = [
94
- " tests/" ,
92
+ lint.exclude = [
95
93
" docs/" ,
94
+ " tests/" ,
96
95
]
97
-
98
- [tool .ruff .lint .per-file-ignores ]
99
- "tests/*" = [
96
+ lint.per-file-ignores."docs/*" = [
97
+ " D101" , # missing docstring in public class
98
+ " D102" , # missing docstring in public method
99
+ " D103" , # missing docstring in public function
100
+ ]
101
+ lint.per-file-ignores."tests/*" = [
100
102
" D103" , # Missing docstring in public function
101
103
" D205" , # blank line between summary and description
102
104
" D415" , # first line should end with punctuation
103
105
]
104
- "docs/*" = [
105
- " D101" , # missing docstring in public class
106
- " D102" , # missing docstring in public method
107
- " D103" , # missing docstring in public function
106
+ # Allow fastapi.Depends and other dependency injection style function arguments
107
+ lint.flake8-bugbear.extend-immutable-calls = [
108
+ " fastapi.Depends" ,
109
+ " fastapi.Path" ,
110
+ " fastapi.Query" ,
108
111
]
109
-
110
- [tool .ruff .lint .mccabe ]
111
- # Unlike Flake8, default to a complexity level of 10.
112
- max-complexity = 18
113
-
114
- [tool .ruff .lint .isort ]
115
- combine-as-imports = true
116
- known-first-party = [
112
+ lint.flake8-quotes.docstring-quotes = " double"
113
+ lint.flake8-quotes.inline-quotes = " single"
114
+ lint.isort.combine-as-imports = true
115
+ lint.isort.known-first-party = [
117
116
" xpublish" ,
118
117
]
119
- known-third-party = [
118
+ lint.isort. known-third-party = [
120
119
" cachey" ,
121
120
" dask" ,
122
121
" fastapi" ,
@@ -134,22 +133,10 @@ known-third-party = [
134
133
" xarray" ,
135
134
" zarr" ,
136
135
]
137
-
138
- [ tool . ruff . lint .pydocstyle ]
136
+ # Unlike Flake8, default to a complexity level of 10.
137
+ lint.mccabe.max-complexity = 18
139
138
# Use Google style docstrings
140
- convention = " google"
141
-
142
- [tool .ruff .lint .flake8-quotes ]
143
- inline-quotes = " single"
144
- docstring-quotes = " double"
145
-
146
- [tool .ruff .lint .flake8-bugbear ]
147
- # Allow fastapi.Depends and other dependency injection style function arguments
148
- extend-immutable-calls = [
149
- " fastapi.Depends" ,
150
- " fastapi.Query" ,
151
- " fastapi.Path" ,
152
- ]
139
+ lint.pydocstyle.convention = " google"
153
140
154
141
[tool .pytest .ini_options ]
155
142
log_cli = true
0 commit comments