• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

adrienverge / yamllint / 14017535717
100%

Build:
DEFAULT BRANCH: master
Ran 23 Mar 2025 09:17AM UTC
Jobs 5
Files 67
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Mar 2025 09:16AM UTC coverage: 99.815% (-0.01%) from 99.825%
14017535717

push

github

adrienverge
CI: Fail when open()’s default encoding is used

The previous few commits have removed all calls to open() that use its
default encoding. That being said, it’s still possible that code added
in the future will contain that same mistake. This commit makes it so
that the CI test job will fail if that mistake is made again.

Unfortunately, it doesn’t look like coverage.py allows you to specify -X
options [1] or warning filters [2] when running your tests [3]. To work
around this problem, I’m running all of the Python code, including
coverage.py itself, with -X warn_default_encoding and
-W error::EncodingWarning. As a result, the CI test job will also fail
if coverage.py uses open()’s default encoding. Hopefully, coverage.py
won’t do that. If it does, then we can always temporarily revert this
commit.

[1]: <https://docs.python.org/3.12/using/cmdline.html#cmdoption-X>
[2]: <https://docs.python.org/3.12/using/cmdline.html#cmdoption-W>
[3]: <https://coverage.readthedocs.io/en/7.4.0/cmd.html#execution-coverage-run>

4305 of 4313 relevant lines covered (99.81%)

4.99 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.76
-0.24% tests/test_cli.py
3
98.16
0.0% yamllint/cli.py
Jobs
ID Job ID Ran Files Coverage
1 14017535717.1 23 Mar 2025 09:17AM UTC 67
99.72
2 14017535717.2 23 Mar 2025 09:17AM UTC 67
99.79
3 14017535717.3 23 Mar 2025 09:17AM UTC 67
99.79
4 14017535717.4 23 Mar 2025 09:17AM UTC 67
99.79
5 14017535717.5 23 Mar 2025 09:17AM UTC 67
99.79
Source Files on build 14017535717
  • Tree
  • List 67
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 83233949 on github
  • Prev Build on master (#13993956356)
  • Next Build on master (#14017589007)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc