Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix falsy-dict-get-fallback ruff warnings #3077

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions archinstall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ def load_config() -> None:
def post_process_arguments(args: dict[str, Any]) -> None:
storage['arguments'] = args

if args.get('debug', False):
if args.get('debug'):
warn(f"Warning: --debug mode will write certain credentials to {storage['LOG_PATH']}/{storage['LOG_FILE']}!")

if args.get('plugin', None):
if args.get('plugin'):
path = args['plugin']
load_plugin(path)

Expand Down Expand Up @@ -317,7 +317,7 @@ def main() -> None:
OR straight as a module: python -m archinstall
In any case we will be attempting to load the provided script to be run from the scripts/ folder
"""
if not arguments.get('skip_version_check', False):
if not arguments.get('skip_version_check'):
_check_new_version()

script = arguments.get('script', None)
Expand Down
2 changes: 1 addition & 1 deletion archinstall/lib/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def from_config(cls, args_config: dict[str, Any]) -> 'ArchConfig':
if bootloader_config := args_config.get('bootloader', None):
arch_config.bootloader = Bootloader.from_arg(bootloader_config)

if args_config.get('uki', False) and not arch_config.bootloader.has_uki_support():
if args_config.get('uki') and not arch_config.bootloader.has_uki_support():
arch_config.uki = False

if audio_config := args_config.get('audio_config', None):
Expand Down
Loading