Skip to content

Commit

Permalink
Run code checkers in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcam committed Apr 24, 2024
1 parent c61f59e commit 48d2abc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 100
ignore = E251, E265, E261, E302, W503
per-file-ignores = __init__.py:F401
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ jobs:
- name: Run pytest
run: |
poetry run pytest
- name: Run code style checker
run: |
poetry run flake8
- name: Run code formatter
run: |
poetry run black --check src
3 changes: 0 additions & 3 deletions tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import pytest

import npg_porch_cli.api as porchApi


def test_addition():

assert porchApi.add_two(1, 2) == 3

0 comments on commit 48d2abc

Please sign in to comment.