Skip to content

Commit

Permalink
edit the CI for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Atashnezhad committed Jun 25, 2023
1 parent 3c6e3c4 commit db3f546
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- master
- '*'
- 'feature/*'
tags:
- "v*.*.*"
Expand All @@ -32,6 +31,9 @@ jobs:
- name: Install dependencies
run: make install_requirements

- name: lint
run: make lint_flake8

- name: Run tests
run: make test-coverage

Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ run-flake8:
flake8 neural_network_model/*.py
#flake8 tests/*.py

# lint
.PHONY: lint_flake8
lint:
@echo "flake8..."
@flake8 neural_network_model/*.py
@flake8 tests/*.py


# run black on all python files in the src folder
.PHONY: run-black
run-black:
Expand Down

0 comments on commit db3f546

Please sign in to comment.