-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
101 lines (95 loc) · 1.79 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
[project]
requires-python = ">= 3.12"
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
src = ["."]
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".venv",
"__snapshots__",
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# pyflakes
"F",
# pep8-naming
"N",
# flake8-unused-arguments
"ARG",
# pyupgrade
"UP",
# flake-bugbear
"B",
# flake8-builtins
"A",
# isort
"I",
# flake8-comprehensions
"C4",
# flake8-import-conventions
"ICN",
# flake8-pytest-style
"PT",
# flake8-simplify
"SIM",
# pandas-vet
"PD",
# flake8-use-pathlib - in ruff/main but not yet in the nixified version
# "PTH",
]
ignore = [
# Allow shadowing builtins on attributes.
"A003",
# Do not enforce max line length via linter. We have an autoformatter, and sometimes we
# intentionally turn formatting off.
"E501",
# Fixtures that do not return anything do not need leading underscore.
"PT004",
]
unfixable = [
# Remove unused variables.
"F841",
]
[tool.mypy]
strict = true
strict_optional = true
explicit_package_bases = true
exclude = [
"setup.py"
]
[[tool.mypy.overrides]]
module = "fuse"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pytest_cov.embed"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "llfuse"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "send2trash"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "appdirs.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "watchdog.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "setuptools"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = [
"--cov=.",
"--cov-branch",
"--import-mode=importlib",
"--ignore=result",
]
pythonpath = "."
python_files = ["*_test.py", "__test__.py"]