Skip to content

Commit

Permalink
Add pyproject-fmt (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Mar 12, 2023
1 parent ebe0ae1 commit d452a7f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ repos:
- flake8-unused-arguments==0.0.13
- flake8-noqa==1.3
- pep8-naming==0.13.3
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.9.2"
hooks:
- id: pyproject-fmt
38 changes: 25 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=1.12.2", "hatch-vcs>=0.3"]
requires = [
"hatch-vcs>=0.3",
"hatchling>=1.12.2",
]

[project]
name = "pytest-env"
description = "py.test plugin that allows you to add environment variables."
readme = "README.md"
keywords = [
"env",
"pytest",
]
license.file = "LICENSE"
maintainers = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }]
urls.Homepage = "https://github.com/pytest-dev/pytest-env"
urls.Source = "https://github.com/pytest-dev/pytest-env"
urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues"
requires-python = ">=3.7"
dependencies = ["pytest>=7.2.1"]
optional-dependencies.test = ["coverage>=7.1", "pytest-mock>=3.10"]
keywords = ["pytest", "env"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand All @@ -26,8 +27,19 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["version"]

dynamic = [
"version",
]
dependencies = [
"pytest>=7.2.1",
]
optional-dependencies.test = [
"coverage>=7.1",
"pytest-mock>=3.10",
]
urls.Homepage = "https://github.com/pytest-dev/pytest-env"
urls.Source = "https://github.com/pytest-dev/pytest-env"
urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues"
[project.entry-points.pytest11]
env = "pytest_env.plugin"

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

[tool.isort]
profile = "black"
known_first_party = ["pytest_env"]

[tool.coverage]
run.source = ["pytest_env", "tests"]
run.dynamic_context = "test_function"
Expand All @@ -60,7 +76,3 @@ paths.source = [
python_version = "3.10"
show_error_codes = true
strict = true

[tool.isort]
profile = "black"
known_first_party = ["pytest_env"]

0 comments on commit d452a7f

Please sign in to comment.