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

adrienverge / yamllint / 1144 / 11
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 11 Jan 2021 03:39PM UTC
Files 29
Run time 4s
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

11 Jan 2021 03:38PM UTC coverage: 97.592% (+0.01%) from 97.578%
REMOVE_LOCALES=false

push

travis-ci-com

adrienverge
quoted-strings: Fix explicit octal recognition

PyYAML implements YAML spec version 1.1, not 1.2. Hence, values starting
with `0o` are not considered as numbers: they are just strings, so they
need quotes when `quoted-strings: {required: true}`.

>>> import yaml
>>> yaml.resolver.Resolver().resolve(yaml.nodes.ScalarNode, '100', (True, False))
'tag:yaml.org,2002:int'
>>> yaml.resolver.Resolver().resolve(yaml.nodes.ScalarNode, '0100', (True, False))
'tag:yaml.org,2002:int'
>>> yaml.resolver.Resolver().resolve(yaml.nodes.ScalarNode, '0o100', (True, False))
'tag:yaml.org,2002:str'

Let's try to prevent that.

Fixes https://github.com/adrienverge/yamllint/issues/351.

1135 of 1163 relevant lines covered (97.59%)

0.98 hits per line

Source Files on job 1144.11 (REMOVE_LOCALES=false)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1019
  • Travis Job 1144.11
  • 1b378ed5 on github
  • Prev Job for REMOVE_LOCALES=false on master (#1142.1)
  • Next Job for REMOVE_LOCALES=false on master (#1146.1)
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