Skip to content

Commit 5936e03

Browse files
cgoldbergsandeepsuryaprasad
authored andcommitted
[py] Ignore devtools during linting (SeleniumHQ#15410)
This excludes code in the `selenium/webdriver/common/devtools` directory from Python linting tool configurations (black, flake8, docformatter), so linting can run without complaining about devtools violations.
1 parent f9a875c commit 5936e03

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

py/pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,14 @@ ignore_missing_imports = true
135135
# PEP recommended sections (https://peps.python.org/pep-0008/#imports)
136136
# files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
137137
profile = "black"
138-
py_version=38
138+
py_version=39
139139
force_single_line = true
140140

141141
[tool.black]
142+
extend-exclude = 'selenium/webdriver/common/devtools'
142143
line-length = 120
143-
target-version = ['py38']
144+
target-version = ['py39']
144145

145146
[tool.docformatter]
147+
exclude = 'selenium/webdriver/common/devtools'
146148
recursive = true

py/tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ commands =
6868
docformatter --in-place -r selenium/
6969

7070
[flake8]
71-
exclude = .tox,docs/source/conf.py,*venv
71+
exclude = .tox,selenium/webdriver/common/devtools,docs/source/conf.py,*venv
7272
# Disable this once black is applied throughout & line length is better handled.
7373
extend-ignore = E501, E203
7474
# This does nothing for now as E501 is ignored.

0 commit comments

Comments
 (0)