Skip to content

Commit

Permalink
🚨 Update linters configuration to target Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
lig committed Sep 4, 2023
1 parent f63e9a5 commit a7e768b
Show file tree
Hide file tree
Showing 3 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 @@ -19,6 +19,6 @@ repos:
language: system
- id: pyupgrade
name: Pyupgrade
entry: pyupgrade --py310-plus
entry: pyupgrade --py311-plus
types: [python]
language: system
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install:

.PHONY: format
format:
pyupgrade --py310-plus --exit-zero-even-if-changed `find $(paths) -name "*.py" -type f`
pyupgrade --py311-plus --exit-zero-even-if-changed `find $(paths) -name "*.py" -type f`
isort $(paths)
black $(paths)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exclude_lines = [
[tool.black]
color = true
line-length = 120
target-version = ['py310']
target-version = ['py311']
skip-string-normalization = true
skip-magic-trailing-comma = true

Expand Down

0 comments on commit a7e768b

Please sign in to comment.