-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (48 loc) · 1.1 KB
/
pyproject.toml
File metadata and controls
55 lines (48 loc) · 1.1 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
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
]
ignore = [
"E501", # line too long, handled by formatter
"E722", # do not use bare except
"E731", # do not assign a lambda expression, use a def
]
[tool.ruff.lint.per-file-ignores]
"datasets/**/*.py" = ["E722", "F841", "E731"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.mypy]
python_version = "3.10" # Updated to support pattern matching
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
namespace_packages = true
explicit_package_bases = true
exclude = [
"datasets/",
"scripts/",
]
[[tool.mypy.overrides]]
module = [
"datasets.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"datasets.androidcontrol.*",
]
ignore_errors = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]