mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +00:00
Add support for reading config from pyproject.toml
This commit is contained in:
parent
1d30b79ce1
commit
c609b69914
7 changed files with 72 additions and 5 deletions
|
|
@ -54,6 +54,7 @@ def test_parse_cli_config(optmanager, config_finder):
|
|||
[
|
||||
("tests/fixtures/config_files/cli-specified.ini", True),
|
||||
("tests/fixtures/config_files/no-flake8-section.ini", False),
|
||||
("tests/fixtures/config_files/no-flake8-section-pyproject.toml", False), # noqa: E501
|
||||
],
|
||||
)
|
||||
def test_is_configured_by(
|
||||
|
|
@ -188,6 +189,7 @@ def test_parse_uses_cli_config(optmanager):
|
|||
"tests/fixtures/config_files/cli-specified.ini",
|
||||
"tests/fixtures/config_files/cli-specified-with-inline-comments.ini",
|
||||
"tests/fixtures/config_files/cli-specified-without-inline-comments.ini", # noqa: E501
|
||||
"tests/fixtures/config_files/cli-specified-pyproject.toml",
|
||||
],
|
||||
)
|
||||
def test_parsed_configs_are_equivalent(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue