File tree Expand file tree Collapse file tree 5 files changed +25
-10
lines changed Expand file tree Collapse file tree 5 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ default_language_version:
22 python : " 3.10"
33repos :
44- repo : https://github.com/psf/black
5- rev : 22.10 .0
5+ rev : 22.12 .0
66 hooks :
77 - id : black
88 args : [--safe, --quiet]
4444 - id : reorder-python-imports
4545 args : ['--application-directories=.:src', --py37-plus]
4646- repo : https://github.com/asottile/pyupgrade
47- rev : v3.1.0
47+ rev : v3.3.1
4848 hooks :
4949 - id : pyupgrade
5050 args : [--py37-plus]
Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ version: 2
22
33python :
44 install :
5- - requirements : doc/en/requirements.txt
6- - method : pip
7- path : .
5+ # Install pytest first, then doc/en/requirements.txt.
6+ # This order is important to honor any pins in doc/en/requirements.txt
7+ # when the pinned library is also a dependency of pytest.
8+ - method : pip
9+ path : .
10+ - requirements : doc/en/requirements.txt
811
912build :
1013 os : ubuntu-20.04
Original file line number Diff line number Diff line change 270270
271271Once you are done with your work and want to make sure that your actual
272272package passes all tests you may want to look into :doc: `tox <tox:index >`, the
273- virtualenv test automation tool and its :doc: ` pytest support < tox:example/pytest >` .
274- tox helps you to setup virtualenv environments with pre-defined
273+ virtualenv test automation tool.
274+ `` tox `` helps you to setup virtualenv environments with pre-defined
275275dependencies and then executing a pre-configured test command with
276276options. It will run tests against the installed package and not
277277against your source code checkout, helping to detect packaging
Original file line number Diff line number Diff line change @@ -5,3 +5,7 @@ sphinx-removed-in>=0.2.0
55sphinx >= 5 ,< 6
66sphinxcontrib-trio
77sphinxcontrib-svg2pdfconverter
8+ # Pin packaging because it no longer handles 'latest' version, which
9+ # is the version that is assigned to the docs.
10+ # See https://github.com/pytest-dev/pytest/pull/10578#issuecomment-1348249045.
11+ packaging < 22
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ commands =
3030 doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
3131 coverage: coverage combine
3232 coverage: coverage report -m
33- passenv = USER USERNAME COVERAGE_* PYTEST_ADDOPTS TERM SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
33+ passenv =
34+ COVERAGE_*
35+ PYTEST_ADDOPTS
36+ TERM
37+ SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
3438setenv =
3539 _PYTEST_TOX_DEFAULT_POSARGS ={env:_PYTEST_TOX_POSARGS_DOCTESTING:} {env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:}
3640
@@ -93,7 +97,8 @@ commands =
9397[testenv:regen]
9498changedir = doc/en
9599basepython = python3
96- passenv = SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
100+ passenv =
101+ SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
97102deps =
98103 dataclasses
99104 PyYAML
@@ -161,7 +166,10 @@ commands = python scripts/prepare-release-pr.py {posargs}
161166description = create GitHub release after deployment
162167basepython = python3
163168usedevelop = True
164- passenv = GH_RELEASE_NOTES_TOKEN GITHUB_REF GITHUB_REPOSITORY
169+ passenv =
170+ GH_RELEASE_NOTES_TOKEN
171+ GITHUB_REF
172+ GITHUB_REPOSITORY
165173deps =
166174 github3.py
167175 pypandoc
You can’t perform that action at this time.
0 commit comments