-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
65 lines (55 loc) · 1.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
[tool.poetry]
name = "aiomarketstack"
version = "0.1.0"
description = "asyncio Marketstack.com Client"
authors = ["Marko Vejnovic <[email protected]>"]
readme = "README.md"
packages = [{ include = "aiomarketstack" }]
[tool.poetry.dependencies]
aiohttp = {version = "^3.9.1", python = "^3.8"}
python = "^3.8"
structlog = {version = "^23.2.0", python = "^3.8"}
typing-extensions = {version = "^4.8.0", python = "^3.8"}
[tool.poetry.group.test.dependencies]
mypy = {version = "^1.7.1", python = "^3.8"}
numpy = {version = "^1.24", python = "^3.8"}
pytest = {version = "^7.4.3", python = "^3.8"}
pytest-asyncio = {version = "^0.23.1", python = "^3.8"}
pytest-cov = {version = "^4.1.0", python = "^3.8"}
ruff = {version = "^0.1.6", python = "^3.8"}
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D203",
"D213"
]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = [
"FBT001", # FBT001 Boolean-typed positional argument in function definition
"FBT002", # FBT002 Boolean default positional argument in function
# definition
"S101", # S101 Use of `assert` detected
"C419", # C419 Unnecessary list comprehension.
# True, but in tests it is useful to have the prinout actually spit out
# the list, including the values, than just the generator.
]
"**/docs/*" = [
"INP", # It's okay to have scripts as examples.
"D", # Examples do not need documentation
"TCH001", # Do not need typechecking blocks for examples
"T201", # Print is okay in examples
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:"
]
[tool.coverage.html]
directory = "build-artifacts/htmlcov"