diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f6f6fa..32291f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # v4.4.0 + rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0 hooks: - id: check-added-large-files - id: check-ast @@ -19,19 +19,19 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: bf7a16254ec96b084a6caf3d435ec18f0f245cc7 # 23.3.0 + rev: 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier - rev: 50c5478ed9e10bf360335449280cf2a67f4edb7a # v2.7.1 + rev: ffb6a759a979008c0e6dff86e39f4745a2d9eac4 # frozen: v3.1.0 hooks: - id: prettier files: \.(css|html|md|yml|yaml) args: [--prose-wrap=preserve] - repo: https://github.com/asottile/pyupgrade - rev: aa5af9cd273894d0246e0eb9fa5ad557037481dc # v3.7.0 + rev: 32151ac97cbfd7f9dcd22e49516fb32266db45b4 # frozen: v3.16.0 hooks: - id: pyupgrade args: [--py38-plus] diff --git a/content/getting-started-example.py b/content/getting-started-example.py index 81aa650..de7fb68 100644 --- a/content/getting-started-example.py +++ b/content/getting-started-example.py @@ -3,6 +3,7 @@ Compute the maximum of a Bessel function and plot it. """ + import argparse import numpy as np