diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 52fe8aa..42b4376 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 3b82081..2fe3bd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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" @@ -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" @@ -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"]