Rename examples and add pre-commit (#16)

* Rename examples and add pre-commit

* Fix references to scripts, add implementations overview

* Link to colab notebook via github
This commit is contained in:
Václav Volhejn
2025-06-26 09:26:11 +02:00
committed by GitHub
parent 8bd3f59631
commit 7b5a01dfba
8 changed files with 374 additions and 66 deletions

22
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,22 @@
repos:
# Get rid of Jupyter Notebook output because we don't want to keep it in Git
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
hooks:
- id: nbstripout
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=2048"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.7
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi] # Don't run on `jupyter` files
args: [--fix]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi] # Don't run on `jupyter` files