-
Notifications
You must be signed in to change notification settings - Fork 27
/
pyproject.toml
104 lines (98 loc) · 1.92 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
[tool.poetry]
name = "datalens_backend_root_package"
version = "0.1.0"
description = "Aux pyproject.toml for the common project properties"
authors = ["DataLens Team <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core"
]
[tool.black]
line-length = 120
target-version = ['py310']
force-exclude= '''
/(
# The following are specific to Black, you probably don't want those.
lib/redis-cache-lock/
| lib/clickhouse-sqlalchemy/
| lib/dl_formula/dl_formula/parser/antlr/gen/
| lib/dl_task_processor/dl_task_processor/upstream_worker.py
)
'''
[tool.isort]
line_length = 120
profile = "black"
skip_glob = [
"lib/redis-cache-lock/*",
"lib/clickhouse-sqlalchemy/*",
"lib/dl_formula/dl_formula/parser/antlr/gen/*",
"lib/dl_task_processor/dl_task_processor/upstream_worker.py",
]
multi_line_output = 3
force_grid_wrap = 2
lines_after_imports = 2
include_trailing_comma = true
force_sort_within_sections = true
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"FIRSTPARTY",
"CONNECTORS",
"LOCALFOLDER"
]
known_first_party = [
"bi_*",
"dl_*",
"dc_*"
]
known_connectors = [
"bi_connector_*",
"dl_connector_*"
]
[tool.ruff]
line-length = 120
force-exclude = true
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"tools_venv",
"lib/redis-cache-lock/**",
"lib/clickhouse-sqlalchemy/**",
"lib/dl_formula/dl_formula/parser/antlr/gen/**",
]
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Bugbear
"B"
]
ignore = [
"E501", # line lengh, should be checked and fixed by black
"B904", # force `raise ... from err` or `raise ... from None`
]