From 4c5fd38cc2e847ce1ce80ed56cdae87b03ac425d Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 9 Aug 2024 15:47:27 +0200 Subject: [PATCH] Update pre-commit hooks --- .pre-commit-config.yaml | 10 +++++----- python/turbodbc/api_constants.py | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2ecfa9e63..0d0a1cd1e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,25 +1,25 @@ repos: - repo: https://github.com/Quantco/pre-commit-mirrors-black - rev: 23.3.0 + rev: 24.4.2 hooks: - id: black-conda - repo: https://github.com/Quantco/pre-commit-mirrors-flake8 - rev: 6.0.0 + rev: 7.1.0 hooks: - id: flake8-conda - repo: https://github.com/Quantco/pre-commit-mirrors-isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort-conda additional_dependencies: [toml] args: ["--profile", "black"] - repo: https://github.com/Quantco/pre-commit-mirrors-mypy - rev: "1.2.0" + rev: "1.10.1" hooks: - id: mypy-conda additional_dependencies: [-c, conda-forge, types-setuptools] - repo: https://github.com/Quantco/pre-commit-mirrors-pyupgrade - rev: 3.4.0 + rev: 3.15.2 hooks: - id: pyupgrade-conda args: diff --git a/python/turbodbc/api_constants.py b/python/turbodbc/api_constants.py index a6957b0ca..208d0fe78 100644 --- a/python/turbodbc/api_constants.py +++ b/python/turbodbc/api_constants.py @@ -2,6 +2,7 @@ Global constants as required by PEP-249: https://www.python.org/dev/peps/pep-0249/#globals """ + apilevel = "2.0" threadsafety = 1 paramstyle = "qmark"