From db42c46db47fef0e5bff41cf782dc441c9eb20dc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 21:22:28 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.4.4) - [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.1.2](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.1.2) - [github.com/abravalheri/validate-pyproject: v0.16 → v0.18](https://github.com/abravalheri/validate-pyproject/compare/v0.16...v0.18) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cbadf54..4155785 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: check-yaml # ----- Python formatting ----- - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.3 + rev: v0.4.4 hooks: # Run ruff linter. - id: ruff @@ -24,10 +24,10 @@ repos: - id: pretty-format-yaml args: [--autofix, --indent, '2'] - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.8.0 + rev: 2.1.2 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.16 + rev: v0.18 hooks: - id: validate-pyproject From bf37962f9b3d0d3825a34d5f482f8ee71269288b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 21:22:34 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 38 +++++++++++++++++++------------------- test/pyproject.toml | 32 +++++++++++++++----------------- 2 files changed, 34 insertions(+), 36 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d7aca76..252a175 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,21 @@ +[build-system] +build-backend = "setuptools.build_meta" +requires = [ + "setuptools>=64", + "setuptools-scm[toml]>=6.2", +] + [project] name = "pydeps2env" description = "A python helper to generate conda environment files from project dependencies." -readme = {file = "README.md", content-type="text/markdown"} +readme = { file = "README.md", content-type = "text/markdown" } keywords = [ "conda", "pyproject", ] -license = {file = "LICENSE", name="BSD License"} +license = { file = "LICENSE", name = "BSD License" } authors = [ - {name="Çağtay Fabry", email="cagtay.fabry@bam.de"}, + { name = "Çağtay Fabry", email = "cagtay.fabry@bam.de" }, ] requires-python = ">=3.9" classifiers = [ @@ -31,29 +38,22 @@ dynamic = [ dependencies = [ "packaging", "pyyaml", - 'tomli; python_version < "3.11"', + "tomli; python_version<'3.11'", ] -[project.optional-dependencies] -test = [ +optional-dependencies.test = [ # needed to run the test suite "pytest", "pytest-cov", ] -[project.urls] -bug_tracker = "https://github.com/CagtayFabry/pydeps2env/-/issues" -repository = "https://github.com/CagtayFabry/pydeps2env" -[project.scripts] -pydeps2env = "pydeps2env.generate_environment:main" - -[build-system] -build-backend = "setuptools.build_meta" -requires = [ - "setuptools>=64", - "setuptools_scm[toml]>=6.2", -] +urls.bug_tracker = "https://github.com/CagtayFabry/pydeps2env/-/issues" +urls.repository = "https://github.com/CagtayFabry/pydeps2env" +scripts.pydeps2env = "pydeps2env.generate_environment:main" [tool.setuptools.packages] -find = {exclude = ["test", "resources"]} +find = { exclude = [ + "test", + "resources", +] } [tool.setuptools_scm] write_to = "pydeps2env/_version.py" diff --git a/test/pyproject.toml b/test/pyproject.toml index d54f4fa..420648b 100644 --- a/test/pyproject.toml +++ b/test/pyproject.toml @@ -1,3 +1,11 @@ +[build-system] +build-backend = "setuptools.build_meta" +requires = [ + "setuptools>=40.9", + "setuptools-scm", + "wheel", +] + [project] name = "test" requires-python = ">=3.8,<3.10" @@ -8,29 +16,19 @@ classifiers = [ ] dependencies = [ "boltons", - "IPython", + "ipython", "numpy>=1.20", "pandas>=1", ] -[project.optional-dependencies] -doc = [ +optional-dependencies.doc = [ "sphinx", ] -pip_only = [ +optional-dependencies.pip_only = [ "bidict", ] -test = [ +optional-dependencies.test = [ "pytest", ] -[project.urls] -author = "Cagtay Fabry " -author_email = "cagtay.fabry@bam.de" -home_page = "https://github.com/CagtayFabry/pydeps2env" - -[build-system] -build-backend = "setuptools.build_meta" -requires = [ - "setuptools>=40.9", - "setuptools_scm", - "wheel", -] +urls.author = "Cagtay Fabry " +urls.author_email = "cagtay.fabry@bam.de" +urls.home_page = "https://github.com/CagtayFabry/pydeps2env" From 43a70c5119471bf7f1880fa9873615d24124d3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Ftay=20Fabry?= Date: Tue, 21 May 2024 09:15:31 +0200 Subject: [PATCH 3/3] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4155785..f564217 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: pretty-format-yaml args: [--autofix, --indent, '2'] - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2.1.2 + rev: 2.1.3 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject