Skip to content

Commit

Permalink
bump hooks, reorganize extra-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Nov 23, 2024
1 parent baf68d7 commit a8a6459
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ jobs:
with:
name: docs-artifact
path: docs/_build/html
include-hidden-files: true

- name: Upload coverage report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -13,14 +13,14 @@ repos:
- id: check-case-conflict
- id: check-docstring-first
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.8.0
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format

- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
rev: v0.24.2
hooks:
- id: toml-sort-fix
files: pyproject.toml
10 changes: 5 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ sphinx:
configuration: docs/conf.py

python:
install:
- method: pip
path: .
extra_requirements:
- dev
install:
- method: pip
path: .
extra_requirements:
- docs
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
See: https://www.sphinx-doc.org/en/master/usage/configuration.html
"""

import os
import sys
from datetime import date
Expand Down
1 change: 1 addition & 0 deletions docs/sphinxext/gh_substitutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
https://doughellmann.com/blog/2010/05/09/defining-custom-roles-in-sphinx/
"""

from docutils.nodes import reference
from docutils.parsers.rst.roles import set_classes

Expand Down
18 changes: 13 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,26 @@ readme = "README.rst"
requires-python = ">=3.9"

[project.optional-dependencies]
dev = [
"check-manifest",
dev = ["ipykernel", "ipython", "pybv[test,docs]"]
# Dependencies for developer installations
docs = [
"intersphinx_registry",
"mne",
"matplotlib",
"numpydoc",
"sphinx",
"sphinx-copybutton",
]
test = [
"build",
"check-manifest",
"matplotlib",
"mne",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-sugar",
"ruff",
"sphinx",
"sphinx-copybutton",
"twine",
]

[project.urls]
Expand Down

0 comments on commit a8a6459

Please sign in to comment.