File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929from usethis ._tool .config import ConfigSpec , NoConfigValue
3030from usethis ._tool .pre_commit import PreCommitConfig
3131from usethis ._tool .rule import RuleConfig
32- from usethis .errors import FileDecodeError
32+ from usethis .errors import FileConfigError
3333
3434if TYPE_CHECKING :
3535 from pathlib import Path
@@ -109,7 +109,7 @@ def is_used(self) -> bool:
109109 2. Whether any of the tool's managed files are in the project.
110110 3. Whether any of the tool's managed config file sections are present.
111111 """
112- decode_err_by_name : dict [str , FileDecodeError ] = {}
112+ decode_err_by_name : dict [str , FileConfigError ] = {}
113113 _is_used = False
114114
115115 _is_used = any (
@@ -119,13 +119,13 @@ def is_used(self) -> bool:
119119 if not _is_used :
120120 try :
121121 _is_used = self .is_declared_as_dep ()
122- except FileDecodeError as err :
122+ except FileConfigError as err :
123123 decode_err_by_name [err .name ] = err
124124
125125 if not _is_used :
126126 try :
127127 _is_used = self .is_config_present ()
128- except FileDecodeError as err :
128+ except FileConfigError as err :
129129 decode_err_by_name [err .name ] = err
130130
131131 for name , decode_err in decode_err_by_name .items ():
You can’t perform that action at this time.
0 commit comments