Skip to content

Commit

Permalink
81 linting action (#82)
Browse files Browse the repository at this point in the history
* Added lint workflow

* trigger on all PR and commit

* setting versions

* on push

* black --check

* adding more settings

* Dont need to build on commit

* Now check linting passes
  • Loading branch information
manny405 authored Aug 26, 2022
1 parent fbf2dc9 commit 413cb58
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: build

on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint

on:
# Trigger the workflow on push or pull request,
push:
pull_request:

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install Python dependencies
run: pip install black==22.6.0

- name: Run linters
uses: wearerequired/lint-action@v2
with:
black: true
black_args: "sapai/*.py tests/*.py --check"
commit: false
continue_on_error: false
17 changes: 9 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
from distutils.core import setup

setup(
name='sapai',
version='0.1.0',
packages=['sapai',
],
#find_packages(exclude=[]),
install_requires=['numpy', 'keras','torch', 'graphviz'],
data_files=[],
)
name="sapai",
version="0.1.0",
packages=[
"sapai",
],
# find_packages(exclude=[]),
install_requires=["numpy", "keras", "torch", "graphviz"],
data_files=[],
)

0 comments on commit 413cb58

Please sign in to comment.