-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (74 loc) · 1.59 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (74 loc) · 1.59 KB
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
[project]
name = "nebula-worker"
version = "6.1.0"
description = ""
requires-python = ">=3.12"
dependencies = [
"PyYAML>=6.0",
"conti>=1.1.0",
"mistune>=2.0.4",
"promexp>=1.0.2",
"psutil>=5.9.4",
"psycopg2-binary>=2.9.3",
"pydantic>=1.10.12",
"redis>=4.5.4",
"requests>=2.32.0",
"python-dotenv>=0.21.0",
"Jinja2>=3.1.4",
"colorama>=0.4.6",
"unidecode>=1.4.0",
]
[dependency-groups]
dev = [
"mypy>=1.14.1",
"ruff>=0.9.4",
]
[tool.ruff]
fix = true
line-length = 88
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"ISC", # flake8-implicit-str-concat
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ASYNC", # flake8-async
"ISC", # flake8-implicit-str-concat
]
ignore = [
"ISC001",
"B008", # do not perform function calls in argument defaults
"C901", # too complex. C'mon - this is a complex project
]
[tool.mypy]
plugins = [
"pydantic.mypy"
]
check_untyped_defs = true
disallow_any_generics = true
exclude = "tests/|venv/|tool/|test_"
explicit_package_bases = true
no_implicit_reexport = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
# follow_imports = "silent"
# strict = true
# disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = [
"promexp",
"psycopg2",
"mistune",
"conti",
]
ignore_missing_imports = true
follow_imports = "skip"