Dimitri Papadopoulos
5b21a3d9ea
Remove Unicode marker before strings
...
All strings are Unicode in Python 3. No need for u'€', just use '€'.
2 years ago
Dimitri Papadopoulos
5fbf44c203
docs: Fix typos
2 years ago
Adrien Vergé
eb7b7ca627
docs: Fix Sphinx error on non-YAML code snippet
...
This problem was just introduced by commit cec4f33
"Clarify disable-line
and parser errors, workaround" and produced this error when building
documentation:
docs/disable_with_comments.rst:120:Could not lex literal_block as
"yaml". Highlighting skipped.
2 years ago
Andrew Imeson
cec4f3383a
cocs: Clarify disable-line and parser errors, workaround
...
Lots of user confusion expecting `disable-line` to work around parser
errors caused by templating syntax.
Relates to #61 , #65 , #128 , #311 , #460 , #462
2 years ago
Andrew Imeson
52234b7a46
docs: remove erroneous example text in disable-file
2 years ago
andrewnaguib
2f8ad7003a
config: Implement for `ignore-from-file` option
...
Closes https://github.com/adrienverge/yamllint/issues/360
Co-authored-by: Adrien Vergé <@adrienverge>
2 years ago
Andrew Imeson
94c1c2bcf2
docs: Update ALE vim plugin link
2 years ago
Andrew Imeson
0130e15c8c
docs: Simplify GitHub Actions example
2 years ago
Dimitri Papadopoulos Orfanos
3346843edc
docs: Better compress PNG image
2 years ago
Derek Brown
8ac7d58693
float-values: Add a new rule to check floating-point numbers
3 years ago
Andrew Imeson
34a4f76e8b
docs: Remove repeated word 'copyright'
...
Fixes #476 - credit to @chrillep and @adrienverge
3 years ago
Christian Widlund
695fc5f1f1
docs: Add plugin section for Visual Studio Code
3 years ago
Christian Widlund
632665c3e6
docs: Add plugin section for IntelliJ
3 years ago
Adrien Vergé
89b75b7c05
refactor: Remove UTF-8 headers in Python files
...
The `# -*- coding: utf-8 -*-` headers were useful for Python 2, and
aren't needed for Python 3 where UTF-8 is the default.
yamllint support of Python 2 was dropped in early 2021, see commit
a3fc64d
"End support for Python 2".
Let's drop these headers.
3 years ago
Andrew Imeson
2f423117c1
docs: Attempt to clarify configuration file location
...
Closes #96 , Closes #212
3 years ago
Andrew Imeson
8a320aaf2c
Make man page show up in apropos
...
Set the 'description' attribute so that Sphinx builds the manpage with
the 'NAME' section. This is necessary for `apropos` to be able to find
yamllint
Fixes part of #76
3 years ago
Andrew Imeson
c34c962691
Remove the repeated word "automatically" in GHA doc
3 years ago
Madison Swain-Bowden
4f1bbc33dc
docs: Fix link syntax on integration.rst
3 years ago
Rex Ledesma
0f9dffde23
docs: Add configuration for integration with Arcanist
4 years ago
Andrew Imeson
67cb4eb24d
Auto-change output format if GitHub Actions detected
4 years ago
Adrien Vergé
597e88bb7b
docs: Make 'yaml-file' config documentation clearer
...
Related to https://github.com/adrienverge/yamllint/issues/311 .
4 years ago
Sorin Sbarnea
d274543b72
docs: Add Python API usage example
...
Fixes : #297
4 years ago
Wolfgang Walther
b5b436a3a4
Add global "locale" config option and make key-ordering rule locale-aware
...
Support sorting by locale with strcoll(). Properly handle case and accents.
Note: this is a second implementation, for context see:
https://github.com/adrienverge/yamllint/pull/280
https://github.com/adrienverge/yamllint/issues/285
https://github.com/adrienverge/yamllint/pull/288
5 years ago
Adrien Vergé
9403f1f3ec
Revert "Add global "locale" config option"
...
This reverts commit 9e90c77
, because it caused a bug that affected
different people just after being released:
https://github.com/adrienverge/yamllint/issues/285
https://github.com/adrienverge/yamllint/issues/286
5 years ago
Wolfgang Walther
9e90c777cb
Add global "locale" config option and make key-ordering rule locale-aware
...
Support sorting by locale with strcoll(). Properly handle case and accents.
5 years ago
Adrien Vergé
954fdd5e8f
style: Fix 'noqa' for flake8 3.8.0
...
There was a change in behavior of E402, see:
https://gitlab.com/pycqa/flake8/-/issues/638#note_345108633
5 years ago
Will Badart
278a79f093
Mention YAMLLINT_CONFIG_FILE in the documentation
5 years ago
ffapitalle
8fa9eb3ced
Add --no-warnings option to suppress warning messages
...
Use `--no-warnings` option to hide warning messages. It only shows
problems marked as errors.
5 years ago
Joel Baranick
fb400dc64b
Allow disabling all checks for a file
...
Allow disabling of a file, even if it is invalid YAML (syntax error) by
including `# yamllint disable-file` in the first line.
5 years ago
Hossein Zolfi
579a975b70
docs: Fix pre-commit config file
...
* pre-commit show warning for unsupported key (sha)
* Demonstrate how to use custom yamllint
5 years ago
Imran Iqbal
f3d9196aa0
docs(configuration): improve `yaml-files` code example
...
* A straight copy/paste of the existing example into the `.yamllint` file results in a `yamllint` error!
5 years ago
Ibrahim AshShohail
881d301883
feat: Support reading config from .yamllint.yml and .yamllint.yaml
...
Signed-off-by: Ibrahim AshShohail <me@ibrasho.com>
5 years ago
Adrien Vergé
b62b424dd4
feat: Lint .yamllint by default
5 years ago
grzesuav
063c854658
feat: Make YAML file extensions configurable
6 years ago
Remi Pointel
cb5fe2c050
add OpenBSD installation instructions.
6 years ago
Adrien Vergé
930c8eea94
docs: Simplify installation instruction in the README
6 years ago
Adrien Vergé
f66661e36d
docs(cli): Add a paragraph about standard input
...
See commit 05dfcbc
"cli: Add command line option - to read from standard
input", cc @miguelbarao.
6 years ago
Adrien Vergé
d6b89e94e4
chore(docs): Fix conf.py styling
6 years ago
Adrien Vergé
a56a1015f0
style(docs): Fix RST lint errors reported by doc8
6 years ago
Adrien Vergé
66adaee66c
docs: Add documentation on the new -f colored option
6 years ago
Adrien Vergé
e864f57d37
docs: Fix missing quoted-strings module in documentation
6 years ago
Adrien Vergé
203cfc20f0
docs: Remove sudo from pip installation instructions
7 years ago
Adrien Vergé
51c30505b5
docs: Add Mac OS installation instructions
...
See https://github.com/adrienverge/yamllint/issues/91 and
https://github.com/Homebrew/homebrew-core/blob/af2bbe9/Formula/yamllint.rb
7 years ago
Adrien Vergé
ff9ebde608
docs: Remove old Debian / Ubuntu installation instructions
7 years ago
Eimert
8ab680635b
docs: Make `ignore` examples clearer
...
[Solved](https://github.com/metacloud/molecule/issues/1228 ), when
yamllint is used by molecule.
7 years ago
xieenlong
22e792a433
Feature: checking octal numbers
7 years ago
Greg Dubicki
8537b0a164
Add rule: empty-values, to forbid implicit nulls
...
only in block mappings for now
7 years ago
Johannes F. Knauf
1543d0e435
New rule key-ordering
...
closes #67
7 years ago
Adrien Vergé
c4a3e15ff0
docs(readthedocs): Fix builds on yamllint.readthedocs.io
...
Documentation builds on readthedocs.io partly fail because some modules
imported by yammlint cannot be imported in Sphinx automodule.
This commit fixes that using the tip at [1].
Closes #66
[1]: http://docs.readthedocs.io/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
7 years ago
Sebastian Finke
db57127971
docs(integration): Fix pre-commit config file
8 years ago