mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-07 09:20:58 -04:00
1c83435761
the big new thang is that it is doing import order checks inside of TYPE_CHECKING blocks. Introduces some new codes that we enthusiastically add to our ignore list. update to the latest and greatest zimports 0.6.2 as well Change-Id: I4e844408a8b218f9b92c43ad5e2a5c16781100be
86 lines
3.7 KiB
INI
86 lines
3.7 KiB
INI
[flake8]
|
|
show-source = false
|
|
enable-extensions = G
|
|
|
|
# E203 is due to https://github.com/PyCQA/pycodestyle/issues/373
|
|
ignore =
|
|
A003,A005
|
|
D,
|
|
E203,E305,E701,E704,E711,E712,E721,E722,E741,
|
|
I300,
|
|
N801,N802,N806,
|
|
RST304,RST303,RST299,RST399,
|
|
W503,W504,W601
|
|
extend-ignore =
|
|
# keep in extend ignore so that they can be enabled in a subset of files in the tox run
|
|
U100,U101
|
|
exclude = .venv,.git,.tox,dist,doc,*egg,build
|
|
import-order-style = google
|
|
application-import-names = sqlalchemy,test
|
|
per-file-ignores =
|
|
**/__init__.py:F401
|
|
test/*:FA100
|
|
test/typing/plain_files/*:F821,E501,FA100
|
|
lib/sqlalchemy/events.py:F401
|
|
lib/sqlalchemy/schema.py:F401
|
|
lib/sqlalchemy/types.py:F401
|
|
lib/sqlalchemy/sql/expression.py:F401
|
|
lib/sqlalchemy/util/typing.py:F401
|
|
|
|
unused-arguments-ignore-stub-functions=true
|
|
unused-arguments-ignore-dunder=true
|
|
|
|
[sqla_testing]
|
|
requirement_cls = test.requirements:DefaultRequirements
|
|
profile_file = test/profiles.txt
|
|
|
|
# name of a "loopback" link set up on the oracle database.
|
|
# to create this, suppose your DB is scott/tiger@free. You'd create it
|
|
# like:
|
|
# create public database link test_link connect to scott identified by tiger
|
|
# using 'free';
|
|
oracle_db_link = test_link
|
|
# create public database link test_link2 connect to test_schema identified by tiger
|
|
# using 'free';
|
|
oracle_db_link2 = test_link2
|
|
|
|
# host name of a postgres database that has the postgres_fdw extension.
|
|
# to create this run:
|
|
# CREATE EXTENSION postgres_fdw;
|
|
# GRANT USAGE ON FOREIGN DATA WRAPPER postgres_fdw TO public;
|
|
# this can be localhost to create a loopback foreign table
|
|
# postgres_test_db_link = localhost
|
|
|
|
[db]
|
|
default = sqlite:///:memory:
|
|
sqlite = sqlite:///:memory:
|
|
sqlite_numeric = sqlite+pysqlite_numeric:///:memory:
|
|
sqlite_dollar = sqlite+pysqlite_dollar:///:memory:
|
|
aiosqlite = sqlite+aiosqlite:///:memory:
|
|
sqlite_file = sqlite:///querytest.db
|
|
aiosqlite_file = sqlite+aiosqlite:///async_querytest.db
|
|
pysqlcipher_file = sqlite+pysqlcipher://:test@/querytest.db.enc
|
|
postgresql = postgresql+psycopg2://scott:tiger@127.0.0.1:5432/test
|
|
psycopg2 = postgresql+psycopg2://scott:tiger@127.0.0.1:5432/test
|
|
psycopg = postgresql+psycopg://scott:tiger@127.0.0.1:5432/test
|
|
psycopg_async = postgresql+psycopg_async://scott:tiger@127.0.0.1:5432/test
|
|
asyncpg = postgresql+asyncpg://scott:tiger@127.0.0.1:5432/test
|
|
pg8000 = postgresql+pg8000://scott:tiger@127.0.0.1:5432/test
|
|
postgresql_psycopg2cffi = postgresql+psycopg2cffi://scott:tiger@127.0.0.1:5432/test
|
|
mysql = mysql+mysqldb://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
|
|
pymysql = mysql+pymysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
|
|
aiomysql = mysql+aiomysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
|
|
asyncmy = mysql+asyncmy://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
|
|
mariadb = mariadb+mysqldb://scott:tiger@127.0.0.1:3306/test
|
|
mariadb_connector = mariadb+mariadbconnector://scott:tiger@127.0.0.1:3306/test
|
|
mysql_connector = mariadb+mysqlconnector://scott:tiger@127.0.0.1:3306/test
|
|
mssql = mssql+pyodbc://scott:tiger^5HHH@mssql2022:1433/test?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes&Encrypt=Optional
|
|
mssql_async = mssql+aioodbc://scott:tiger^5HHH@mssql2022:1433/test?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes&Encrypt=Optional
|
|
pymssql = mssql+pymssql://scott:tiger^5HHH@mssql2022:1433/test
|
|
docker_mssql = mssql+pyodbc://scott:tiger^5HHH@127.0.0.1:1433/test?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes&Encrypt=Optional
|
|
oracle = oracle+cx_oracle://scott:tiger@oracle18c/xe
|
|
cxoracle = oracle+cx_oracle://scott:tiger@oracle18c/xe
|
|
oracledb = oracle+oracledb://scott:tiger@oracle18c/xe
|
|
oracledb_async = oracle+oracledb_async://scott:tiger@oracle18c/xe
|
|
docker_oracle = oracle+cx_oracle://scott:tiger@127.0.0.1:1521/?service_name=FREEPDB1
|