-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (67 loc) · 1.79 KB
/
pyproject.toml
File metadata and controls
83 lines (67 loc) · 1.79 KB
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
[tool.poetry]
name = "migration-lint"
version = "0.2.13"
description = "Tool for lint operations in DB migrations SQL"
authors = ["Alexey Nikitenko <alexey.nikitenko@pandadoc.com>"]
readme = "README.md"
packages = [{include = "migration_lint"}]
include = ["migration_lint/bin/*"]
[tool.poetry.scripts]
migration-lint = 'migration_lint.main:main'
[tool.poetry.dependencies]
python = "^3.9"
sqlfluff = "^3.2.4"
click = "^8.0.3"
gitpython = { version = "^3.1.43", optional = true }
django = {version = ">=3.2", optional = true }
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = ">=0.990"
ruff = ">=0.2"
django-stubs = "^5.1.0"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = ">=8.0,<9.0"
pytest-cov = ">=4.1,<5.0"
[tool.poetry.extras]
git = ["gitpython"]
django = ["django"]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain about some magic methods:
"def __str__",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
# Don't complain about empty realizations
"pass",
]
ignore_errors = true
[tool.pytest.ini_options]
addopts = [
"--cov=migration_lint",
"--cov-report=html",
"--cov-report=term",
"--cov-report=xml",
"--junitxml=junit.xml",
"-vv",
]
[tool.poetry.build]
generate-setup-file = false
script="pre_build.py"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"