Skip to content
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

Use assert_allclose instead of np.allclose and np.isclose(...).all() #115

Merged
merged 16 commits into from
Aug 17, 2023
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
Empty file added .codespellignore
Empty file.
24 changes: 0 additions & 24 deletions .flake8

This file was deleted.

10 changes: 3 additions & 7 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
name: style
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency
# https://docs.github.com/en/developers/webhooks-and-events/events/github-event-types#pullrequestevent
# workflow name, PR number (empty on push), push ref (empty on PR)
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
Expand All @@ -27,10 +24,8 @@ jobs:
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
python -m pip install --progress-bar off .[style]
- name: Run flake8
uses: py-actions/flake8@v2
with:
path: "pycrostates"
- name: Run Ruff
run: ruff check pycrostates
- name: Run isort
uses: isort/isort-action@master
- name: Run black
Expand All @@ -43,6 +38,7 @@ jobs:
check_filenames: true
check_hidden: true
skip: ./.git,./build,./.github,*.bib
ignore_words_file: ./.codespellignore
- name: Run pydocstyle
run: pydocstyle .
- name: Run bibclean
Expand Down
4 changes: 4 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
"bool": ":class:`python:bool`",
"Path": "pathlib.Path",
# MNE
"ConductorModel": "mne.bem.ConductorModel",
"DigMontage": "mne.channels.DigMontage",
"Epochs": "mne.Epochs",
"Evoked": "mne.Evoked",
Expand All @@ -169,6 +170,7 @@
"EpochsSegmentation": "pycrostates.segmentation.EpochsSegmentation",
# Matplotlib
"Axes": "matplotlib.axes.Axes",
"Axes3D": "mpl_toolkits.mplot3d.axes3d.Axes3D",
"colormap": ":doc:`colormap <matplotlib:tutorials/colors/colormaps>`",
"Figure": "matplotlib.figure.Figure",
# Scipy
Expand All @@ -178,9 +180,11 @@
"instance",
"of",
"shape",
"n_ch_groups",
"n_channels",
"n_clusters",
"n_epochs",
"n_picks",
"n_samples",
}

Expand Down
Loading