Skip to content

Commit d452a7f

Browse files
authored
Add pyproject-fmt (#19)
Committed via https://github.com/asottile/all-repos
1 parent ebe0ae1 commit d452a7f

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ repos:
5151
- flake8-unused-arguments==0.0.13
5252
- flake8-noqa==1.3
5353
- pep8-naming==0.13.3
54+
- repo: https://github.com/tox-dev/pyproject-fmt
55+
rev: "0.9.2"
56+
hooks:
57+
- id: pyproject-fmt

pyproject.toml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
[build-system]
22
build-backend = "hatchling.build"
3-
requires = ["hatchling>=1.12.2", "hatch-vcs>=0.3"]
3+
requires = [
4+
"hatch-vcs>=0.3",
5+
"hatchling>=1.12.2",
6+
]
47

58
[project]
69
name = "pytest-env"
710
description = "py.test plugin that allows you to add environment variables."
811
readme = "README.md"
12+
keywords = [
13+
"env",
14+
"pytest",
15+
]
916
license.file = "LICENSE"
1017
maintainers = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }]
11-
urls.Homepage = "https://github.com/pytest-dev/pytest-env"
12-
urls.Source = "https://github.com/pytest-dev/pytest-env"
13-
urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues"
1418
requires-python = ">=3.7"
15-
dependencies = ["pytest>=7.2.1"]
16-
optional-dependencies.test = ["coverage>=7.1", "pytest-mock>=3.10"]
17-
keywords = ["pytest", "env"]
1819
classifiers = [
1920
"Development Status :: 5 - Production/Stable",
2021
"Intended Audience :: Developers",
@@ -26,8 +27,19 @@ classifiers = [
2627
"Programming Language :: Python :: Implementation :: CPython",
2728
"Topic :: Software Development :: Libraries :: Python Modules",
2829
]
29-
dynamic = ["version"]
30-
30+
dynamic = [
31+
"version",
32+
]
33+
dependencies = [
34+
"pytest>=7.2.1",
35+
]
36+
optional-dependencies.test = [
37+
"coverage>=7.1",
38+
"pytest-mock>=3.10",
39+
]
40+
urls.Homepage = "https://github.com/pytest-dev/pytest-env"
41+
urls.Source = "https://github.com/pytest-dev/pytest-env"
42+
urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues"
3143
[project.entry-points.pytest11]
3244
env = "pytest_env.plugin"
3345

@@ -38,6 +50,10 @@ version.source = "vcs"
3850
[tool.black]
3951
line-length = 120
4052

53+
[tool.isort]
54+
profile = "black"
55+
known_first_party = ["pytest_env"]
56+
4157
[tool.coverage]
4258
run.source = ["pytest_env", "tests"]
4359
run.dynamic_context = "test_function"
@@ -60,7 +76,3 @@ paths.source = [
6076
python_version = "3.10"
6177
show_error_codes = true
6278
strict = true
63-
64-
[tool.isort]
65-
profile = "black"
66-
known_first_party = ["pytest_env"]

0 commit comments

Comments
 (0)