From 6e8020eab174288d3513c43e64a1ed4f6b38b7d4 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Sun, 23 Apr 2023 16:29:13 -0500 Subject: [PATCH 1/3] use py3.10 in precommit config --- .pre-commit-config.yaml | 2 +- requirements_testing.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4814c23d8eb..1abc083c4e1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ default_language_version: - python: python3.11 + python: python3.10 repos: # - repo: https://github.com/psf/black diff --git a/requirements_testing.txt b/requirements_testing.txt index c8ff7b5c5fb..77668527bb9 100644 --- a/requirements_testing.txt +++ b/requirements_testing.txt @@ -7,6 +7,7 @@ ruff numpydoc codespell check-manifest +tomli twine wheel pre-commit From 35c47bac34ea11e476d47f490962b86a415ce61a Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Mon, 24 Apr 2023 11:14:04 +0200 Subject: [PATCH 2/3] Remove spec and add tomli --- .pre-commit-config.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1abc083c4e1..7ef76755eae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,3 @@ -default_language_version: - python: python3.10 - repos: # - repo: https://github.com/psf/black # rev: 23.1.0 @@ -32,5 +29,7 @@ repos: rev: v2.2.3 hooks: - id: codespell + additional_dependencies: + - tomli files: ^mne/|^doc/|^examples/|^tutorials/ types_or: [python, bib, rst, inc] From 3a080b9390d2560b8388e2d609ae8d0c32bb7594 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Mon, 24 Apr 2023 11:18:44 +0200 Subject: [PATCH 3/3] Require tomli only for Python < 3.11 --- requirements_testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_testing.txt b/requirements_testing.txt index 77668527bb9..fa6c7b86b3f 100644 --- a/requirements_testing.txt +++ b/requirements_testing.txt @@ -7,7 +7,7 @@ ruff numpydoc codespell check-manifest -tomli +tomli; python_version<'3.11' twine wheel pre-commit