diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 56794f9..abb783d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,8 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install . - pip install -r requirements-dev.txt + pip install .[dev] - name: Run tests and collect coverage run: | diff --git a/.gitpod.yml b/.gitpod.yml index 46f17f7..1401a11 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -7,5 +7,4 @@ tasks: - init: | python -m pip install --upgrade pip - pip install . - pip install -r requirements-dev.txt + pip install .[dev] diff --git a/pyproject.toml b/pyproject.toml index ebb4401..5aa0418 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,8 +44,12 @@ clang-tidy-hook = "cpp_linter_hooks.clang_tidy:main" source = "https://github.com/cpp-linter/cpp-linter-hooks" tracker = "https://github.com/cpp-linter/cpp-linter-hooks/issues" -# ... other project metadata fields as specified in: -# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/ +[project.optional-dependencies] +dev = [ + "coverage", + "pre-commit", + "pytest", +] [tool.setuptools] zip-safe = false diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index 4dbfffa..0000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,3 +0,0 @@ -coverage -pre-commit -pytest