File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1616 FORCE_COLOR : " 1"
1717
1818jobs :
19+ # If you update any of these commands, don't forget to update the equivalent
20+ # tox environment
1921 ruff :
2022 runs-on : ubuntu-latest
2123
Original file line number Diff line number Diff line change @@ -28,6 +28,19 @@ setenv =
2828commands =
2929 python -X dev -X warn_default_encoding -m pytest --durations 25 {posargs}
3030
31+ [testenv:lint]
32+ description =
33+ Run linters.
34+ extras =
35+ lint
36+ # If you update any of these commands, don't forget to update the equivalent
37+ # GitHub Workflow step
38+ commands =
39+ ruff . --diff --format github
40+ flake8 .
41+ isort --check-only --diff .
42+ mypy sphinx/
43+
3144[testenv:docs]
3245description =
3346 Build documentation.
@@ -70,4 +83,5 @@ description =
7083extras =
7184 lint
7285 test
73- commands = mypy {posargs}
86+ commands =
87+ mypy {posargs}
You can’t perform that action at this time.
0 commit comments