From a607093b555936395ab773d0da51eb300d266a51 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Wed, 29 Jan 2025 07:47:08 -0700 Subject: [PATCH] Fixes mypy issue and removes redundant pre-commit check --- .pre-commit-config.yaml | 6 ------ anaconda_packaging_utils/storage/config_data.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dd06d43..99f30da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,12 +59,6 @@ repos: # `pre-commit` no longer provides a hook for `pytest`, by design - repo: local hooks: - - id: pytest - language: system - name: pytest - always_run: true - pass_filenames: false - entry: make test - id: pytest-cov language: system name: pytest-cov diff --git a/anaconda_packaging_utils/storage/config_data.py b/anaconda_packaging_utils/storage/config_data.py index 07b6924..5f404dd 100644 --- a/anaconda_packaging_utils/storage/config_data.py +++ b/anaconda_packaging_utils/storage/config_data.py @@ -21,7 +21,7 @@ ## Constants ## CONFIG_FILE_NAME: Final[str] = ".anaconda-packaging-utils-config.yaml" # Note that `mypy` takes issue with `Path.home()` for returning "Any" -CONFIG_FILE_DEFAULT_PATH: Final[Path] = Path.home() / Path(CONFIG_FILE_NAME) # type: ignore +CONFIG_FILE_DEFAULT_PATH: Final[Path] = Path.home() / Path(CONFIG_FILE_NAME) @no_type_check