Skip to content

Commit

Permalink
Merge pull request #35 from root-11/matplotlib-ectomy
Browse files Browse the repository at this point in the history
Matplotlib ectomy
  • Loading branch information
root-11 authored Oct 14, 2023
2 parents ddcafe7 + f5480fa commit 016557b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install coverage
python -m pip install -r requirements.txt
python -m pip install -r test-requirements.txt
coverage run --source='.' --parallel -m pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install -r requirements.txt
python -m pip install -r test-requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
2 changes: 2 additions & 0 deletions graph/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
visuals_enabled = True
except ImportError:
visuals_enabled = False
import warnings
warnings.warn("matplotlib is not installed, visuals are disabled. Please install matplotlib>=3.1.0")


def visualise(func):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
matplotlib >= 3.1
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
matplotlib >= 3.1

0 comments on commit 016557b

Please sign in to comment.