Skip to content

Commit 16f0f9f

Browse files
authored
Move developer dependencies to optional (#7)
* Moved optional dependencies * Removed logo.py * Run pytest with coverage * Extended readme
1 parent 0f323db commit 16f0f9f

File tree

4 files changed

+16
-42
lines changed

4 files changed

+16
-42
lines changed

.github/workflows/ci_pipeline.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ jobs:
2828
- name: Install python dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install .
31+
pip install ".[test]"
3232
3333
- name: Inspect maxplotlib arguments
3434
run: |
3535
maxplotlib -h
3636
3737
- name: Run tests
3838
run: |
39-
pytest .
39+
coverage run -m pytest .
40+
coverage report --sort=cover

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Install the code and requirements with pip
1616
pip install -e .
1717
```
1818

19+
Additional dependencies for developers can be installed with
20+
21+
```
22+
pip install -e ".[dev]"
23+
```
24+
1925
Run the code with
2026

2127
```

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@ dependencies = [
1818
"matplotlib",
1919
"pint",
2020
"plotly",
21+
]
22+
[project.optional-dependencies]
23+
test = [
2124
"pytest",
25+
"coverage",
26+
]
27+
dev = [
28+
"maxplotlib[test]",
2229
"ruff",
2330
"black",
2431
"isort",
2532
"jupyterlab",
26-
"maxtikzlib @ git+https://github.com/max-models/maxtikzlib.git@main",
2733
]
28-
29-
[project.optional-dependencies]
30-
dev = ["check-manifest"]
31-
test = ["coverage"]
3234
[project.urls]
3335
"Source" = "https://github.com/max-models/maxplotlib"
3436

src/maxplotlib/logo/logo.py

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

0 commit comments

Comments
 (0)