Conversation
The `.yamllint.yaml` configuration did not include an `extends:` property, and it turns out that this mean `yamllint` never checked certain things at all. This PR adds `extends: relaxed` to get most of the default checks without being too pedantic about it. It does modify the rules, however, to be stricter about indentation. The other file changes in this PR are simply to make some files comply with the updated configuration.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8381 +/- ##
==========================================
- Coverage 99.59% 99.58% -0.01%
==========================================
Files 1131 1131
Lines 103601 103601
==========================================
- Hits 103179 103176 -3
- Misses 422 425 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Please restore hard error on line-too-long. I think it is more palatable to add local comment-overrides to make space for a very long URLs here and there. Otherwise there is no enforcement of the maximum line length as demonstrated by long lines added in this PR that got merrily accepted by yamllint CI.
Also, please make sure the original line breaks are preserved where possible for easier diffing and blaming of the content.
| description: At the core of Cirq is the ability to construct quantum circuits. These are the methods | ||
| and data structures necessary to do so. |
There was a problem hiding this comment.
Nit - this is unnecessarily over 100 characters. It was also easier to read before with a new sentence starting on new line. Please just indent here.
| description: Running circuits on quantum hardware devices means dealing with the noise those devices | ||
| introduce to the computation. Cirq provides the following ways of managing that noise, to improve | ||
| the quality of the measured results. |
There was a problem hiding this comment.
Same as above, please just indent without reformatting line breaks.
Besides breaking the maximum line length this also introduces unnecessary diff which is not trivially suppressed by --ignore-all-space
There seem to be overall 20 lines with excessive line length, please address all instances flagged with yamllint -s . Please keep the original line breaks where possible.
| # IMPORTANT: if you change values here, update .editorconfig to match. | ||
|
|
||
| # Relaxed rules mean certain things like line lengths are warnings, not errors. | ||
| extends: relaxed |
There was a problem hiding this comment.
Please restore the enforcement of maximum line lengths. As it is we got several unnecessarily long lines in this PR, all in text values that can be multi-line. The new CI setting did not flag them in the YAML lint check here. (The warnings are there, but require several clicks to expand).
There are no code changes in this PR.
The
.yamllint.yamlconfiguration did not include anextends:property, and it turns out that this meantyamllintnever checked certain things at all. This PR addsextends: relaxedto get most of the defaultyamllintchecks without being too pedantic about it. However, it does modify the rules in two cases to be stricter about indentation of lists and comments.All other file changes other than to
.yamllint.yamlin this PR are simply to adjust formatting in other files to comply with the updated configuration.After this is merged, the merge commit hash should probably be added to
.git-blame-ignore-revs.