75dece378b
* [ci/cd] exclude keras_core/legacy from coverage.run|report, add backend to codecov flags, move project config to pyproject.toml * GHA codecov upload, fail ci if error
56 lines
1.1 KiB
TOML
56 lines
1.1 KiB
TOML
[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 = """
|
|
(
|
|
examples/
|
|
)
|
|
"""
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
force_single_line = "True"
|
|
known_first_party = ["keras_core", "tests"]
|
|
default_section = "THIRDPARTY"
|
|
line_length = 80
|
|
extend_skip_glob=["examples/*", "guides/*"]
|
|
|
|
[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",
|
|
"keras_core/legacy/*",
|
|
]
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
omit = [
|
|
"*/*_test.py",
|
|
"keras_core/legacy/*",
|
|
]
|
|
|