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
21 changes: 21 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: precommit

defaults:
run:
shell: bash

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- run: |
pip install pre-commit
pre-commit run --all-files --show-diff-on-failure
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
repos:
- repo: https://github.com/srstevenson/nb-clean
rev: 4.0.1
hooks:
- id: nb-clean
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.1
hooks:
- id: nbqa-black
additional_dependencies: [black==26.3.1]
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==3.21.2]
- id: nbqa-pylint
additional_dependencies: [pylint==4.0.5]
args: ["--disable=missing-module-docstring,import-error,wrong-import-position,wrong-import-order,ungrouped-imports"]
50 changes: 13 additions & 37 deletions slides.ipynb

Large diffs are not rendered by default.

Loading