From 7cfb12704e88b5135e539dccba06975154a6dee7 Mon Sep 17 00:00:00 2001 From: Anderson Banihirwe Date: Wed, 18 Nov 2020 18:03:22 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20CI=20(#50)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 2 +- .pre-commit-config.yaml | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index da121ac..cee756b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,7 +27,7 @@ jobs: with: access_token: ${{ github.token }} - uses: actions/checkout@v2 - - uses: goanpeca/setup-miniconda@v1 + - uses: conda-incubator/setup-miniconda@v2 with: channels: conda-forge mamba-version: '*' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 096fa0b..834249d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v3.3.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -15,7 +15,7 @@ repos: - id: black - repo: https://github.com/keewis/blackdoc - rev: v0.2 + rev: v0.3 hooks: - id: blackdoc @@ -33,7 +33,17 @@ repos: hooks: - id: isort - - repo: https://github.com/prettier/prettier - rev: 2.1.2 + - repo: https://github.com/prettier/pre-commit + rev: 57f39166b5a5a504d6808b87ab98d41ebf095b46 hooks: - id: prettier + + - repo: https://github.com/nbQA-dev/nbQA + rev: 0.4.1 + hooks: + - id: nbqa-black + additional_dependencies: [black==20.8b1] + - id: nbqa-pyupgrade + additional_dependencies: [pyupgrade==2.7.3] + - id: nbqa-isort + additional_dependencies: [isort==5.6.4]