diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 000000000..0b90a4e5f --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,17 @@ +name: Bot auto-merge +on: pull_request # yamllint disable-line rule:truthy + +permissions: + contents: write + pull-requests: write + +jobs: + autobot: + runs-on: ubuntu-latest + if: (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]') && github.repository == 'mne-tools/mne-connectivity' + steps: + - name: Enable auto-merge for bot PRs + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/linux_conda.yml b/.github/workflows/linux_conda.yml index e5f3f8a23..7601e821f 100644 --- a/.github/workflows/linux_conda.yml +++ b/.github/workflows/linux_conda.yml @@ -52,4 +52,4 @@ jobs: name: 'Show infos' - name: Run pytest run: python -m pytest . --cov=mne_connectivity --cov-report=xml --cov-config=pyproject.toml --verbose --ignore mne-python - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 650490d56..18c7a6ba8 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -72,4 +72,4 @@ jobs: - run: pip install -e . - run: mne sys_info - run: python -m pytest . --cov=mne_connectivity --cov-report=xml --cov-config=pyproject.toml --verbose --ignore mne-python - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dfe5925a5..ed1d0ea3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # Ruff mne_connectivity - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.8.1 hooks: - id: ruff name: ruff lint mne_connectivity @@ -10,7 +10,7 @@ repos: # Ruff tutorials and examples - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.8.1 hooks: - id: ruff name: ruff lint tutorials and examples @@ -47,7 +47,7 @@ repos: # toml-sort - repo: https://github.com/pappasam/toml-sort.git - rev: v0.23.1 + rev: v0.24.2 hooks: - id: toml-sort-fix diff --git a/doc/_static/style.css b/doc/_static/style.css index bca7a3734..0ab5d923e 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -46,3 +46,15 @@ div.sphx-glr-download a { div.sphx-glr-download a code { color: var(--sg-download-a-color); } +/* ************************************************* truncate version string */ +div.navbar-item:first-child { + overflow-x: hidden; +} +a.navbar-brand.logo { + flex-shrink: 1; + overflow-x: hidden; +} +p.logo__title { + overflow-x: hidden; + text-overflow: ellipsis; +} diff --git a/mne_connectivity/__init__.py b/mne_connectivity/__init__.py index ce18a2849..480194e8f 100644 --- a/mne_connectivity/__init__.py +++ b/mne_connectivity/__init__.py @@ -9,7 +9,7 @@ try: from importlib.metadata import version - __version__ = version("mne") + __version__ = version("mne_connectivity") except Exception: __version__ = "0.0.0"