summaryrefslogtreecommitdiff
path: root/pylint/config/__init__.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-10-24 18:54:38 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-10-26 06:48:45 +0200
commitd3fd7f0f5292be31b92b431b6c9c9d6c05e8dd64 (patch)
treea66eb1bfd10c26ef77ceed96ef832ee13ac332bc /pylint/config/__init__.py
parentb6d154e8bbc32c3d71a1bfceed467c8614e0e4f1 (diff)
downloadpylint-git-d3fd7f0f5292be31b92b431b6c9c9d6c05e8dd64.tar.gz
Create a DEFAULT_PYLINT_HOME constant and upgrade help text
Diffstat (limited to 'pylint/config/__init__.py')
-rw-r--r--pylint/config/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pylint/config/__init__.py b/pylint/config/__init__.py
index 44e4131e7..f9c393ef7 100644
--- a/pylint/config/__init__.py
+++ b/pylint/config/__init__.py
@@ -40,8 +40,6 @@ import pickle
import sys
from datetime import datetime
-import platformdirs
-
from pylint.config.configuration_mixin import ConfigurationMixIn
from pylint.config.find_default_config_files import find_default_config_files
from pylint.config.man_help_formatter import _ManHelpFormatter
@@ -49,6 +47,7 @@ from pylint.config.option import Option
from pylint.config.option_manager_mixin import OptionsManagerMixIn
from pylint.config.option_parser import OptionParser
from pylint.config.options_provider_mixin import OptionsProviderMixIn, UnsupportedAction
+from pylint.constants import DEFAULT_PYLINT_HOME
from pylint.utils import LinterStats
__all__ = [
@@ -70,7 +69,7 @@ if "PYLINTHOME" in os.environ:
elif USER_HOME == "~":
PYLINT_HOME = ".pylint.d"
else:
- PYLINT_HOME = platformdirs.user_cache_dir("pylint")
+ PYLINT_HOME = DEFAULT_PYLINT_HOME
# The spam prevention is due to pylint being used in parallel by
# pre-commit, and the message being spammy in this context
# Also if you work with old version of pylint that recreate the