Skip to content

Commit f84a10c

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent 7112fac commit f84a10c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/diffpy/utils/tools.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import importlib.metadata
22
import json
33
import os
4+
import warnings
45
from copy import copy
56
from pathlib import Path
6-
import warnings
77

88

99
def clean_dict(obj):
@@ -115,7 +115,9 @@ def get_user_info(args=None):
115115
global_config = load_config(Path().home() / "diffpyconfig.json")
116116
local_config = load_config(Path().cwd() / "diffpyconfig.json")
117117
if global_config is None and local_config is None:
118-
warnings.warn("No global config file, please follow prompts below. For more information, refer to www.diffpy.org/diffpy.utils/")
118+
warnings.warn(
119+
"No global config file, please follow prompts below. For more information, refer to www.diffpy.org/diffpy.utils/"
120+
)
119121
config_bool = _create_global_config(args)
120122
global_config = load_config(Path().home() / "diffpyconfig.json")
121123
config = _sorted_merge(clean_dict(global_config), clean_dict(local_config), clean_dict(args))

0 commit comments

Comments
 (0)