forked from facebookresearch/fairseq2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
49 lines (42 loc) · 1.31 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
[build-system]
requires = ["packaging~=23.1", "setuptools~=67.8", "wheel~=0.40"]
build-backend = "setuptools.build_meta"
[tool.black]
extend-exclude = "third-party"
[tool.flake8]
extend_exclude = ["third-party"]
extend_ignore = ["E", "Y"] # Black
per-file-ignores = [
"__init__.py:F401",
]
[tool.isort]
extend_skip = "third-party"
profile = "black"
[tool.mypy]
disable_error_code = "type-abstract,typeddict-unknown-key"
disallow_untyped_calls = false
disallow_untyped_decorators = false
files = "setup.py,src,tests"
python_version = 3.8
show_error_codes = true
show_error_context = true
strict = true
enable_error_code = "possibly-undefined,redundant-expr,truthy-bool,truthy-iterable"
warn_unused_configs = false
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "torch.distributed.*"
implicit_reexport = true
# TODO: fix!
[[tool.mypy.overrides]]
module = "fairseq2.data.parquet_tools.*,tests.integration.parquet.*,recipes.parquet.*"
ignore_errors = true
[tool.pytest.ini_options]
minversion = "7.1"
testpaths = ["tests"]
filterwarnings = [
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:pkg_resources is deprecated:DeprecationWarning",
"ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning",
"ignore:To copy construct from a tensor:UserWarning",
]