-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (94 loc) · 1.85 KB
/
pyproject.toml
File metadata and controls
105 lines (94 loc) · 1.85 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[project]
authors = [
{name = "Brian Downing", email = "bdowning@lavos.net"},
]
license = {text = "MIT"}
requires-python = "<4.0,>=3.9"
dependencies = [
"typing-extensions",
]
name = "sql-athame"
version = "0.4.0-alpha-14"
description = "Python tool for slicing and dicing SQL"
readme = "README.md"
[project.urls]
homepage = "https://github.com/bdowning/sql-athame"
repository = "https://github.com/bdowning/sql-athame"
[project.optional-dependencies]
asyncpg = [
"asyncpg",
]
[dependency-groups]
dev = [
"SQLAlchemy",
"asyncpg",
"bump2version",
"ipython",
"mypy",
"pytest",
"pytest-asyncio",
"pytest-cov",
"ruff",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = [
"ASYNC",
"B",
"BLE",
"C4",
"DTZ",
"E",
"F",
"I",
"INP",
"ISC",
"LOG",
"N",
"PIE",
"PT",
"RET",
"RUF",
"SLOT",
"UP",
]
flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true
ignore = [
"E501", # line too long
"RET505", # Unnecessary `else` after `return` statement
"RET506", # Unnecessary `else` after `raise` statement
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # wildcard import
]
[tool.pytest.ini_options]
addopts = [
"-v",
"--cov",
"--cov-report", "xml:results/pytest/coverage.xml",
"--cov-report", "html:results/pytest/cov_html",
"--cov-report", "term-missing",
"--junitxml=results/pytest/results.xml",
"--durations=5",
]
junit_family = "legacy"
asyncio_mode = "auto"
[tool.coverage]
run.include = [
"sql_athame/**/*.py",
"tests/**/*.py",
]
report.precision = 2
[tool.mypy]
disallow_incomplete_defs = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"asyncpg",
]
ignore_missing_imports = true