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

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

Build:
DEFAULT BRANCH: master
Ran 11 Jan 2021 03:39PM UTC
Files 29
Run time 3s
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.334% (+0.02%) from 97.318%
REMOVE_LOCALES=true

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.

1132 of 1163 relevant lines covered (97.33%)

0.97 hits per line

Source Files on job 1144.12 (REMOVE_LOCALES=true)
  • 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.12
  • 1b378ed5 on github
  • Prev Job for REMOVE_LOCALES=true on master (#1142.2)
  • Next Job for REMOVE_LOCALES=true on master (#1146.2)
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