Skip to content

Commit 72a53f6

Browse files
authored
chore: move deps from requirements-dev.txt to pyproject.toml (#68)
1 parent 099ab21 commit 72a53f6

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install .
30-
pip install -r requirements-dev.txt
29+
pip install .[dev]
3130
3231
- name: Run tests and collect coverage
3332
run: |

.gitpod.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77
tasks:
88
- init: |
99
python -m pip install --upgrade pip
10-
pip install .
11-
pip install -r requirements-dev.txt
10+
pip install .[dev]

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ clang-tidy-hook = "cpp_linter_hooks.clang_tidy:main"
4444
source = "https://github.com/cpp-linter/cpp-linter-hooks"
4545
tracker = "https://github.com/cpp-linter/cpp-linter-hooks/issues"
4646

47-
# ... other project metadata fields as specified in:
48-
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
47+
[project.optional-dependencies]
48+
dev = [
49+
"coverage",
50+
"pre-commit",
51+
"pytest",
52+
]
4953

5054
[tool.setuptools]
5155
zip-safe = false

requirements-dev.txt

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

0 commit comments

Comments
 (0)