Skip to content

Commit

Permalink
Update pre-commit configuration for Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Jun 5, 2024
1 parent 77e11e5 commit 58acf1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]

0 comments on commit 58acf1d

Please sign in to comment.