-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
122 lines (103 loc) · 3.01 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
[build-system]
requires = ["poetry-core==1.1.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "test-tools"
version = "0.0.0"
description = "Tools for testing hive software"
authors = ["Piotr Batko <[email protected]>"]
readme = "readme.md"
repository = "https://gitlab.syncad.com/hive/test-tools"
source = [
{ name = "PyPI", priority = "primary" },
{ name = "gitlab-schemas", url = "https://gitlab.syncad.com/api/v4/projects/362/packages/pypi/simple", priority = "supplemental" },
{ name = "gitlab-wax", url = "https://gitlab.syncad.com/api/v4/projects/419/packages/pypi/simple", priority = "supplemental" },
{ name = "gitlab-helpy-beekeepy", url = "https://gitlab.syncad.com/api/v4/projects/434/packages/pypi/simple", priority = "supplemental" },
]
packages = [
{ include = "test_tools", from = "package" },
]
[tool.poetry.dependencies]
python = "^3.10"
requests = "2.27.1"
python-dateutil = "2.8.2"
abstractcp = "0.9.9"
loguru = "0.7.2"
beekeepy = "0.0.1.dev270+b417818"
[tool.poetry.group.dev.dependencies]
black = "22.8.0"
local-tools = { path = "tests/local-tools", develop = true }
pre-commit = "2.20.0"
mypy = "1.4.1"
ruff = "0.0.277"
pytest = "7.1.2"
pytest-xdist = "2.5.0"
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
select = [# https://beta.ruff.rs/docs/rules/
"F",
"E",
"W",
"C",
"I",
"N",
"D",
"UP",
"YTT",
"ASYNC",
"BLE",
"B",
"A",
"C4",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"RSE",
"RET",
"SIM",
"TID",
"TCH",
"ARG",
"PTH",
"ERA",
"PL",
"TRY",
"FLY",
"RUF",
]
ignore = [
"E501", # line too long, handled by black
"D203", # 1 blank line required before class docstring; because we re using D211
"D212", # Multi-line docstring summary should start at the first line; because we re using D213
"D401", # first line should be in imperative mood
"PT004", # fixture does not return anything, add leading underscore; issue: pytest seems to ignore (not launch) auto-use fixtures with leading underscode
"TRY003", # too restrictive
"PLR0913", # too restrictive, too many arguments to function call
"D104", # missing docstring in public package
"D100", # missing docstring in public module
]
[tool.ruff.per-file-ignores]
"tests/**" = [ # no need for docstrings in tests
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
"D104", # missing docstring in public package
"D105", # missing docstring in magic method
"D106", # missing docstring in public nested class
"D107", # missing docstring in __init__
]
[tool.ruff.isort]
known-first-party = ["helpy", "schemas", "wax"]
required-imports = ["from __future__ import annotations"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.mypy]
strict = true
disallow_untyped_decorators = false
plugins = "pydantic.mypy"