Files
sqlalchemy/.pre-commit-config.yaml
Mike Bayer b9e3cacb0e add TString support
Added support for Python 3.14+ template strings (t-strings) via the new
:func:`_sql.tstring` construct, as defined in :pep:`750`. This feature
allows for ergonomic SQL statement construction by automatically
interpolating Python values and SQLAlchemy expressions within template
strings.

Part of the challenge here is the syntax only works on py314, so we have
to exclude the test file at many levels when py314 is not used.  not
sure yet how i want to adjust pep8 tests and rules for this.

Fixes: #12548
Change-Id: Ia060d1387ff452fe4f5d924f683529a22a8e1f72
2025-11-30 14:38:13 -05:00

45 lines
1.1 KiB
YAML

default_language_version:
python: python3.14
repos:
- repo: https://github.com/python/black
rev: 25.11.0
hooks:
- id: black
- repo: https://github.com/sqlalchemyorg/zimports
rev: v0.7.0
hooks:
- id: zimports
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
entry: python -m flake8p
additional_dependencies:
- flake8-pyproject
- flake8-import-order>=0.19.2
- flake8-import-single==0.1.5
- flake8-builtins
- flake8-future-annotations>=0.0.5
- flake8-docstrings>=1.6.0
- flake8-unused-arguments
- flake8-rst-docstrings
# flake8-rst-docstrings dependency, leaving it here
# in case it requires a version pin
- pydocstyle
- pygments
- repo: local
hooks:
- id: black-docs
name: Format docs code block with black
entry: python tools/format_docs_code.py -f
language: python
types: [rst]
exclude: README.*
additional_dependencies:
- black==25.9.0