yamllint/tests
Adrien Vergé 9235c68496 cli: Restore ignoration of files passed as command-line arguments
Commit 2344380 "Cleanly skip broken symlinks that are ignored" fixed a
problem on symbolic links but also introduced a change on how ignored
files should be treated, depending on whether they're explicitely passed
as command-line arguments or not [^1].

This change is annoying for users that dynamically build the list of
files to pass as arguments, e.g. [^2]:

    find -name '*\.yaml' | xargs yamllint

The present commit adds unit tests for `yamllint [FILES]...` and
`yamllint --list-files [FILES]...`, that passed with previous version
1.34.0, and restore the behavior of this version.

As a result it also reverts the API change of commit 2344380 on
`yamllint.linter.run(stream, config)`.

[^1]: https://github.com/adrienverge/yamllint/issues/657#issuecomment-1948009315
[^2]: https://github.com/adrienverge/yamllint/issues/657#issuecomment-1948093680
2024-02-16 11:48:22 +01:00
..
rules truthy: Adapt forbidden values based on YAML version 2024-02-06 09:45:33 +01:00
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 2016-02-01 23:27:49 +01:00
__init__.py style: Apply new isort (I) rules to existing code 2024-01-08 07:27:06 +01:00
common.py cli: Cleanly skip broken symlinks that are ignored 2024-02-15 09:54:11 +01:00
test_cli.py cli: Restore ignoration of files passed as command-line arguments 2024-02-16 11:48:22 +01:00
test_config.py cli: Restore ignoration of files passed as command-line arguments 2024-02-16 11:48:22 +01:00
test_linter.py style: Apply new isort (I) rules to existing code 2024-01-08 07:27:06 +01:00
test_module.py style: Apply new isort (I) rules to existing code 2024-01-08 07:27:06 +01:00
test_parser.py style: Apply new isort (I) rules to existing code 2024-01-08 07:27:06 +01:00
test_spec_examples.py Undo ruff changes that conflict with flake8 2024-02-02 10:05:14 +01:00
test_syntax_errors.py refactor: Remove UTF-8 headers in Python files 2022-06-09 09:40:06 +02:00
test_yamllint_directives.py refactor: Remove UTF-8 headers in Python files 2022-06-09 09:40:06 +02:00