diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index aef5cd45..4cc50684 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,14 +16,14 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.9' + - uses: pre-commit/action@v3.0.0 + with: + extra_args: black --exclude version.py - name: Ensure latest pip run: | python -m pip install --upgrade pip - name: Install from repo in the test mode run: "pip install -e '.[dev]'" - - uses: pre-commit/action@v3.0.0 - with: - extra_args: black --exclude=version.py - name: Test with pytest run: | pip install pytest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc1c971a..704ab3c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,6 @@ repos: hooks: - id: black language_version: python3.9 - args: [ '--exclude=version.py' ] - repo: https://github.com/pycqa/flake8 rev: '3.9.2' hooks: diff --git a/requirements.txt b/requirements.txt index 1db6ea86..0d42fe91 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,6 +16,5 @@ optax pytest wandb pytest-cov -pytest-regressions bsuite tqdm