File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
[flake8]
2
2
exclude = .tox,docs/source/conf.py,*venv
3
- ignore = E501
3
+ # Disable this once black is applied throughout & line length is better handled.
4
+ extend-ignore = E501, E203
5
+ # This does nothing for now as E501 is ignored.
6
+ max-line-length = 120
4
7
5
8
[tool:pytest]
6
- addopts = -r =a
9
+ addopts = -ra
7
10
python_files = test_*.py *_tests.py
8
11
testpaths = test
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ commands = mypy {posargs}
30
30
; PEP recommended sections (https://peps.python.org/pep-0008/#imports)
31
31
; files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
32
32
; this is using --diff which is a NO-OP, requires additional discussion / approval being enabled.
33
+ ; Right now it is opt in and not enforced in CI but will be in future.
33
34
profile = black
34
35
py_version =37
35
36
force_single_line = True
@@ -39,3 +40,13 @@ skip_install = true
39
40
deps =
40
41
isort ==5.10.1
41
42
commands = isort selenium/ test/
43
+
44
+ [testenv:black]
45
+ ; black is a common python code formatter. This allows us to keep code completely
46
+ ; consistent throughout all contributions and reduce merge conflicts in future.
47
+ ; Right now it is opt in and not enforced in CI but will be in future.
48
+ skip_install = true
49
+ deps =
50
+ black ==22.8.0
51
+ commands =
52
+ black test/ -l 120
You can’t perform that action at this time.
0 commit comments