Skip to content

Commit 2379a62

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent 0a59a0b commit 2379a62

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/diffpy/utils/tools.py

Lines changed: 6 additions & 4 deletions
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,9 +115,11 @@ 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. "
119-
"The global config file is very important in crediting your work in the future. "
120-
"For more information, please refer to www.diffpy.org/diffpy.utils/examples/toolsexample.html")
118+
warnings.warn(
119+
"No global config file, please follow prompts below. "
120+
"The global config file is very important in crediting your work in the future. "
121+
"For more information, please refer to www.diffpy.org/diffpy.utils/examples/toolsexample.html"
122+
)
121123
config_bool = _create_global_config(args)
122124
global_config = load_config(Path().home() / "diffpyconfig.json")
123125
config = _sorted_merge(clean_dict(global_config), clean_dict(local_config), clean_dict(args))

0 commit comments

Comments
 (0)