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

Extend the mypy checks #2120

Merged
merged 5 commits into from
Oct 3, 2023
Merged

Conversation

svartkanin
Copy link
Collaborator

This will add additional mypy validation

@svartkanin svartkanin requested a review from Torxed as a code owner September 27, 2023 10:48
@@ -237,7 +241,7 @@ def generate_key_files(self):
gen_enc_file = self._disk_encryption.should_generate_encryption_file(part_mod)

luks_handler = Luks2(
part_mod.dev_path,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only one I'm a bit worried about, but it's probably fine? dev_path can cause an exception, and that's maybe something we want to happen?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the code and at this point the partition must probably have a device path

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In guided.py this is true, as the call comes after some sanity checks and stuff.
But if they were to copy this and run it super quick after the formatting step - I wonder if it might not properly report the right data?
We don't have any sanity checks in Luks2 directly so this might get dicy?

@svartkanin
Copy link
Collaborator Author

@Torxed if you're planning on a new release before the next ISO then lets wait with this not to break anything

@Torxed
Copy link
Member

Torxed commented Sep 27, 2023

@Torxed if you're planning on a new release before the next ISO then lets wait with this not to break anything

Good judgement call! I'll release one today first, and then merge in :)

@svartkanin svartkanin merged commit edbc135 into archlinux:master Oct 3, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants