@@ -131,53 +131,28 @@ ignore_missing_imports = true
131131# suppress error messages about imports that cannot be resolved.
132132ignore_missing_imports = true
133133
134- [tool .isort ]
135- # isort is a common python tool for keeping imports nicely formatted.
136- # Automatically keep imports alphabetically sorted, on single lines in
137- # PEP recommended sections (https://peps.python.org/pep-0008/#imports)
138- # files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
139- force_single_line = true
140- profile = " black"
141- py_version = 39
142- quiet = true
143- skip = " selenium/webdriver/common/devtools"
144-
145- [tool .black ]
146- extend-exclude = " selenium/webdriver/common/devtools"
147- line-length = 120
148- target-version = [" py39" ]
149-
150- [tool .autoflake ]
134+ [tool .docformatter ]
151135exclude = " selenium/webdriver/common/devtools"
152- ignore-pass-after-docstring = true
153136in-place = true
154- quiet = true
155137recursive = true
156- remove-all-unused-imports = true
157- remove-duplicate-keys = true
158- remove-unused-variables = true
159-
160- [tool .flake8 ]
161- exclude = " selenium/webdriver/common/devtools"
162- # Disable E501 once line length is better handled
163- extend-ignore = [" E501" , " E203" ]
164- # This does nothing for now as E501 is ignored
165- max-line-length = 120
166- min-python-version = " 3.9"
167138
168139[tool .ruff ]
169- exclude = [
140+ extend- exclude = [
170141 " selenium/webdriver/common/devtools/" ,
171142 " private/" ,
172143 " generate.py" ,
173144]
174145line-length = 120
146+ indent-width = 4
147+ respect-gitignore = true
148+ target-version = " py39"
175149
176150[tool .ruff .lint ]
177- extend-select = [" E501" ]
151+ # extend-select = ["E4", "E7", "E9", "F"]
152+ extend-select = [" E4" , " E7" , " E9" , " F" , " E501" ]
153+ # extend-ignore = ["E501"]
178154fixable = [" ALL" ]
179155
180- [tool .docformatter ]
181- exclude = " selenium/webdriver/common/devtools"
182- in-place = true
183- recursive = true
156+ [tool .ruff .format ]
157+ docstring-code-format = true
158+ docstring-code-line-length = 120
0 commit comments