Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneyan committed Aug 30, 2020
0 parents commit 98acd33
Show file tree
Hide file tree
Showing 27 changed files with 2,737 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[report]
omit=src/utils/*
fail_under=100
show_missing=True
15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# .github/workflows/tests.yml
name: Tests
on: push
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.8
architecture: x64
- run: make setup
- run: make check
- run: bash <(curl -s https://codecov.io/bash)
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
.idea/
.ipynb_checkpoints/
notebooks/
readme.txt
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
setup:
pip install poetry
poetry install

clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +

clean-test:
rm -f .coverage
rm -f .coverage.*

clean: clean-pyc clean-test

test: clean
poetry run py.test tests --cov-config=.coveragerc --cov=src

mypy:
poetry run mypy src

lint:
poetry run pylint src -j 4 --reports=y

check: test lint mypy
892 changes: 892 additions & 0 deletions data/titanic.csv

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Global options

[mypy]
python_version = 3.8
ignore_missing_imports = True
Loading

0 comments on commit 98acd33

Please sign in to comment.