Skip to content

Commit 3d0ab5c

Browse files
committed
Fix formatting
1 parent b507030 commit 3d0ab5c

40 files changed

+117
-77
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,22 @@ repos:
88
types: [file]
99
files: \.(py|pyi)$
1010

11+
- repo: https://github.com/sqlalchemyorg/zimports
12+
rev: 0.3.0
13+
hooks:
14+
- id: zimports
15+
types: [file]
16+
files: \.(py|pyi)$
17+
18+
- repo: https://github.com/pycqa/flake8
19+
rev: 3.8.4
20+
hooks:
21+
- id: flake8
22+
types: [file]
23+
files: \.(py|pyi)$
24+
additional_dependencies:
25+
- flake8-import-order
26+
- flake8-pyi
27+
28+
1129

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tool.black]
22
line-length = 79
3-
target-version = ['py37']
3+
target-version = ['py36']

setup.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ project_urls =
2828
python_requires = >=3.6
2929

3030
install_requires =
31-
mypy>=0.790
31+
mypy>=0.800
3232
typing-extensions>=3.7.4
3333

3434
[options.data_files]
@@ -42,13 +42,12 @@ show-source = false
4242
enable-extensions = G
4343

4444
ignore =
45-
A003,
46-
D,
4745
E203,E305,E711,E712,E721,E722,E741,
4846
N801,N802,N806,
49-
RST304,RST303,RST299,RST399,
5047
F401,
5148
W503,W504
5249
exclude = .venv,.git,.tox,dist,doc,*egg,build
5350
import-order-style = google
5451
application-import-names = sqlalchemy,test,sqlalchemy-stubs
52+
per-file-ignores =
53+
*.pyi: F403, F405, F811, E127, E128, E266, E301, E302, E501, E701, E704, E741, B303

sqlalchemy-stubs/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# fmt: off
12
from .engine import create_engine as create_engine
23
from .engine import create_mock_engine as create_mock_engine
34
from .engine import engine_from_config as engine_from_config

sqlalchemy-stubs/dialects/mssql/provision.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# fmt: off
12
from sqlalchemy import inspect as inspect
23
from sqlalchemy import Integer as Integer
34
from ... import create_engine as create_engine

sqlalchemy-stubs/dialects/mysql/provision.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# fmt: off
12
from ... import exc as exc
23
from ...testing.provision import configure_follower as configure_follower
34
from ...testing.provision import create_db as create_db

sqlalchemy-stubs/dialects/oracle/provision.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# fmt: off
12
from ... import create_engine as create_engine
23
from ... import exc as exc
34
from ...testing.provision import configure_follower as configure_follower

sqlalchemy-stubs/dialects/postgresql/ext.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# fmt: off
12
from typing import Any
23
from typing import Optional
34

@@ -10,6 +11,7 @@ from ...sql import functions as functions
1011
from ...sql import roles as roles
1112
from ...sql import schema as schema
1213
from ...sql.schema import ColumnCollectionConstraint as ColumnCollectionConstraint
14+
# fmt: on
1315

1416
class aggregate_order_by(expression.ColumnElement):
1517
__visit_name__: str = ...

sqlalchemy-stubs/dialects/postgresql/provision.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# fmt: off
12
from ... import exc as exc
23
from ... import inspect as inspect
34
from ... import text as text

sqlalchemy-stubs/dialects/sqlite/provision.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# fmt: off
12
from ...testing.provision import create_db as create_db
23
from ...testing.provision import drop_db as drop_db
34
from ...testing.provision import follower_url_from_main as follower_url_from_main

0 commit comments

Comments
 (0)