Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/docs_test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -32,7 +32,7 @@ jobs:

- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "3.9"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "3.9"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.config.python-version }}"

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.config.python-version }}"

Expand Down Expand Up @@ -83,10 +83,10 @@ jobs:
runs-on: "ubuntu-22.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Setup Python 🐍
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: 3.8

Expand Down Expand Up @@ -136,11 +136,11 @@ jobs:
runs-on: "ubuntu-22.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"
if: startsWith(github.ref, 'refs/tags/')

- name: Setup Python 🐍
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
if: startsWith(github.ref, 'refs/tags/')
with:
python-version: 3.8
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v4"
uses: "actions/checkout@v6"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v4
id: changes
with:
list-files: "json"
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v5"
uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.config.python-version }}"

Expand Down
14 changes: 11 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exclude: ^$

ci:
autoupdate_schedule: quarterly
skip: [taplo-lint]

repos:
- repo: https://github.com/repo-helper/pyproject-parser
Expand All @@ -21,7 +22,6 @@ repos:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
Expand All @@ -31,8 +31,14 @@ repos:
- id: mixed-line-ending
- id: end-of-file-fixer

- repo: https://github.com/domdfcoding/taplo-pre-commit
rev: v0.10.0
hooks:
- id: taplo-lint
args: []

- repo: https://github.com/domdfcoding/pre-commit-hooks
rev: v0.7.0
rev: v0.8.1
hooks:
- id: requirements-txt-sorter
args:
Expand Down Expand Up @@ -78,9 +84,11 @@ repos:
- id: forbid-crlf

- repo: https://github.com/python-formate/snippet-fmt
rev: v0.1.5
rev: v0.3.1
hooks:
- id: snippet-fmt
additional_dependencies:
- formate-trailing-commas>=0.1.1

- repo: https://github.com/python-formate/formate
rev: v1.2.1
Expand Down
2 changes: 1 addition & 1 deletion doc-source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def setup(app):

app.connect("config-inited", lambda app, config: better_header_layout(config))
app.connect("build-finished", copy_asset_files)
app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js")
app.add_js_file("https://cdn.jsdelivr.net/npm/twemoji@14.0.2/dist/twemoji.min.js")
app.add_js_file("twemoji.js")
app.add_css_file("twemoji.css")
app.add_transform(sphinxemoji.EmojiSubstitutions)
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ bare-ignore:

lint: unused-imports incomplete-defs bare-ignore
tox -n qa

uncomm:
git status -uall --ignored

# Custom commands can be added below this comment
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ extensions = [
"html_section",
"sphinx_click",
]
sphinxemoji_source = "https://cdn.jsdelivr.net/npm/twemoji@14.0.2/dist/twemoji.min.js"
gitstamp_fmt = "%d %b %Y"
templates_path = [ "_templates",]
html_static_path = [ "_static",]
Expand Down
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# * envlists
# * testenv
# * testenv:.package
# * testenv:py315-dev
# * testenv:py315
# * testenv:py314-dev
# * testenv:py314
# * testenv:py313-dev
# * testenv:py313
# * testenv:py312-dev
Expand Down Expand Up @@ -41,6 +45,7 @@ setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
SETUPTOOLS_USE_DISTUTILS=stdlib
download = True
deps = -r{toxinidir}/tests/requirements.txt
commands =
python --version
Expand Down Expand Up @@ -133,7 +138,7 @@ skip_install = True
ignore_errors = True
changedir = {toxinidir}
deps = pyupgrade-directories
commands = pyup_dirs notebook2script tests --py36-plus --recursive
commands = pyup_dirs notebook2script tests --py37-plus --recursive

[testenv:coverage]
basepython = python3.9
Expand Down
Loading