Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 17, 2024
1 parent 9e597be commit e0a456d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pylint/config/find_default_config_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ def _yield_default_files() -> Iterator[Path]:
if config_name.is_file():
if config_name.suffix == ".toml" and not _toml_has_config(config_name):
continue
if config_name.suffix in {".cfg", ".ini"} and not _cfg_or_ini_has_config(
config_name
):
if config_name.suffix in {
".cfg",
".ini",
} and not _cfg_or_ini_has_config(config_name):
continue

yield config_name.resolve()
Expand Down
5 changes: 4 additions & 1 deletion tests/config/test_find_default_config_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
from pytest import CaptureFixture

from pylint import config, testutils
from pylint.config.find_default_config_files import _cfg_or_ini_has_config, _toml_has_config
from pylint.config.find_default_config_files import (
_cfg_or_ini_has_config,
_toml_has_config,
)
from pylint.lint.run import Run


Expand Down

0 comments on commit e0a456d

Please sign in to comment.