Enable codecov flags and coverage carryover for keras_core and keras_core.applications (#841)

This commit is contained in:
kiukchung 2023-09-07 01:57:42 +00:00 committed by Francois Chollet
parent fcdce1cc25
commit 634f6d71f7
3 changed files with 32 additions and 3 deletions

2
.gitignore vendored

@ -18,4 +18,4 @@ dist/**
examples/**/*.jpg
.python-version
.coverage
coverage.xml
*coverage.xml

@ -9,4 +9,27 @@ coverage:
default:
target:auto
comment:
layout: "header, reach, diff, flags, files"
behavior: default
require_changes: no
require_base: no
require_head: yes
show_carryforward_flags: yes
flag_management:
default_rules:
carryforward: false
statuses:
- type: project
target: auto
- type: patch
target: auto
individual_flags:
- name: keras_core
paths:
- keras_core
- name: keras_core.applications
paths:
- keras_core/applications
carryforward: true

@ -20,10 +20,16 @@ exclude_lines =
pragma: no cover
@abstract
raise NotImplementedError
omit = *_test.py
omit =
*/*_test.py
[coverage:run]
omit =
*/*_test.py
branch = True
[flake8]
ignore =
# Conflicts with black
E203