-
Notifications
You must be signed in to change notification settings - Fork 41
/
pyproject.toml
103 lines (94 loc) · 2.53 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
[tool.poetry]
name = "celery-types"
version = "0.22.0"
description = "Type stubs for Celery and its related packages"
repository = "https://github.com/sbdchd/celery-types"
readme = "README.md"
authors = ["Steve Dignam <[email protected]>"]
keywords = [
"celery",
"kombu",
"vine",
"amqp",
"billiard",
"django_celery_results",
"types",
"mypy",
"stubs",
]
packages = [
{ include = "amqp-stubs" },
{ include = "billiard-stubs" },
{ include = "celery-stubs" },
{ include = "django_celery_results-stubs" },
{ include = "ephem-stubs" },
{ include = "kombu-stubs" },
{ include = "vine-stubs" },
]
[tool.poetry.dependencies]
python = "^3.9"
typing-extensions = "^4.9.0"
[tool.poetry.group.dev.dependencies]
celery = "^5.0"
black = { version = "21.9b0", allow-prereleases = true }
django-types = "^0.3.1"
django = "^3.1"
ruff = "^0.0.261"
mypy = "^1.2.0"
toml-cli = "^0.5.0"
[tool.ruff]
select = [
"E",
"F",
"TID252",
"I001",
"T20",
"C4",
"UP",
"N",
"BLE",
"B",
"RET",
"SIM",
"ARG",
"DTZ",
"ERA",
"RUF",
]
# src = ["recipeyak"]
ignore = [
"E501", # line length is handled by black
"ARG001", # pytest fixtures mess with this
"ARG002", # sometimes parent classes require params
"N806", # django migrations violate this a lot
"B008", # type.Argument violates this
"N815", # we mix and match casing in serializers
"ARG005", # monkey patching false positive with *args, and **kwargs
"N805", # false positive with pydantic
"N802", # DRF serializers mess with this
"RET505", # if, elif, else are fine with returns
"RET507", # if, elif, else with continue is also fine
"RET508", # if, elif, else with break is also fine
# okay because we're doing hacky things for our runtime tests
"T201", # we use print for testing
"B905", # allow zip without strict
"B018", # useless expressions useful for type checking
"B904", # allow bad except clauses
"N803", # some APIs have weird names
"N818", # some exceptions have bad names
"N801", # some class names have bad names
]
unfixable = [
"ERA001",
] # we want to check ourselves before we delete commented out code.
update-check = false
target-version = "py39"
# [tool.ruff.isort]
# known-third-party = ["django"]
# known-first-party = ["recipeyak"]
[tool.ruff.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"
[build-system]
requires = ["poetry-core>=1.5.2"]
build-backend = "poetry.core.masonry.api"