diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 51114832..af804c98 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,12 +16,12 @@ jobs: name: Build docs and check links runs-on: ubuntu-latest steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - uses: pandoc/actions/setup@86321b6dd4675f5014c611e05088e10d4939e09e # v1.1.1 - uses: ts-graphviz/setup-graphviz@b1de5da23ed0a6d14e0aeee8ed52fdd87af2363c # v2.0.2 - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: # Keep in sync with .readthedocs.yaml python-version-file: .python-version diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 11eca36d..dff030fd 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -24,11 +24,11 @@ jobs: github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 - - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 + - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 7eaacc55..4412a881 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -21,11 +21,11 @@ jobs: security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files. steps: - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - name: Run zizmor - uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2 + uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7 with: persona: pedantic diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5235d435..0c5bc52b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 + rev: v6.0.0 # v6.0.0 hooks: - id: check-added-large-files args: ['--maxkb=1024'] @@ -20,38 +20,38 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: 6e10264313f53d6247a8b1b984f5b5ccf50ba539 # 2.21.0 + rev: v2.26.0 # v2.25.2 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: 4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7 # v0.25 + rev: v0.25 # v0.25 hooks: - id: validate-pyproject - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: c883505f64b59c3c5c9375191e4ad9f98e727ccd # v1.0.2 + rev: v1.0.2 # v1.0.2 hooks: - id: sphinx-lint types: [rst] - repo: https://github.com/pycqa/isort - rev: a333737ed43df02b18e6c95477ea1b285b3de15a # 8.0.1 + rev: 9.0.0b1 # 9.0.0b1 hooks: - id: isort additional_dependencies: ["toml"] entry: isort --profile=black name: isort (python) - repo: https://github.com/psf/black-pre-commit-mirror - rev: fa505ab9c3e0fedafe1709fd7ac2b5f8996c670d # 26.3.1 + rev: 26.5.1 # 26.5.1 hooks: - id: black - repo: https://github.com/adamchainz/blacken-docs - rev: fda77690955e9b63c6687d8806bafd56a526e45f # 1.20.0 + rev: 1.20.0 # 1.20.0 hooks: - id: blacken-docs args: [--line-length=79] additional_dependencies: - black - repo: https://github.com/codespell-project/codespell - rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # v2.4.2 + rev: v2.4.3 # v2.4.2 hooks: - id: codespell - repo: local diff --git a/docs/dashboards/voila/templating.rst b/docs/dashboards/voila/templating.rst index f3e08d69..04567a29 100644 --- a/docs/dashboards/voila/templating.rst +++ b/docs/dashboards/voila/templating.rst @@ -371,7 +371,6 @@ app: from voila.app import Voila from voila.config import VoilaConfiguration - config = VoilaConfiguration() config.prelaunch_hook = parameterize_with_papermill config.page_config_hook = page_config_hook diff --git a/pyproject.toml b/pyproject.toml index bc4ac767..4353de8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,10 @@ [project] name = "jupyter-tutorial" version = "24.1.0" -description = "Training materials for setting up and using a research infrastructure based on Jupyter notebooks: https://cusy.io/en/seminars" +description = """\ + Training materials for setting up and using a research infrastructure based on Jupyter notebooks: \ + https://cusy.io/en/seminars\ + """ readme = "README.rst" license = "BSD-3-Clause" license-files = [ "LICENSE" ] @@ -18,10 +21,9 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", ] -dependencies = [ ] - +dependencies = [] urls."Bug Tracker" = "https://github.com/veit/jupyter-tutorial/issues" -urls."Homepage" = "https://github.com/veit/jupyter-tutorial/" +urls.Homepage = "https://github.com/veit/jupyter-tutorial/" [dependency-groups] dev = [ @@ -47,26 +49,23 @@ docs = [ ] [tool.setuptools] -packages = [ ] +packages = [] [tool.black] line-length = 79 [tool.isort] atomic = true -force_grid_wrap = 0 +multi_line_output = 3 +use_parentheses = true include_trailing_comma = true +force_grid_wrap = 0 lines_after_imports = 2 lines_between_types = 1 -multi_line_output = 3 -not_skip = "__init__.py" -use_parentheses = true - -known_first_party = "jupyter-tutorial-de" known_third_party = [ - "Cython", "accounts_pb2", "accounts_pb2_grpc", + "Cython", "dataprep", "google", "grpc", @@ -78,6 +77,7 @@ known_third_party = [ "requests", "setuptools", ] +known_first_party = "jupyter-tutorial" [tool.codespell] skip = "*.html, *.ipynb, docs/hub/jupyterhub_config.py"