From 09fd345de9aa11de24ed417542967be16016bb59 Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Tue, 27 Aug 2024 15:23:13 -0700 Subject: [PATCH] pre-commit: update hooks & pin using hashes --- .pre-commit-config.yaml | 8 ++++---- docs/_tutorials/advanced-autodiff.md | 2 +- docs/_tutorials/advanced-debugging.md | 2 +- docs/_tutorials/external-callbacks.md | 2 +- docs/_tutorials/gradient-checkpointing.md | 2 +- docs/_tutorials/jax-primitives.md | 2 +- docs/_tutorials/jaxpr.md | 2 +- docs/autodidax.md | 2 +- docs/autodidax.py | 2 +- docs/automatic-differentiation.md | 2 +- docs/automatic-vectorization.md | 2 +- docs/debugging.md | 2 +- docs/distributed_data_loading.md | 2 +- docs/ffi.md | 2 +- docs/jep/9407-type-promotion.md | 2 +- docs/jit-compilation.md | 2 +- docs/key-concepts.md | 2 +- docs/notebooks/Common_Gotchas_in_JAX.md | 2 +- docs/notebooks/Custom_derivative_rules_for_Python_code.md | 2 +- .../Distributed_arrays_and_automatic_parallelization.md | 2 +- docs/notebooks/How_JAX_primitives_work.md | 2 +- docs/notebooks/Neural_Network_and_Data_Loading.md | 2 +- docs/notebooks/Writing_custom_interpreters_in_Jax.md | 2 +- docs/notebooks/autodiff_cookbook.md | 2 +- docs/notebooks/autodiff_remat.md | 2 +- docs/notebooks/convolutions.md | 2 +- docs/notebooks/external_callbacks.md | 2 +- docs/notebooks/neural_network_with_tfds_data.md | 2 +- docs/notebooks/shard_map.md | 2 +- docs/notebooks/thinking_in_jax.md | 2 +- docs/notebooks/vmapped_log_probs.md | 2 +- docs/pallas/quickstart.md | 2 +- docs/pallas/tpu/distributed.md | 2 +- docs/pallas/tpu/matmul.md | 2 +- docs/pallas/tpu/pipelining.md | 2 +- docs/quickstart.md | 2 +- docs/random-numbers.md | 2 +- docs/sharded-computation.md | 2 +- docs/stateful-computations.md | 2 +- docs/working-with-pytrees.md | 2 +- 40 files changed, 43 insertions(+), 43 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79a0df6e9e38..c89aa934d95d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0 hooks: - id: check-ast - id: check-merge-conflict @@ -26,12 +26,12 @@ repos: files: \.py$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.1 + rev: 8b5112a3b2ad121439a2092f8ff548c0d80f2514 # frozen: v0.6.1 hooks: - id: ruff - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.11.0' + rev: 'd4911cfb7f1010759fde68da196036feeb25b99d' # frozen: v1.11.2 hooks: - id: mypy files: (jax/|tests/typing_test\.py) @@ -40,7 +40,7 @@ repos: args: [--config=pyproject.toml] - repo: https://github.com/mwouts/jupytext - rev: v1.16.1 + rev: 8ed836db64ad5d304f2315e6bfd9049c9142e190 # frozen: v1.16.4 hooks: - id: jupytext files: docs/ diff --git a/docs/_tutorials/advanced-autodiff.md b/docs/_tutorials/advanced-autodiff.md index 20affa8cf29f..180f65f5d492 100644 --- a/docs/_tutorials/advanced-autodiff.md +++ b/docs/_tutorials/advanced-autodiff.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/_tutorials/advanced-debugging.md b/docs/_tutorials/advanced-debugging.md index 56188e0958fa..d4462feaf829 100644 --- a/docs/_tutorials/advanced-debugging.md +++ b/docs/_tutorials/advanced-debugging.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/_tutorials/external-callbacks.md b/docs/_tutorials/external-callbacks.md index a46927e6a8b4..c404f320fca7 100644 --- a/docs/_tutorials/external-callbacks.md +++ b/docs/_tutorials/external-callbacks.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/_tutorials/gradient-checkpointing.md b/docs/_tutorials/gradient-checkpointing.md index b768514e4bb0..14a532b54dd1 100644 --- a/docs/_tutorials/gradient-checkpointing.md +++ b/docs/_tutorials/gradient-checkpointing.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/_tutorials/jax-primitives.md b/docs/_tutorials/jax-primitives.md index 51abe2916693..41ff86fd60f0 100644 --- a/docs/_tutorials/jax-primitives.md +++ b/docs/_tutorials/jax-primitives.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/_tutorials/jaxpr.md b/docs/_tutorials/jaxpr.md index 9fe990c0a8ba..974ed39c1663 100644 --- a/docs/_tutorials/jaxpr.md +++ b/docs/_tutorials/jaxpr.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/autodidax.md b/docs/autodidax.md index 0551b9905db3..471dd7c63f6d 100644 --- a/docs/autodidax.md +++ b/docs/autodidax.md @@ -6,7 +6,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/autodidax.py b/docs/autodidax.py index b09534381c69..6d295fc50301 100644 --- a/docs/autodidax.py +++ b/docs/autodidax.py @@ -20,7 +20,7 @@ # extension: .py # format_name: light # format_version: '1.5' -# jupytext_version: 1.16.1 +# jupytext_version: 1.16.4 # kernelspec: # display_name: Python 3 # name: python3 diff --git a/docs/automatic-differentiation.md b/docs/automatic-differentiation.md index cc4a19aaba64..07af05e3d973 100644 --- a/docs/automatic-differentiation.md +++ b/docs/automatic-differentiation.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/automatic-vectorization.md b/docs/automatic-vectorization.md index 7559155e2e9e..032d1c56f27a 100644 --- a/docs/automatic-vectorization.md +++ b/docs/automatic-vectorization.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/debugging.md b/docs/debugging.md index 7ee36f19f5bf..94384035ca9d 100644 --- a/docs/debugging.md +++ b/docs/debugging.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/distributed_data_loading.md b/docs/distributed_data_loading.md index be4d170eae81..14fb1bb55c35 100644 --- a/docs/distributed_data_loading.md +++ b/docs/distributed_data_loading.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/ffi.md b/docs/ffi.md index 4568b670e170..802fd4f2264e 100644 --- a/docs/ffi.md +++ b/docs/ffi.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 (ipykernel) language: python diff --git a/docs/jep/9407-type-promotion.md b/docs/jep/9407-type-promotion.md index 2d12944f16f9..cdb1f7805b7e 100644 --- a/docs/jep/9407-type-promotion.md +++ b/docs/jep/9407-type-promotion.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/jit-compilation.md b/docs/jit-compilation.md index 2d442c8411aa..bc6cb3c04cf8 100644 --- a/docs/jit-compilation.md +++ b/docs/jit-compilation.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/key-concepts.md b/docs/key-concepts.md index c6cfb176e645..b87808d14faf 100644 --- a/docs/key-concepts.md +++ b/docs/key-concepts.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/notebooks/Common_Gotchas_in_JAX.md b/docs/notebooks/Common_Gotchas_in_JAX.md index 0b21a57e36c9..3324fdb53bcd 100644 --- a/docs/notebooks/Common_Gotchas_in_JAX.md +++ b/docs/notebooks/Common_Gotchas_in_JAX.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/notebooks/Custom_derivative_rules_for_Python_code.md b/docs/notebooks/Custom_derivative_rules_for_Python_code.md index 3c60cce0cf30..6c948650fcc1 100644 --- a/docs/notebooks/Custom_derivative_rules_for_Python_code.md +++ b/docs/notebooks/Custom_derivative_rules_for_Python_code.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/notebooks/Distributed_arrays_and_automatic_parallelization.md b/docs/notebooks/Distributed_arrays_and_automatic_parallelization.md index c5f3c08ed4f9..97b07172b707 100644 --- a/docs/notebooks/Distributed_arrays_and_automatic_parallelization.md +++ b/docs/notebooks/Distributed_arrays_and_automatic_parallelization.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/notebooks/How_JAX_primitives_work.md b/docs/notebooks/How_JAX_primitives_work.md index 656cd0e59f5a..b926c22ea32f 100644 --- a/docs/notebooks/How_JAX_primitives_work.md +++ b/docs/notebooks/How_JAX_primitives_work.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/notebooks/Neural_Network_and_Data_Loading.md b/docs/notebooks/Neural_Network_and_Data_Loading.md index d234700e446c..03b8415fc91c 100644 --- a/docs/notebooks/Neural_Network_and_Data_Loading.md +++ b/docs/notebooks/Neural_Network_and_Data_Loading.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/notebooks/Writing_custom_interpreters_in_Jax.md b/docs/notebooks/Writing_custom_interpreters_in_Jax.md index 883d64c374f3..41d7a7e51dfc 100644 --- a/docs/notebooks/Writing_custom_interpreters_in_Jax.md +++ b/docs/notebooks/Writing_custom_interpreters_in_Jax.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/notebooks/autodiff_cookbook.md b/docs/notebooks/autodiff_cookbook.md index 6dcba2470ef6..6615e65352d7 100644 --- a/docs/notebooks/autodiff_cookbook.md +++ b/docs/notebooks/autodiff_cookbook.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/notebooks/autodiff_remat.md b/docs/notebooks/autodiff_remat.md index 077a8b6b17b6..a4fb27c58128 100644 --- a/docs/notebooks/autodiff_remat.md +++ b/docs/notebooks/autodiff_remat.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/notebooks/convolutions.md b/docs/notebooks/convolutions.md index 467deeec2c89..83ab2d9fd56d 100644 --- a/docs/notebooks/convolutions.md +++ b/docs/notebooks/convolutions.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/notebooks/external_callbacks.md b/docs/notebooks/external_callbacks.md index be76f9913928..910d47bd72ae 100644 --- a/docs/notebooks/external_callbacks.md +++ b/docs/notebooks/external_callbacks.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/notebooks/neural_network_with_tfds_data.md b/docs/notebooks/neural_network_with_tfds_data.md index 0c0c4bc5cb8e..480e7477b8ac 100644 --- a/docs/notebooks/neural_network_with_tfds_data.md +++ b/docs/notebooks/neural_network_with_tfds_data.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/notebooks/shard_map.md b/docs/notebooks/shard_map.md index 5b40e78dcfc3..21e4111d5bf9 100644 --- a/docs/notebooks/shard_map.md +++ b/docs/notebooks/shard_map.md @@ -7,7 +7,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/notebooks/thinking_in_jax.md b/docs/notebooks/thinking_in_jax.md index 16be7b9e9369..dd0c73ec7699 100644 --- a/docs/notebooks/thinking_in_jax.md +++ b/docs/notebooks/thinking_in_jax.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/notebooks/vmapped_log_probs.md b/docs/notebooks/vmapped_log_probs.md index f8cfc3553cc6..5989a87bc141 100644 --- a/docs/notebooks/vmapped_log_probs.md +++ b/docs/notebooks/vmapped_log_probs.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/pallas/quickstart.md b/docs/pallas/quickstart.md index 36cc14bf5c34..b8f9254f21d9 100644 --- a/docs/pallas/quickstart.md +++ b/docs/pallas/quickstart.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 (ipykernel) language: python diff --git a/docs/pallas/tpu/distributed.md b/docs/pallas/tpu/distributed.md index b7c058b117ca..9f6048295826 100644 --- a/docs/pallas/tpu/distributed.md +++ b/docs/pallas/tpu/distributed.md @@ -6,7 +6,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 (ipykernel) language: python diff --git a/docs/pallas/tpu/matmul.md b/docs/pallas/tpu/matmul.md index a00880ebaf37..aa19d7bc19d8 100644 --- a/docs/pallas/tpu/matmul.md +++ b/docs/pallas/tpu/matmul.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 (ipykernel) language: python diff --git a/docs/pallas/tpu/pipelining.md b/docs/pallas/tpu/pipelining.md index d753b404db1a..5ae053da21a4 100644 --- a/docs/pallas/tpu/pipelining.md +++ b/docs/pallas/tpu/pipelining.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/quickstart.md b/docs/quickstart.md index e071a7ce7555..e19cb33ea9c5 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/random-numbers.md b/docs/random-numbers.md index 85bb5ce01974..2ad1eadb0968 100644 --- a/docs/random-numbers.md +++ b/docs/random-numbers.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/sharded-computation.md b/docs/sharded-computation.md index 85dfcdc1733b..4f8c1b0201bc 100644 --- a/docs/sharded-computation.md +++ b/docs/sharded-computation.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 name: python3 diff --git a/docs/stateful-computations.md b/docs/stateful-computations.md index 4e4063a68467..2eeffc30b255 100644 --- a/docs/stateful-computations.md +++ b/docs/stateful-computations.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python diff --git a/docs/working-with-pytrees.md b/docs/working-with-pytrees.md index 2bd1cc08ecdf..e41179996bc4 100644 --- a/docs/working-with-pytrees.md +++ b/docs/working-with-pytrees.md @@ -5,7 +5,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.1 + jupytext_version: 1.16.4 kernelspec: display_name: Python 3 language: python