Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit f52a839

Browse files
committed
fix detection of yml
1 parent 4a79f33 commit f52a839

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

codecov.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
codecov:
2+
archive:
3+
uploads: no
4+
5+
coverage:
6+
precision: 0
7+
range: 80...100
8+
9+
comment:
10+
layout: "header, diff, changes"

codecov/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
pass
2525

2626

27-
version = VERSION = __version__ = '2.0.0'
27+
version = VERSION = __version__ = '2.0.1'
2828

2929
COLOR = True
3030

@@ -517,7 +517,7 @@ def main(*argv, **kwargs):
517517
or '').strip())
518518

519519
# Detect codecov.yml location
520-
for _filename in toc:
520+
for _filename in toc.splitlines():
521521
if _filename in ('codecov.yml', '.codecov.yml') or _filename.endswith(('/codecov.yml', '/.codecov.yml')):
522522
query['yaml'] = _filename
523523
from yaml import load
@@ -641,6 +641,8 @@ def main(*argv, **kwargs):
641641
result = ''
642642
if codecov.dump:
643643
write('-------------------- Debug --------------------')
644+
write(' .url ' + codecov.url)
645+
write(' .query ' + remove_token('token=<secret>', urlargs))
644646
write(reports)
645647
write('-------------------- EOF --------------------')
646648
else:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup
33
import sys
44

5-
version = '2.0.0'
5+
version = '2.0.1'
66
classifiers = ["Development Status :: 5 - Production/Stable",
77
"Environment :: Plugins",
88
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)