Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 26, 2024
1 parent 49bba39 commit ee3ce0b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions menuinst/_schema.py
Expand Up @@ -306,9 +306,9 @@ class UTTypeDeclarationModel(BaseModel):
.. entitlements: https://developer.apple.com/documentation/bundleresources/entitlements
"""
link_in_bundle: Optional[
Dict[constr(min_length=1), constr(regex=r"^(?!\/)(?!\.\./).*")]
] = None
link_in_bundle: Optional[Dict[constr(min_length=1), constr(regex=r"^(?!\/)(?!\.\./).*")]] = (
None
)
"""
Paths that should be symlinked into the shortcut app bundle.
It takes a mapping of source to destination paths. Destination paths must be
Expand Down
1 change: 1 addition & 0 deletions menuinst/platforms/base.py
@@ -1,5 +1,6 @@
"""
"""

import json
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions menuinst/platforms/linux.py
@@ -1,5 +1,6 @@
"""
"""

import os
import shlex
import shutil
Expand Down
1 change: 1 addition & 0 deletions menuinst/platforms/osx.py
@@ -1,5 +1,6 @@
"""
"""

import os
import platform
import plistlib
Expand Down
1 change: 1 addition & 0 deletions menuinst/platforms/win.py
@@ -1,5 +1,6 @@
"""
"""

import os
import shutil
import warnings
Expand Down
7 changes: 4 additions & 3 deletions menuinst/platforms/win_utils/registry.py
Expand Up @@ -13,6 +13,7 @@
Mnemonic: SetValueEx for "excalars" (scalars, named values)
"""

import winreg
from logging import getLogger

Expand Down Expand Up @@ -44,9 +45,9 @@ def register_file_extension(extension, identifier, command, icon=None, mode="use
command/: "the command to be executed when opening a file with this extension"
"""
with winreg.OpenKeyEx(
winreg.HKEY_LOCAL_MACHINE # HKLM
if mode == "system"
else winreg.HKEY_CURRENT_USER, # HKCU
(
winreg.HKEY_LOCAL_MACHINE if mode == "system" else winreg.HKEY_CURRENT_USER # HKLM
), # HKCU
r"Software\Classes",
) as key:
# First we associate an extension with a handler
Expand Down
1 change: 1 addition & 0 deletions tests/test_api.py
@@ -1,4 +1,5 @@
""""""

import json
import os
import plistlib
Expand Down
1 change: 1 addition & 0 deletions tests/test_conda.py
@@ -1,6 +1,7 @@
"""
Integration tests with conda
"""

import json
import os
import sys
Expand Down

0 comments on commit ee3ce0b

Please sign in to comment.