Skip to content

Commit

Permalink
Ran black and isort and ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <[email protected]>
  • Loading branch information
adam2392 committed Dec 6, 2023
1 parent 333e24b commit c5dc859
Show file tree
Hide file tree
Showing 24 changed files with 1,125 additions and 677 deletions.
2 changes: 2 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ raison
fro
nd
manuel
ba
master
2 changes: 1 addition & 1 deletion .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
- name: Run toml-sort
run: toml-sort pyproject.toml --check
- name: Run yamllint
run: yamllint . -c .yamllint.yaml --strict
run: yamllint . -c .yamllint.yml --strict
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ repos:
- id: black
args: [--quiet]

# Ruff mne
# Ruff mne_connectivity
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
name: ruff mne
name: ruff mne_connectivity
args: ["--fix"]
files: ^mne/
files: ^mne_connectivity/

# Ruff tutorials and examples
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand All @@ -32,7 +32,7 @@ repos:
- id: codespell
additional_dependencies:
- tomli
files: ^mne/|^doc/|^examples/|^tutorials/
files: ^mne_connectivity/|^doc/|^examples/|^tutorials/
types_or: [python, bib, rst, inc]

# yamllint
Expand Down
File renamed without changes.
10 changes: 6 additions & 4 deletions doc/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{{ fullname }}
{{ underline }}
{{ fullname | escape | underline }}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}
:special-members: __contains__,__getitem__,__iter__,__len__,__add__,__sub__,__mul__,__div__,__neg__,__hash__
:special-members: __contains__,__getitem__,__iter__,__len__,__add__,__sub__,__mul__,__div__,__neg__
:members:

.. include:: {{module}}.{{objname}}.examples
.. _sphx_glr_backreferences_{{ fullname }}:

.. minigallery:: {{ fullname }}
:add-heading:
10 changes: 4 additions & 6 deletions doc/_templates/autosummary/function.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{{ fullname }}
{{ underline }}
{{ fullname | escape | underline }}

.. currentmodule:: {{ module }}

.. autofunction:: {{ objname }}

.. include:: {{module}}.{{objname}}.examples
.. _sphx_glr_backreferences_{{ fullname }}:

.. raw:: html

<div style='clear:both'></div>
.. minigallery:: {{ fullname }}
:add-heading:
Loading

0 comments on commit c5dc859

Please sign in to comment.