From 58acf1da70c6b80bc4d03ae9b84462fd529bcb82 Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Wed, 5 Jun 2024 18:59:52 +0200 Subject: [PATCH] Update pre-commit configuration for Python 3.10 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a411f77be..46d59683c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: rev: v3.15.1 hooks: - id: pyupgrade - args: [--py39-plus] + args: [--py310-plus] files: '^brian2/.*\.pyi?$' - repo: https://github.com/pycqa/flake8 rev: 7.0.0 diff --git a/pyproject.toml b/pyproject.toml index 56f1029b7..1873012ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,13 +70,13 @@ requires = [ build-backend = "setuptools.build_meta" [tool.black] -target-version = ['py39'] +target-version = ['py310'] include = '^/brian2/.*\.pyi?$' [tool.isort] atomic = true profile = "black" -py_version = "39" +py_version = "310" skip_gitignore = true # NOTE: isort has no "include" option, only "skip". skip_glob = ["dev/*", "docs_sphinx/*", "examples/*", "tutorials/*"]