From 0c09665b2df742487a05ed5905e06c526e1fa545 Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Tue, 27 May 2025 13:39:31 -0700 Subject: [PATCH 1/3] fix: deprecating reqs txt file --- requirements.txt | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 0652d0e..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -pre-commit -pytest -pytest-cov From 568f8d840b6afa2c0f6c3d174ee93b711da755d3 Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Tue, 27 May 2025 13:40:05 -0700 Subject: [PATCH 2/3] feat: add deps to pyproject toml --- pyproject.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a14c107..fa81333 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,8 +5,12 @@ build-backend = "setuptools.build_meta" [project] name = "python_project" version = "0.0.1" -dynamic = ["dependencies"] requires-python = ">=3.8" +dependencies = [ + "pre-commit", + "pytest", + "pytest-cov", +] [tool.coverage] branch = true @@ -48,6 +52,3 @@ no-lines-before = ["local-folder"] [tool.setuptools] packages = ["src"] - -[tool.setuptools.dynamic] -dependencies = {file = ["requirements.txt"]} From 4d84b5480d03e21eab5fd6077114ff1d5fc77d5a Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Tue, 27 May 2025 13:40:20 -0700 Subject: [PATCH 3/3] fix: use toml sort instead of reqs sort --- .pre-commit-config.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47e131a..1a86b8f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,8 @@ repos: - id: mypy args: [--ignore-missing-imports, --check-untyped-defs] additional_dependencies: [types-PyYAML] - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + - repo: https://github.com/pappasam/toml-sort + rev: v0.24.2 hooks: - - id: requirements-txt-fixer + - id: toml-sort + args: ["--all", "--trailing-comma-inline-array"]