File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 38
38
- name : Test with tox
39
39
run : tox -c py/tox.ini
40
40
env :
41
- TOXENV : linting
41
+ TOXENV : linting-check
42
42
43
43
tox_docs :
44
44
if : ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run python]') == true }}
Original file line number Diff line number Diff line change @@ -30,6 +30,21 @@ py_version=37
30
30
force_single_line = True
31
31
32
32
33
+ [testenv:linting-check]
34
+ ; checks linting for CI with stricter exiting when failing.
35
+ skip_install = true
36
+ deps =
37
+ isort ==5.10.1
38
+ black ==22.8.0
39
+ flake8 ==5.0.4
40
+ flake8-typing-imports ==1.13.0
41
+ commands =
42
+ ; execute isort in check only mode.
43
+ isort --check-only --diff selenium/ test/
44
+ ; execute black in check only mode with diff.
45
+ black --check --diff test/ selenium/common/ selenium/webdriver/safari -l 120
46
+ flake8 selenium/ test/ --min-python-version =3.7
47
+
33
48
[testenv:linting]
34
49
; A consolidated linting based recipe, responsible for executing linting tools across the code base.
35
50
; This encompasses isort for imports, black for general formatting and flake8.
You can’t perform that action at this time.
0 commit comments