-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
129 lines (106 loc) · 2.81 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "graphdata"
version = "0.0.1"
description = ""
authors = ["Simon Wicks <[email protected]>"]
readme = "README.md"
repository = "https://github.com/simw/graphdata"
license = "MIT"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Environment :: Console",
"Environment :: MacOS X",
"License :: OSI Approved :: MIT License",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
packages = [{include = "graphdata", from = "src"}]
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.group.ops]
optional = true
[tool.poetry.group.ops.dependencies]
[tool.poetry.group.lint.dependencies]
black = "^23.9.1"
ruff = "^0.1.3"
mypy = "^1.8.0"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.2"
coverage = "^7.3.2"
[tool.mypy]
strict = true
[tool.black]
color = true
line-length = 88
target-version = ["py38"]
[tool.ruff]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"C90", # Mccabe complexity
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"YTT", # flake8-2020
"ASYNC", # flake8-ASYNC
"S", # flake8-bandit
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"PT", # flake8-pyteststyle
"PD", # pandas-vet
"PL", # pylint
"PERF", # perflint
]
ignore = []
line-length = 88
indent-width = 4
target-version = "py38"
[tool.ruff.per-file-ignores]
"tests/**/**" = ["S"] # Don't run bandit on tests (eg flagging on assert)
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.isort]
known-first-party = ["graphdata"]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.pytest.ini_options]
testpaths = "tests"
xfail_strict = true
filterwarnings = [
"error",
"ignore:distutils Version classes:DeprecationWarning",
"ignore:SelectableGroups dict:DeprecationWarning",
]
[tool.coverage.run]
source = ["src/graphdata"]
branch = true
[tool.coverage.report]
precision = 2
show_missing = true
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'@overload',
]
fail_under = 100