Skip to content

Commit e7bc619

Browse files
authored
Merge pull request #79 from phobson/run-py39-in-ci
add python 3.9 to basic test matrix
2 parents cb11c33 + 3c4c802 commit e7bc619

File tree

9 files changed

+20
-16
lines changed

9 files changed

+20
-16
lines changed

.github/workflows/black.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
- name: Black Code Formatter
1111
uses: lgeiger/[email protected]
1212
with:
13-
args: ". --check"
13+
args: ". --check --exclude=docs/*"

.github/workflows/python-runtests-basic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.5, 3.6, 3.7, 3.8]
18+
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
1919

2020
steps:
2121
- uses: actions/checkout@v2

probscale/algo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def _make_boot_index(elements, niter):
5-
""" Generate an array of bootstrap sample sets
5+
"""Generate an array of bootstrap sample sets
66
77
Parameters
88
----------
@@ -102,7 +102,7 @@ def _bs_fit(x, y, xhat, fitlogs=None, niter=10000, alpha=0.05):
102102

103103

104104
def _estimate_from_fit(xhat, slope, intercept, xlog=False, ylog=False):
105-
""" Estimate the dependent variables of a linear fit given x-data
105+
"""Estimate the dependent variables of a linear fit given x-data
106106
and linear parameters.
107107
108108
Parameters

probscale/formatters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
class _FormatterMixin(Formatter):
6-
""" A mpl-axes formatter mixin class """
6+
"""A mpl-axes formatter mixin class"""
77

88
@classmethod
99
def _sig_figs(cls, x, n, expthresh=5, forceint=False):

probscale/probscale.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class _minimal_norm(object):
2323

2424
@classmethod
2525
def _approx_erf(cls, x):
26-
""" Approximate solution to the error function
26+
"""Approximate solution to the error function
2727
2828
http://en.wikipedia.org/wiki/Error_function
2929
@@ -36,7 +36,7 @@ def _approx_erf(cls, x):
3636

3737
@classmethod
3838
def _approx_inv_erf(cls, z):
39-
""" Approximate solution to the inverse error function
39+
"""Approximate solution to the inverse error function
4040
4141
http://en.wikipedia.org/wiki/Error_function
4242
@@ -50,7 +50,7 @@ def _approx_inv_erf(cls, z):
5050

5151
@classmethod
5252
def ppf(cls, q):
53-
""" Percent point function (inverse of cdf)
53+
"""Percent point function (inverse of cdf)
5454
5555
Wikipedia: https://goo.gl/Rtxjme
5656
@@ -59,7 +59,7 @@ def ppf(cls, q):
5959

6060
@classmethod
6161
def cdf(cls, x):
62-
""" Cumulative density function
62+
"""Cumulative density function
6363
6464
Wikipedia: https://goo.gl/ciUNLx
6565
@@ -68,7 +68,7 @@ def cdf(cls, x):
6868

6969

7070
class ProbScale(ScaleBase):
71-
""" A probability scale for matplotlib Axes.
71+
"""A probability scale for matplotlib Axes.
7272
7373
Parameters
7474
----------
@@ -105,7 +105,7 @@ def __init__(self, axis, **kwargs):
105105

106106
@classmethod
107107
def _get_probs(cls, nobs, as_pct):
108-
""" Returns the x-axis labels for a probability plot based on
108+
"""Returns the x-axis labels for a probability plot based on
109109
the number of observations (`nobs`).
110110
"""
111111
if as_pct:

probscale/tests/helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def seed(func):
7-
""" Decorator to seed the RNG before any function. """
7+
"""Decorator to seed the RNG before any function."""
88

99
@wraps(func)
1010
def wrapper(*args, **kwargs):

probscale/tests/test_viz.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,9 @@ def test_probplot_pp(plot_data):
787787

788788

789789
@pytest.mark.mpl_image_compare(
790-
baseline_dir=BASELINE_DIR, tolerance=TIGHT_TOLERANCE, remove_text=True,
790+
baseline_dir=BASELINE_DIR,
791+
tolerance=TIGHT_TOLERANCE,
792+
remove_text=True,
791793
)
792794
def test_probplot_prob_bestfit(plot_data):
793795
fig, ax = plt.subplots()
@@ -983,7 +985,9 @@ def test_probplot_beta_dist_best_fit_y(plot_data):
983985

984986

985987
@pytest.mark.mpl_image_compare(
986-
baseline_dir=BASELINE_DIR, tolerance=TIGHT_TOLERANCE, remove_text=True,
988+
baseline_dir=BASELINE_DIR,
989+
tolerance=TIGHT_TOLERANCE,
990+
remove_text=True,
987991
)
988992
@pytest.mark.skipif(stats is None, reason="no scipy")
989993
def test_probplot_beta_dist_best_fit_x(plot_data):

probscale/validate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def axes_object(ax):
7-
""" Checks if a value if an Axes. If None, a new one is created.
7+
"""Checks if a value if an Axes. If None, a new one is created.
88
Both the figure and axes are returned (in that order).
99
1010
"""

probscale/viz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def plot_pos(data, postype=None, alpha=None, beta=None, exceedance=False):
402402

403403

404404
def _set_prob_limits(ax, probax, N):
405-
""" Sets the limits of a probability axis based the number of point.
405+
"""Sets the limits of a probability axis based the number of point.
406406
407407
Parameters
408408
----------

0 commit comments

Comments
 (0)