Upgrade dependency versions

This commit is contained in:
muzing 2024-08-29 07:34:19 +08:00
parent 6a5f3c8370
commit c5e908b78b
4 changed files with 486 additions and 438 deletions

View File

@ -10,7 +10,7 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- repo: https://github.com/psf/black-pre-commit-mirror - repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2 rev: 24.8.0
hooks: hooks:
- id: black - id: black
args: ["--config", "pyproject.toml"] args: ["--config", "pyproject.toml"]
@ -22,6 +22,6 @@ repos:
args: [--settings-path, "./pyproject.toml"] args: [--settings-path, "./pyproject.toml"]
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5 rev: v0.6.2
hooks: hooks:
- id: ruff - id: ruff

913
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,7 @@ optional = true
pre-commit = "^3.5.0" pre-commit = "^3.5.0"
black = "^24.4.0" black = "^24.4.0"
isort = "^5.13.0" isort = "^5.13.0"
ruff = "^0.5.0" ruff = ">=0.5.0, <1.0.0"
mypy = "^1.10.0" mypy = "^1.10.0"
pyinstaller = "^6.7.0" pyinstaller = "^6.7.0"
types-pyyaml = "^6.0.12.12" types-pyyaml = "^6.0.12.12"

View File

@ -36,10 +36,7 @@ class FilePathValidator:
path = Path(script_path) path = Path(script_path)
if not (path.exists() and path.is_file() and os.access(script_path, os.R_OK)): return path.exists() and path.is_file() and os.access(script_path, os.R_OK)
return False
return True
@classmethod @classmethod
def validate_icon(cls, icon_path: Union[str, Path]) -> bool: def validate_icon(cls, icon_path: Union[str, Path]) -> bool: