Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#184)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/psf/black: 23.12.1 → 24.4.0](psf/black@23.12.1...24.4.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: jaimergp <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and jaimergp authored Apr 26, 2024
1 parent 346b388 commit c15fe2a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:
autofix_prs: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -25,7 +25,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.0
hooks:
- id: black
args: [--skip-string-normalization]
Expand Down
6 changes: 3 additions & 3 deletions menuinst/_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ class UTTypeDeclarationModel(BaseModel):
See `the entitlements docs <https://developer.apple.com/documentation/bundleresources/entitlements>`__
for a full list of possible values.
"""
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
"""

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

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

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

import os
import shutil
import warnings
Expand Down
7 changes: 4 additions & 3 deletions menuinst/platforms/win_utils/registry.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""""""

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

import json
import os
import sys
Expand Down

0 comments on commit c15fe2a

Please sign in to comment.