From 840fc88d9d8c3ef03b9ff73710954dd3094c311a Mon Sep 17 00:00:00 2001 From: Sage Muhammad Abdullah Date: Sun, 22 Mar 2020 07:35:16 +0700 Subject: [PATCH] Ubah konfigurasi linting dan tes --- .github/workflows/lint.yml | 4 ++-- .github/workflows/test.yml | 3 +++ .pre-commit-config.yaml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f17e541..1c2e55f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,8 +31,8 @@ jobs: - name: Lint with flake8 run: | pip install flake8 - flake8 kbbi tests --count --ignore=E203 --show-source --statistics + flake8 kbbi tests --count --ignore=E203,W503 --show-source --statistics - name: Lint with isort run: | pip install isort - isort -c -df -rc -o pytest . + isort -c -df -rc -o pytest -p kbbi . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23e828f..c8aa387 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,9 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - name: Test with pytest + env: + KBBI_POSEL: ${{ secrets.KBBI_POSEL }} + KBBI_SANDI: ${{ secrets.KBBI_SANDI }} run: | pip install pytest pytest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5dbefa..30e9544 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,9 +9,10 @@ repos: rev: "3.7.9" hooks: - id: flake8 - args: ["--ignore=E203"] + args: ["--ignore=E203,W503"] - repo: https://github.com/timothycrosley/isort rev: "4.3.21-2" hooks: - id: isort + args: ["-o=pytest", "-p=kbbi"]