Skip to content

Commit cfe314e

Browse files
Copilotcclauss
andauthored
Configure mypy to target Python 3.14 and update to v1.20.0
Agent-Logs-Url: https://github.com/TheAlgorithms/Python/sessions/332481be-4c5f-4412-abf8-6ef4a3913828 Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
1 parent 8ba69aa commit cfe314e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ repos:
5050
- id: validate-pyproject
5151

5252
- repo: https://github.com/pre-commit/mirrors-mypy
53-
rev: v1.19.1
53+
rev: v1.20.0
5454
hooks:
5555
- id: mypy
5656
args:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ lint.pylint.max-branches = 20 # default: 12
158158
lint.pylint.max-returns = 8 # default: 6
159159
lint.pylint.max-statements = 88 # default: 50
160160

161+
[tool.mypy]
162+
python_version = "3.14"
163+
161164
[tool.codespell]
162165
ignore-words-list = "3rt,abd,aer,ans,bitap,crate,damon,fo,followings,hist,iff,kwanza,manuel,mater,secant,som,sur,tim,toi,zar"
163166
skip = """\

0 commit comments

Comments
 (0)