mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 11:22:58 +00:00
linting
This commit is contained in:
@@ -5,7 +5,7 @@ Copyright (c) 2024, deadc0de6
|
|||||||
default config
|
default config
|
||||||
"""
|
"""
|
||||||
|
|
||||||
default_config = """config:
|
DEFAULT_CONFIG = """config:
|
||||||
backup: true
|
backup: true
|
||||||
banner: true
|
banner: true
|
||||||
create: true
|
create: true
|
||||||
@@ -15,4 +15,4 @@ default_config = """config:
|
|||||||
link_on_import: nolink
|
link_on_import: nolink
|
||||||
longkey: false
|
longkey: false
|
||||||
dotfiles:
|
dotfiles:
|
||||||
profiles:"""
|
profiles:"""
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ from dotdrop.cfg_aggregator import CfgAggregator
|
|||||||
from dotdrop.action import Action
|
from dotdrop.action import Action
|
||||||
from dotdrop.utils import uniq_list, debug_list, debug_dict
|
from dotdrop.utils import uniq_list, debug_list, debug_dict
|
||||||
from dotdrop.exceptions import YamlException, OptionsException
|
from dotdrop.exceptions import YamlException, OptionsException
|
||||||
from dotdrop.config import default_config
|
from dotdrop.config import DEFAULT_CONFIG
|
||||||
|
|
||||||
ENV_PROFILE = 'DOTDROP_PROFILE'
|
ENV_PROFILE = 'DOTDROP_PROFILE'
|
||||||
ENV_CONFIG = 'DOTDROP_CONFIG'
|
ENV_CONFIG = 'DOTDROP_CONFIG'
|
||||||
@@ -153,7 +153,7 @@ class Options(AttrMonitor):
|
|||||||
|
|
||||||
if self.args['gencfg']:
|
if self.args['gencfg']:
|
||||||
# print config and exit
|
# print config and exit
|
||||||
print(default_config)
|
print(DEFAULT_CONFIG)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if args:
|
if args:
|
||||||
|
|||||||
Reference in New Issue
Block a user