-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
154 lines (140 loc) · 3.28 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[tool.poetry]
name = "sql-compare"
version = "0.1.3"
description = "Compare SQL schemas"
authors = ["Charly Laurent <[email protected]>"]
maintainers = ["Mergify <[email protected]>"]
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/Mergifyio/sql-compare"
keywords = ["sql", "database", "schema", "compare", "diff", "migration"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Database",
"Topic :: Software Development",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Unit",
]
[tool.poetry.dependencies]
python = "^3.8"
sqlparse = ">=0.5.0"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.4.8,<0.9.0"
mypy = "^1.10.0"
pytest = "^8.2.2"
poethepoet = ">=0.26.1,<0.31.0"
deptry = ">=0.16.1,<0.21.0"
semgrep = "^1.75.0"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/Mergifyio/sql-compare/issues"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe]
include = ["poe.toml"]
[tool.pytest.ini_options]
filterwarnings = ["error"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
preview = true
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"D",
"UP",
"YTT",
"ANN",
"ASYNC",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"CPY",
"C4",
"DTZ",
"EM",
"FA",
"ISC",
"ICN",
"LOG",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"TCH",
"INT",
"ARG",
"PTH",
"TD",
"ERA",
"PGH",
"PL",
"TRY",
"FLY",
"PERF",
"FURB",
"RUF",
]
ignore = [
# NOTE(charly): line-length is up to the formatter
"E501",
# NOTE(charly): `one-blank-line-before-class` (D203) and
# `no-blank-line-before-class` (D211) are incompatible
"D203",
# NOTE(charly): `multi-line-summary-first-line` (D212) and
# `multi-line-summary-second-line` (D213) are incompatible
"D213",
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "D"]
[tool.ruff.lint.isort]
force-single-line = true
force-sort-within-sections = true
lines-after-imports = 2
known-first-party = ["sql_compare"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.mypy]
strict = true
warn_unreachable = true
exclude = [".venv"]
files = ["sql_compare", "tests"]
show_error_codes = true
[[tool.mypy.overrides]]
module = "sqlparse"
ignore_missing_imports = true
[tool.deptry]
extend_exclude = ["tests"]