forked from hail-is/hail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
52 lines (47 loc) · 1.37 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
[tool.ruff]
line-length = 120
select = ["F", "E", "W", "I", "PL", "RUF"]
ignore = [
"E501", # Line length too long
"E722", # Do not use bare `except`
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
"PLW0603", # Using the global statement to update `<VAR>` is discouraged
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"PLR0913", # Too many arguments to function call
"PLC1901", # `<VAR> != ''` can be simplified to `<VAR>` as an empty string is falsey
"PLR2004", # Magic value used in comparison
]
extend-exclude = ['sql', 'datasets']
force-exclude = true
[tool.ruff.isort]
known-first-party = ["auth", "batch", "ci", "gear", "hailtop", "monitoring", "website", "web_common"]
[tool.ruff.per-file-ignores]
"hail/src/**/*" = ["ALL"]
"benchmark/**/*" = ["ALL"]
"datasets/**/*" = ["ALL"]
"devbin/**/*" = ["ALL"]
"docker/**/*" = ["ALL"]
"query/**/*" = ["ALL"]
[tool.ruff.format]
preview = true
quote-style = "preserve"
[pytest]
timeout = 120
[tool.pyright]
ignore = [
"**/sql",
"**/build",
"**/target",
"hail/python/hail",
"hail/python/test/hail",
"hail/python/hailtop/batch/docs",
"query",
"datasets",
"benchmark",
"docker/vep/vep.py",
"devbin",
"hail/src/test/resources/makeTestInfoScore.py",
]