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 Apr 21, 2022
1 parent da2da8b commit 05e0fbf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pylint/lint/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@
import sys
import warnings
from collections import defaultdict
from typing import Iterator, List
from collections.abc import Sequence
from pathlib import Path
from typing import Any
from typing import Iterator, List

from pylint import config
from pylint.config.config_initialization import _config_initialization
from pylint.config.exceptions import ArgumentPreprocessingError
from pylint.config.utils import _preprocess_options
from pylint.constants import full_version
from pylint.lint.base_options import _make_run_options
from pylint.lint.pylinter import PyLinter
from pylint.reporters.base_reporter import BaseReporter
Expand Down Expand Up @@ -269,7 +267,7 @@ def _discover_files(files_or_modules: Sequence[str]) -> Iterator[str]:
if os.path.isdir(something) and not os.path.isfile(
os.path.join(something, "__init__.py")
):
skip_subtrees: List[str] = []
skip_subtrees: list[str] = []
for root, _, files in os.walk(something):
if any(root.startswith(s) for s in skip_subtrees):
# Skip subtree of already discovered package.
Expand Down

0 comments on commit 05e0fbf

Please sign in to comment.