Skip to content

Commit c65ecf6

Browse files
authored
Merge branch 'master' into rewrite_hooks_on_python_back_to_main
2 parents f622b10 + 8bedb53 commit c65ecf6

File tree

18 files changed

+2041
-42
lines changed

18 files changed

+2041
-42
lines changed

.codecov.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
3+
codecov:
4+
notify:
5+
after_n_builds: 21 # Number of test matrix+lint jobs uploading coverage
6+
wait_for_ci: false
7+
8+
require_ci_to_pass: false
9+
10+
token: >- # notsecret # repo-scoped, upload-only, stability in fork PRs
11+
7316089b-55fe-4646-b640-78d84b79d109
12+
13+
comment:
14+
require_changes: true
15+
16+
coverage:
17+
range: 100..100
18+
status:
19+
patch:
20+
default:
21+
target: 100%
22+
pytest:
23+
target: 100%
24+
flags:
25+
- pytest
26+
typing:
27+
flags:
28+
- MyPy
29+
project:
30+
default:
31+
target: 95%
32+
lib:
33+
flags:
34+
- pytest
35+
paths:
36+
- src/
37+
target: 100%
38+
tests:
39+
flags:
40+
- pytest
41+
paths:
42+
- tests/
43+
target: 100%
44+
typing:
45+
flags:
46+
- MyPy
47+
target: 90%
48+
49+
github_checks:
50+
# Annotations are deprecated in Codecov because they are misleading.
51+
# Ref: https://github.com/codecov/codecov-action/issues/1710
52+
annotations: false
53+
54+
...

.coveragerc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[html]
2+
show_contexts = true
3+
skip_covered = false
4+
5+
[paths]
6+
_site-packages-to-src-mapping =
7+
src
8+
*/src
9+
*\src
10+
*/lib/pypy*/site-packages
11+
*/lib/python*/site-packages
12+
*\Lib\site-packages
13+
14+
[report]
15+
skip_covered = true
16+
skip_empty = true
17+
show_missing = true
18+
exclude_also =
19+
^\s*@pytest\.mark\.xfail
20+
^\s*\.\.\.\s*(#.*)?$
21+
22+
[run]
23+
branch = true
24+
cover_pylib = false
25+
# https://coverage.rtfd.io/en/latest/contexts.html#dynamic-contexts
26+
# dynamic_context = test_function # conflicts with `pytest-cov` if set here
27+
parallel = true
28+
plugins =
29+
covdefaults
30+
relative_files = true
31+
source =
32+
.
33+
source_pkgs =
34+
pre_commit_terraform

0 commit comments

Comments
 (0)