Skip to content

Commit

Permalink
Set up repo
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhly committed Aug 29, 2020
1 parent aefd471 commit 5edd6f6
Show file tree
Hide file tree
Showing 15 changed files with 1,765 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length=120
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
pull_request:
branches: [master]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

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

- name: Install pipenv
uses: dschep/install-pipenv-action@v1

- name: Install CI dependencies
run: |
pipenv run install-ci-deps
- name: Run linters
run: |
pipenv run pydocstyle setup.py src tests
pipenv run flake8 setup.py src tests
pipenv run mypy src
pipenv run black --check --diff --line-length=120 setup.py src tests
- name: Run unit tests
run: |
pipenv run pytest
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# notebook checkpoints
.ipynb_checkpoints

# python cache files
*__pycache__*
.pytest_cache

# log files
log/*
*.log

# vim temp files
.~
*.swp
*.swo

# other temps files
.DS_Store
.tmp/*

# sphinx stuff
_build
make.bat

# dist stuff
build
dist
*.egg
*.egg-info
2 changes: 2 additions & 0 deletions .pydocstyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pydocstyle]
ignore=D401,D203,D213
Loading

0 comments on commit 5edd6f6

Please sign in to comment.