-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
121 lines (99 loc) · 2.16 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "dbt-score"
dynamic = ["version"]
description = "Linter for dbt metadata."
authors = [
{name = "Picnic Analyst Development Platform", email = "[email protected]"}
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
]
dependencies = [
"click>=7.1.1, <9.0.0",
"tomli>=1.1.0; python_version<'3.11'",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
[project.scripts]
dbt-score = "dbt_score.__main__:main"
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"dbt-core>=1.5",
"tox-pdm~=0.7.2",
"tox~=4.13",
]
lint = [
"ruff~=0.2.2",
"mypy~=1.8",
]
test = [
"pytest~=8.0",
"coverage[toml]~=7.4"
]
docs = [
"mkdocs-material~=9.5",
"mkdocstrings[python]~=0.26.0"
]
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
dbt-score = {call = "dbt_score.__main__:main"}
### Mypy ###
[tool.mypy]
strict = true
warn_no_return = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_calls = false
### Ruff ###
[tool.ruff]
line-length = 88
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C90", # mccabe
"I", # isort
"PL", # pylint
"Q", # flake8-quotes
"RUF", # ruff
"D", # pycodestyle
"E", # pycodestyle errors
"W", # pycodestyle warnings
]
[tool.ruff.lint.mccabe]
max-complexity = 11
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pylint]
max-args = 9
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"PLR2004", # Magic value comparisons
"PLR0913", # Too many args in func def
]
### Coverage ###
[tool.coverage.run]
source = [
"tests",
"src"
]
[tool.coverage.report]
show_missing = true
fail_under = 80
exclude_also = [
"@overload"
]