From fa401759b81aaa3f0478ed8cf248a746ef946ea1 Mon Sep 17 00:00:00 2001 From: Amily Wu Date: Fri, 2 Aug 2024 10:41:51 -0500 Subject: [PATCH] Remove pytest from pre-commit --- tuning/.pre-commit-config.yaml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/tuning/.pre-commit-config.yaml b/tuning/.pre-commit-config.yaml index 19c2bcf..d401d4d 100644 --- a/tuning/.pre-commit-config.yaml +++ b/tuning/.pre-commit-config.yaml @@ -11,6 +11,14 @@ repos: - id: check-added-large-files files: ^tuning/ + - repo: https://github.com/psf/black + rev: 24.4.2 + hooks: + - id: black + name: run Black to format Python files + files: ^tuning/ + language_version: python3.10.12 + - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.11.1 hooks: @@ -20,20 +28,3 @@ repos: files: ^tuning/ args: ['--config-file', 'tuning/.mypy.ini'] types: [python] - - - repo: local - hooks: - - id: run-tuner-pytest - name: run pytest on specific tuning files - entry: python tuning/run_tuner_pytest.py - language: system - types: [python] - files: ^tuning/ - - - repo: https://github.com/psf/black - rev: 24.4.2 - hooks: - - id: black - name: run Black to format Python files - files: ^tuning/ - language_version: python3.10.12