Skip to content

Commit fc9087c

Browse files
authored
Bump tools and deps (#13)
1 parent 53349c7 commit fc9087c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ repos:
4444
hooks:
4545
- id: flake8
4646
additional_dependencies:
47-
- flake8-bugbear==22.9.23
48-
- flake8-comprehensions==3.10
47+
- flake8-bugbear==22.10.27
48+
- flake8-comprehensions==3.10.1
4949
- flake8-pytest-style==1.6
5050
- flake8-spellcheck==0.28
5151
- flake8-unused-arguments==0.0.12

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ urls.Homepage = "https://github.com/pytest-dev/pytest-env"
1212
urls.Source = "https://github.com/pytest-dev/pytest-env"
1313
urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues"
1414
requires-python = ">=3.7"
15-
dependencies = ["pytest>=7.1.3"]
15+
dependencies = ["pytest>=7.2"]
1616
optional-dependencies.test = ["coverage>=6.5", "pytest-mock>=3.10"]
1717
keywords = ["pytest", "env"]
1818
classifiers = [

tests/test_env.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@
9595
def test_env(
9696
testdir: pytest.Testdir, env: dict[str, str], ini: str, expected_env: dict[str, str], request: pytest.FixtureRequest
9797
) -> None:
98+
tmp_dir = Path(str(testdir.tmpdir))
9899
test_name = re.sub(r"\W|^(?=\d)", "_", request.node.callspec.id).lower()
99-
Path(str(testdir.tmpdir / f"test_{test_name}.py")).symlink_to(Path(__file__).parent / "template.py")
100-
(testdir.tmpdir / "pytest.ini").write_text(ini, encoding="utf-8")
100+
Path(str(tmp_dir / f"test_{test_name}.py")).symlink_to(Path(__file__).parent / "template.py")
101+
(tmp_dir / "pytest.ini").write_text(ini, encoding="utf-8")
101102

102103
# monkeypatch persists env variables across parametrized tests, therefore using mock.patch.dict
103104
with mock.patch.dict(os.environ, {**env, "_TEST_ENV": repr(expected_env)}, clear=True):

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ commands =
5454
description = check that the long description is valid
5555
skip_install = true
5656
deps =
57-
build[virtualenv]>=0.8
57+
build[virtualenv]>=0.9
5858
twine>=4.0.1
5959
changedir = {toxinidir}
6060
commands =

0 commit comments

Comments
 (0)