-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
52 lines (46 loc) · 1.06 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.black]
line-length = 80
# black needs this to be a regex
# to add more exclude expressions
# append `| <regex-expr>` (e.g. `| .*_test\\.py`) to this list
extend-exclude = """
(
weights/|workon/
)
"""
[tool.isort]
profile = "black"
force_single_line = "True"
known_first_party = ["keras.src_core", "tests"]
default_section = "THIRDPARTY"
line_length = 80
extend_skip_glob=["weights/*", "workon/*"]
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore::ImportWarning",
"ignore::RuntimeWarning",
"ignore::PendingDeprecationWarning",
"ignore::FutureWarning",
"ignore::UserWarning",
# Ignore a spurious warning on tf-nightly related to save model changes.
"ignore:Custom mask layers require a config",
]
addopts = "-vv"
# Do not run tests in the `build` folders
norecursedirs = ["build"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract",
"raise NotImplementedError",
]
omit = [
"*/test_*.py",
]
[tool.coverage.run]
branch = true
omit = [
"*/test_*.py",
]