QuentinN42
fba5b70d46
tests: use ddt to others classes
2022-02-11 11:40:33 +01:00
QuentinN42
f0000a1828
test: test with mixed errors / files
2022-02-11 11:23:08 +01:00
QuentinN42
64e19e8a74
fix: filter None to exclude them
2022-02-11 09:07:54 +01:00
QuentinN42
3561a77070
tests: testing skipping warn with None level
2022-02-11 08:55:18 +01:00
QuentinN42
0354c335c4
ci: add ddt to the tests requirements and update the contributing file accordingly
2022-02-11 08:45:57 +01:00
QuentinN42
e018da186e
feat: fixed some isues
2022-02-10 13:35:39 +01:00
QuentinN42
48b5e2b404
tests: tested formats with errors
2022-02-10 13:28:43 +01:00
QuentinN42
418952cc5c
refactor: match flake requirements
2022-02-10 13:18:13 +01:00
QuentinN42
4ae5487e3e
feat: add the possibility to pass the level as argument
2022-02-10 13:16:51 +01:00
QuentinN42
d666308eb6
tests: use ddt to parametrize tests
2022-02-10 13:10:13 +01:00
QuentinN42
b42ac81594
chore: rm coverage
2022-02-10 13:07:59 +01:00
QuentinN42
1f6adf64f8
test: Class to test all fmt
2022-02-10 12:49:51 +01:00
QuentinN42
eb48e1d908
test: Base class test
2022-02-10 12:41:50 +01:00
QuentinN42
32de447205
test: severity_from_level
2022-02-10 12:20:42 +01:00
QuentinN42
b1ce2f290b
test: escape_xml
2022-02-10 12:17:38 +01:00
QuentinN42
dab7a8089b
fix: test_run_with_user_global_config_file patched
2022-02-10 12:08:12 +01:00
QuentinN42
40574518ba
feat: changed json format according to @adrienverge comment
2022-02-08 15:11:03 +01:00
QuentinN42
e04f03a76c
feat: auto infer formats
2022-02-05 11:40:17 +01:00
QuentinN42
4baaf1200d
feat: add message to the json format
2022-02-05 11:26:50 +01:00
QuentinN42
d24519c941
feat: add codeclimate output
2022-02-05 11:24:48 +01:00
QuentinN42
2839489337
typo
2022-02-05 11:05:38 +01:00
QuentinN42
6a06e8d512
feat: changed json output file name to path
...
https://github.com/adrienverge/yamllint/pull/442#issuecomment-1030572919
2022-02-05 10:34:34 +01:00
QuentinN42
805b9a9739
feat: junitxml formater
2022-02-03 23:09:27 +01:00
QuentinN42
fbf8108b97
feat: json formater
2022-02-03 22:35:56 +01:00
QuentinN42
6217241fec
refactor: use object inheritance for the formaters
2022-02-03 22:20:18 +01:00
QuentinN42
c4463c706f
feat: max_level as separate function
2022-02-03 21:23:06 +01:00
QuentinN42
46a12a83a8
fix: missed return statement
2022-02-03 21:08:53 +01:00
QuentinN42
3601817dd2
refactor: moved output at the end of the tests
2022-02-03 20:59:27 +01:00
QuentinN42
b858cbbb82
refactor: moved formater inside another file
2022-02-03 20:33:19 +01:00
QuentinN42
81951b3230
chore: ignore venv
2022-02-03 20:28:06 +01:00
Madison Swain-Bowden
4f1bbc33dc
docs: Fix link syntax on integration.rst
2021-12-24 09:34:15 +01:00
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
2021-12-19 22:02:56 +01:00
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.
2021-12-01 08:52:59 +01:00
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.
2021-11-24 14:38:26 +01:00
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
2021-11-17 16:43:46 +01:00
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
2021-11-17 16:43:46 +01:00
Adrien Vergé
f2e2e0c366
docs: Update CONTRIBUTING.rst
...
Be more precise in contributing instructions.
2021-10-20 09:40:59 +02:00
Adrien Vergé
058fef7559
yamllint version 1.26.3
v1.26.3
2021-08-21 19:26:15 +02:00
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 .
2021-08-21 19:25:27 +02:00
Adrien Vergé
33ce0fa960
yamllint version 1.26.2
v1.26.2
2021-08-03 12:57:43 +02:00
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 .
2021-06-10 16:16:22 +02:00
Adrien Vergé
85ccd625a3
yamllint version 1.26.1
v1.26.1
2021-04-06 16:02:55 +02:00
Patryk Małek
e53ea093e2
line_length: skip all hash signs starting comment
2021-03-24 18:04:48 +01:00
Adrien Vergé
5d8ef2ea23
CI: Simplify 'pip' commands
2021-03-24 17:16:57 +01:00
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
2021-03-24 17:16:57 +01:00
Adrien Vergé
66bf76a362
CI: Switch to GitHub Actions
...
Because Travis CI is dead.
2021-03-16 16:13:01 +01:00
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
2021-02-11 08:55:08 +01:00
Adrien Vergé
0fff4e29e4
yamllint version 1.26.0
v1.26.0
2021-01-29 18:10:35 +01:00
Adrien Vergé
1b378ed5b9
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 .
2021-01-11 16:38:29 +01:00
Adrien Vergé
a3fc64d134
End support for Python 2
...
As planned and advertized, yamllint drops support for Python 2 on 2021.
2021-01-06 07:55:10 +01:00