Repository: skuschel/postpic (language: python)

Issue:
update .gitignore



Discussion / hints:

Fix patch:
diff --git a/.gitignore b/.gitignore
index c565e682..9f245719 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,3 +76,6 @@ target/
 # if using spyder for development
 .spyderworkspace
 .spyderproject
+
+# ignored for github codespaces
+.venv
diff --git a/postpic/plotting/plotter_matplotlib.py b/postpic/plotting/plotter_matplotlib.py
index 07f67cd2..ab971ec7 100644
--- a/postpic/plotting/plotter_matplotlib.py
+++ b/postpic/plotting/plotter_matplotlib.py
@@ -39,6 +39,9 @@ class MatplotlibPlotter(object):
     '''
 
     import matplotlib.ticker
+    # workaroung needed for ScalarFormatter()
+    # see https://github.com/matplotlib/matplotlib/issues/22305
+    import matplotlib.font_manager
     axesformatterx = matplotlib.ticker.ScalarFormatter()
     axesformatterx.set_powerlimits((-2, 3))
     axesformattery = matplotlib.ticker.ScalarFormatter()


Test patch:
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index dccf1443..1b40fa0d 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -7,7 +7,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [3.5, 3.6, 3.7, 3.8]
+        python-version: [3.6, 3.7, 3.8, 3.9]
 
     steps:
     - uses: actions/checkout@v2