From df78c51bfba888c9d145fbd3d66f45b74dac0271 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Mon, 19 Dec 2022 14:00:35 +0100 Subject: [PATCH] pre-commit pyproject ftm --- .pre-commit-config.yaml | 10 +++++----- pyproject.toml | 15 ++++++++++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e48deea..09cb80b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,11 +4,11 @@ repos: hooks: - id: pyupgrade args: [--py37-plus] -- repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.2.0 - hooks: - - id: setup-cfg-fmt - args: [--include-version-classifiers] +- repo: https://github.com/tox-dev/pyproject-fmt + rev: "0.4.1" + hooks: + - id: pyproject-fmt + - repo: https://github.com/psf/black rev: 22.12.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index b6d07f4..6eee6ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,18 +1,23 @@ [build-system] -requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" +requires = [ + "hatch-vcs", + "hatchling", +] [project] name = "iniconfig" -dynamic = ["version"] description = "brain-dead simple config-ini parsing" readme = "README.rst" license = "MIT" -requires-python = ">=3.7" authors = [ { name = "Ronny Pfannschmidt", email = "opensource@ronnypfannschmidt.de" }, { name = "Holger Krekel", email = "holger.krekel@gmail.com" }, ] +requires-python = ">=3.7" +dynamic = [ + "version", +] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", @@ -30,10 +35,10 @@ classifiers = [ "Topic :: Software Development :: Libraries", "Topic :: Utilities", ] - [project.urls] Homepage = "https://github.com/pytest-dev/iniconfig" + [tool.hatch.version] source = "vcs" @@ -62,4 +67,4 @@ strict = true [tool.pytest.ini_options] -testpaths = "testing" \ No newline at end of file +testpaths = "testing"