Skip to content

Commit

Permalink
black lint, actions consolidation
Browse files Browse the repository at this point in the history
  • Loading branch information
cgevans committed Aug 1, 2023
1 parent 4c07f8b commit c2f8532
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 46 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/black.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/mypy.yml

This file was deleted.

11 changes: 7 additions & 4 deletions .github/workflows/python-package.yml
@@ -1,13 +1,14 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Tests
name: Linting and Tests

on:
[push, pull_request]

jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -52,6 +53,7 @@ jobs:
fail_ci_if_error: false

mypy:
name: Mypy checks
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -63,10 +65,10 @@ jobs:
extra-args: "--no-warn-unused-ignores"
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools_scm[toml] wheel setuptools
Expand All @@ -76,9 +78,10 @@ jobs:
mypy --cache-dir .mypy_cache --install-types ${{ matrix.extra-args }} --non-interactive --strict --allow-untyped-calls --ignore-missing-imports --non-interactive ./src
black:
name: Black checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --verbose --diff"
Expand Down
4 changes: 3 additions & 1 deletion src/scikits/bootstrap/bootstrap.py
Expand Up @@ -454,7 +454,9 @@ def ci(
if nvals.ndim == 1:
out = np.abs(statfunction(*tdata) - stat[nvals])[np.newaxis].T
else:
out = np.abs(statfunction(*tdata) - stat[(nvals, np.indices(nvals.shape)[1:])]).T.squeeze()
out = np.abs(
statfunction(*tdata) - stat[(nvals, np.indices(nvals.shape)[1:])]
).T.squeeze()
else:
raise ValueError("Output option {0} is not supported.".format(output))

Expand Down

0 comments on commit c2f8532

Please sign in to comment.