Skip to content

add python 3.9 to basic test matrix #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- name: Black Code Formatter
uses: lgeiger/black-action@v1.0.1
with:
args: ". --check"
args: ". --check --exclude=docs/*"
2 changes: 1 addition & 1 deletion .github/workflows/python-runtests-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions probscale/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def _make_boot_index(elements, niter):
""" Generate an array of bootstrap sample sets
"""Generate an array of bootstrap sample sets

Parameters
----------
Expand Down Expand Up @@ -102,7 +102,7 @@ def _bs_fit(x, y, xhat, fitlogs=None, niter=10000, alpha=0.05):


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

Parameters
Expand Down
2 changes: 1 addition & 1 deletion probscale/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class _FormatterMixin(Formatter):
""" A mpl-axes formatter mixin class """
"""A mpl-axes formatter mixin class"""

@classmethod
def _sig_figs(cls, x, n, expthresh=5, forceint=False):
Expand Down
12 changes: 6 additions & 6 deletions probscale/probscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class _minimal_norm(object):

@classmethod
def _approx_erf(cls, x):
""" Approximate solution to the error function
"""Approximate solution to the error function

http://en.wikipedia.org/wiki/Error_function

Expand All @@ -36,7 +36,7 @@ def _approx_erf(cls, x):

@classmethod
def _approx_inv_erf(cls, z):
""" Approximate solution to the inverse error function
"""Approximate solution to the inverse error function

http://en.wikipedia.org/wiki/Error_function

Expand All @@ -50,7 +50,7 @@ def _approx_inv_erf(cls, z):

@classmethod
def ppf(cls, q):
""" Percent point function (inverse of cdf)
"""Percent point function (inverse of cdf)

Wikipedia: https://goo.gl/Rtxjme

Expand All @@ -59,7 +59,7 @@ def ppf(cls, q):

@classmethod
def cdf(cls, x):
""" Cumulative density function
"""Cumulative density function

Wikipedia: https://goo.gl/ciUNLx

Expand All @@ -68,7 +68,7 @@ def cdf(cls, x):


class ProbScale(ScaleBase):
""" A probability scale for matplotlib Axes.
"""A probability scale for matplotlib Axes.

Parameters
----------
Expand Down Expand Up @@ -105,7 +105,7 @@ def __init__(self, axis, **kwargs):

@classmethod
def _get_probs(cls, nobs, as_pct):
""" Returns the x-axis labels for a probability plot based on
"""Returns the x-axis labels for a probability plot based on
the number of observations (`nobs`).
"""
if as_pct:
Expand Down
2 changes: 1 addition & 1 deletion probscale/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def seed(func):
""" Decorator to seed the RNG before any function. """
"""Decorator to seed the RNG before any function."""

@wraps(func)
def wrapper(*args, **kwargs):
Expand Down
8 changes: 6 additions & 2 deletions probscale/tests/test_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,9 @@ def test_probplot_pp(plot_data):


@pytest.mark.mpl_image_compare(
baseline_dir=BASELINE_DIR, tolerance=TIGHT_TOLERANCE, remove_text=True,
baseline_dir=BASELINE_DIR,
tolerance=TIGHT_TOLERANCE,
remove_text=True,
)
def test_probplot_prob_bestfit(plot_data):
fig, ax = plt.subplots()
Expand Down Expand Up @@ -983,7 +985,9 @@ def test_probplot_beta_dist_best_fit_y(plot_data):


@pytest.mark.mpl_image_compare(
baseline_dir=BASELINE_DIR, tolerance=TIGHT_TOLERANCE, remove_text=True,
baseline_dir=BASELINE_DIR,
tolerance=TIGHT_TOLERANCE,
remove_text=True,
)
@pytest.mark.skipif(stats is None, reason="no scipy")
def test_probplot_beta_dist_best_fit_x(plot_data):
Expand Down
2 changes: 1 addition & 1 deletion probscale/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


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

"""
Expand Down
2 changes: 1 addition & 1 deletion probscale/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def plot_pos(data, postype=None, alpha=None, beta=None, exceedance=False):


def _set_prob_limits(ax, probax, N):
""" Sets the limits of a probability axis based the number of point.
"""Sets the limits of a probability axis based the number of point.

Parameters
----------
Expand Down