Skip to content

Commit 1b056cf

Browse files
authored
feat: deprecate requirements.txt file in favor of using pyproject dependencies argument
feat: deprecate requirements.txt file in favor of using pyproject dependencies argument
2 parents ae2e5e0 + 4d84b54 commit 1b056cf

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ repos:
1212
- id: mypy
1313
args: [--ignore-missing-imports, --check-untyped-defs]
1414
additional_dependencies: [types-PyYAML]
15-
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v4.5.0
15+
- repo: https://github.com/pappasam/toml-sort
16+
rev: v0.24.2
1717
hooks:
18-
- id: requirements-txt-fixer
18+
- id: toml-sort
19+
args: ["--all", "--trailing-comma-inline-array"]

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "python_project"
77
version = "0.0.1"
8-
dynamic = ["dependencies"]
98
requires-python = ">=3.8"
9+
dependencies = [
10+
"pre-commit",
11+
"pytest",
12+
"pytest-cov",
13+
]
1014

1115
[tool.coverage]
1216
branch = true
@@ -48,6 +52,3 @@ no-lines-before = ["local-folder"]
4852

4953
[tool.setuptools]
5054
packages = ["src"]
51-
52-
[tool.setuptools.dynamic]
53-
dependencies = {file = ["requirements.txt"]}

requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)