File tree 5 files changed +25
-10
lines changed
5 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ default_language_version:
2
2
python : " 3.10"
3
3
repos :
4
4
- repo : https://github.com/psf/black
5
- rev : 22.10 .0
5
+ rev : 22.12 .0
6
6
hooks :
7
7
- id : black
8
8
args : [--safe, --quiet]
44
44
- id : reorder-python-imports
45
45
args : ['--application-directories=.:src', --py37-plus]
46
46
- repo : https://github.com/asottile/pyupgrade
47
- rev : v3.1.0
47
+ rev : v3.3.1
48
48
hooks :
49
49
- id : pyupgrade
50
50
args : [--py37-plus]
Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ version: 2
2
2
3
3
python :
4
4
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
8
11
9
12
build :
10
13
os : ubuntu-20.04
Original file line number Diff line number Diff line change 270
270
271
271
Once you are done with your work and want to make sure that your actual
272
272
package 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
275
275
dependencies and then executing a pre-configured test command with
276
276
options. It will run tests against the installed package and not
277
277
against 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
5
5
sphinx >= 5 ,< 6
6
6
sphinxcontrib-trio
7
7
sphinxcontrib-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 =
30
30
doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
31
31
coverage: coverage combine
32
32
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
34
38
setenv =
35
39
_PYTEST_TOX_DEFAULT_POSARGS ={env:_PYTEST_TOX_POSARGS_DOCTESTING:} {env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:}
36
40
@@ -93,7 +97,8 @@ commands =
93
97
[testenv:regen]
94
98
changedir = doc/en
95
99
basepython = python3
96
- passenv = SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
100
+ passenv =
101
+ SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
97
102
deps =
98
103
dataclasses
99
104
PyYAML
@@ -161,7 +166,10 @@ commands = python scripts/prepare-release-pr.py {posargs}
161
166
description = create GitHub release after deployment
162
167
basepython = python3
163
168
usedevelop = True
164
- passenv = GH_RELEASE_NOTES_TOKEN GITHUB_REF GITHUB_REPOSITORY
169
+ passenv =
170
+ GH_RELEASE_NOTES_TOKEN
171
+ GITHUB_REF
172
+ GITHUB_REPOSITORY
165
173
deps =
166
174
github3.py
167
175
pypandoc
You can’t perform that action at this time.
0 commit comments