Commit Graph

433 Commits (ad46f33b1d09ffada9bd259d5cc1fa8a612f1c12)
 

Author SHA1 Message Date
QuentinN42 ad46f33b1d
test: remaining tests done 3 years ago
QuentinN42 d7f59fe219
test: escape real text 3 years ago
QuentinN42 fba5b70d46
tests: use ddt to others classes 3 years ago
QuentinN42 f0000a1828
test: test with mixed errors / files 3 years ago
QuentinN42 64e19e8a74
fix: filter None to exclude them 3 years ago
QuentinN42 3561a77070
tests: testing skipping warn with None level 3 years ago
QuentinN42 0354c335c4
ci: add ddt to the tests requirements and update the contributing file accordingly 3 years ago
QuentinN42 e018da186e
feat: fixed some isues 3 years ago
QuentinN42 48b5e2b404
tests: tested formats with errors 3 years ago
QuentinN42 418952cc5c
refactor: match flake requirements 3 years ago
QuentinN42 4ae5487e3e
feat: add the possibility to pass the level as argument 3 years ago
QuentinN42 d666308eb6
tests: use ddt to parametrize tests 3 years ago
QuentinN42 b42ac81594
chore: rm coverage 3 years ago
QuentinN42 1f6adf64f8
test: Class to test all fmt 3 years ago
QuentinN42 eb48e1d908
test: Base class test 3 years ago
QuentinN42 32de447205
test: severity_from_level 3 years ago
QuentinN42 b1ce2f290b
test: escape_xml 3 years ago
QuentinN42 dab7a8089b
fix: test_run_with_user_global_config_file patched 3 years ago
QuentinN42 40574518ba
feat: changed json format according to @adrienverge comment 3 years ago
QuentinN42 e04f03a76c
feat: auto infer formats 3 years ago
QuentinN42 4baaf1200d
feat: add message to the json format 3 years ago
QuentinN42 d24519c941
feat: add codeclimate output 3 years ago
QuentinN42 2839489337
typo 3 years ago
QuentinN42 6a06e8d512
feat: changed json output file name to path
https://github.com/adrienverge/yamllint/pull/442#issuecomment-1030572919
3 years ago
QuentinN42 805b9a9739
feat: junitxml formater 3 years ago
QuentinN42 fbf8108b97
feat: json formater 3 years ago
QuentinN42 6217241fec
refactor: use object inheritance for the formaters 3 years ago
QuentinN42 c4463c706f
feat: max_level as separate function 3 years ago
QuentinN42 46a12a83a8
fix: missed return statement 3 years ago
QuentinN42 3601817dd2
refactor: moved output at the end of the tests 3 years ago
QuentinN42 b858cbbb82
refactor: moved formater inside another file 3 years ago
QuentinN42 81951b3230
chore: ignore venv 3 years ago
Madison Swain-Bowden 4f1bbc33dc
docs: Fix link syntax on integration.rst 3 years ago
Jérôme Alet bb567ba395
comments: Allow whitespace after the shebang marker
Basically, any character is now allowed after the shebang marker.

Closes #428.

Whitespace after the #! marker on shebang lines is authorized and
optional, as explained on Wikipedia's entry for shebang line as can be
seen from the extracts below :

> White space after #! is optional

and

> It has been claimed[20] that some old versions of Unix expect the
> normal shebang to be followed by a space and a slash (#! /), but this
> appears to be untrue;[21] rather, blanks after the shebang have
> traditionally been allowed, and sometimes documented with a space
3 years ago
Trevor Royer d0392b34ca
github format: Update output to utilize groups
Resolves #421

Update the github formatting to utilize groups in the output and provide
the line/column number for the error in the output log.
3 years ago
Trevor Royer 7246a0c800
cli: Separate --format=auto logic
Moved the auto arg_format selection out of the main if block into a
separate logic section to improve readability.

No logic changes.
3 years ago
Dmytro Bondar 9e6dfacceb Fix github actions workflow
- install correct python version
- set `fail-fast: false` to run all jobs
- remove hard-coded value for HOME directory
3 years ago
Dmytro Bondar 11e8d8ff37 Add support for Python 3.10, drop Python 3.5
- Add support for Python 3.10 released on 2021-10-04
- Drop support for Python 3.5 since it has reached end-of-life
3 years ago
Adrien Vergé f2e2e0c366 docs: Update CONTRIBUTING.rst
Be more precise in contributing instructions.
3 years ago
Adrien Vergé 058fef7559 yamllint version 1.26.3 3 years ago
Adrien Vergé f47d5318cf Restore setuptools requirement for Python < 3.8
This reverts commit 8f68248 "Remove runtime dep 'setuptools' for Python
< 3.8". It looks like removing setuptools induces problems on some
systems, see for example the linked discussion.

Fixes https://github.com/adrienverge/yamllint/issues/380.
3 years ago
Adrien Vergé 33ce0fa960 yamllint version 1.26.2 3 years ago
Kyle Finley 43744902e9
setup: update python_requires to comply with PEP 345/440
According to PEP 345 Requires-Python
(https://www.python.org/dev/peps/pep-0345/#requires-python), the value
of this field must be a valid Version Specifier
(https://www.python.org/dev/peps/pep-0345/#version-specifiers). Which
in turn expects this to comply with PEP 440
(https://www.python.org/dev/peps/pep-0440/).

While not an issue for those that directly use `pip`, this will cause
issues for `poetry` users in the next release (if their current stance
is maintained). Discussion of the issue and there stance can be found
here: https://github.com/python-poetry/poetry/issues/4095.
4 years ago
Adrien Vergé 85ccd625a3 yamllint version 1.26.1 4 years ago
Patryk Małek e53ea093e2
line_length: skip all hash signs starting comment 4 years ago
Adrien Vergé 5d8ef2ea23 CI: Simplify 'pip' commands 4 years ago
Adrien Vergé 4515269233 CI: Fix failing 'coverage' command because of $PATH
Very probably due to:
https://github.com/actions/virtual-environments/issues/2455#issuecomment-787511010
4 years ago
Adrien Vergé 66bf76a362 CI: Switch to GitHub Actions
Because Travis CI is dead.
4 years ago
Daniel M. Capella 8f682481c7
Remove runtime dep 'setuptools' for Python < 3.8
> In recent versions of setuptools and Python, console-script entry
points are using stdlib importlib by default, thus setuptools is no
longer needed as a runtime dependency.

https://github.com/pypa/setuptools/pull/2197
https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v4730
https://docs.python.org/3/library/importlib.metadata.html
4 years ago
Adrien Vergé 0fff4e29e4 yamllint version 1.26.0 4 years ago