-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
67 lines (58 loc) · 1.5 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
[tool.poetry]
name = "amongo"
version = "0.1.0"
description = ""
authors = ["teaishealthy <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
bson-py = "^1.0.0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.1.9"
pytest = "^7.4.3"
pytest-asyncio = "^0.23.2"
[tool.pyright]
reportPrivateUsage = false
reportUnnecessaryTypeIgnoreComment = true
stubPath = "stubs"
[tool.ruff]
include = ["*.py"]
exclude =[ "examples/*.py"]
select = ["ALL"]
ignore = [
# even mypy knows that self is of type Self
"ANN101", "ANN102",
# i dont want docstrings everywhere
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",
# Any is okay :D
"ANN401",
# todos don't need to be so bureaucratic
"TD003", "FIX002",
# my message ids don't need to be cryptographically safe
"S311",
# thing.open and open are two different things...
"A003",
# similary i don't care if i shadow a builtin
"A002",
# im accessing my own attributes, i know what im doing
"SLF001",
# i need more than 5 function args
"PLR0913",
# pyright ignores are way too verbose
"PGH003",
# ruff format things
"COM812", "ISC001"
]
[tool.ruff.per-file-ignores]
"tests/*.py" = [
# assert is needed for tests
"S101",
# it doesnt matter that tests/ is an implicit namespace package
"INP001"
]
[tool.ruff.pydocstyle]
convention = "google"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"