summaryrefslogtreecommitdiff
path: root/pylint/config/config_initialization.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-12-28 16:28:54 +0100
committerGitHub <noreply@github.com>2021-12-28 16:28:54 +0100
commitefe59ca44b9ed350c9790d79a39a7343af5e7ea7 (patch)
tree20ab2724681990fbf1d391158421a94efbed5548 /pylint/config/config_initialization.py
parent8367a571203a3cf0242394e21a24a67566de44f8 (diff)
downloadpylint-git-efe59ca44b9ed350c9790d79a39a7343af5e7ea7.tar.gz
Make functional tests always go through config initialization (#5594)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylint/config/config_initialization.py')
-rw-r--r--pylint/config/config_initialization.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/config/config_initialization.py b/pylint/config/config_initialization.py
index 46031bae3..d03822030 100644
--- a/pylint/config/config_initialization.py
+++ b/pylint/config/config_initialization.py
@@ -2,6 +2,7 @@
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
import sys
+from pathlib import Path
from typing import TYPE_CHECKING, List, Optional, Union
from pylint import reporters
@@ -15,7 +16,7 @@ def _config_initialization(
linter: "PyLinter",
args_list: List[str],
reporter: Union[reporters.BaseReporter, reporters.MultiReporter, None] = None,
- config_file: Optional[str] = None,
+ config_file: Union[None, str, Path] = None,
verbose_mode: Optional[bool] = None,
) -> List[str]:
"""Parse all available options, read config files and command line arguments and