Skip to content

Commit

Permalink
Move requirements-test.txt into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Mar 18, 2024
1 parent 404f67e commit 3f5b1a9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Expand Up @@ -9,7 +9,7 @@ steps:
- apt-get update && apt-get install -y curl git
- curl -L "https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-$(dpkg --print-architecture)" > "${HOME}/bin/cc-test-reporter"
- chmod +x "${HOME}/bin/cc-test-reporter"
- pip install -r requirements-test.txt
- pip install -e .[test]
- ruff check .
- mypy . --strict --exclude build
- cc-test-reporter before-build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -59,7 +59,7 @@ Development
-----------

```bash
pip install -r requirements-test.txt
pip install -e .[test]
ruff check .
mypy . --strict
coverage run -m unittest
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Expand Up @@ -25,6 +25,16 @@ classifiers = [
dependencies = []
dynamic = ["version", "readme"]

[project.optional-dependencies]
test = [
# Testing
"coverage==7.4.0", # Test coverage
"ruff==0.1.14", # Python linting

# Type checking
"mypy==1.8.0", # Static typing
]

[project.urls]
"Homepage" = "https://github.com/albertyw/syspath"

Expand Down
6 changes: 0 additions & 6 deletions requirements-test.txt

This file was deleted.

0 comments on commit 3f5b1a9

Please sign in to comment.