Skip to content

Commit

Permalink
Ubah konfigurasi linting dan tes
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Mar 22, 2020
1 parent 05c56da commit 840fc88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 840fc88

Please sign in to comment.