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 1313 FORCE_COLOR : " 1"
1414
1515jobs :
16+ # If you update any of these commands, don't forget to update the equivalent
17+ # tox environment
1618 ruff :
1719 runs-on : ubuntu-latest
1820
@@ -101,7 +103,7 @@ jobs:
101103 run : >
102104 sphinx-lint
103105 --enable line-too-long
104- --max-line-length 85
106+ --max-line-length 85
105107 CHANGES
106108 CONTRIBUTING.rst
107109 README.rst
Original file line number Diff line number Diff line change @@ -25,6 +25,19 @@ setenv =
2525commands =
2626 python -X dev -X warn_default_encoding -m pytest --durations 25 {posargs}
2727
28+ [testenv:lint]
29+ description =
30+ Run linters.
31+ extras =
32+ lint
33+ # If you update any of these commands, don't forget to update the equivalent
34+ # GitHub Workflow step
35+ commands =
36+ ruff . --diff --format github
37+ flake8 .
38+ isort --check-only --diff .
39+ mypy sphinx/
40+
2841[testenv:docs]
2942description =
3043 Build documentation.
You can’t perform that action at this time.
0 commit comments