Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 114 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,121 @@
.coverage
*.pyc
*.cache/
# Project Ignore
.idea/
BLESS.egg-info/
htmlcov/
libs/
publish/
venv/
aws_lambda_libs/
lambda_configs/

# Created by https://www.gitignore.io/api/python

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

### Python Patch ###
.venv/


# End of https://www.gitignore.io/api/python
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ matrix:
- python: "3.6"

install:
- pip install coveralls
- pip install pipenv
- make develop

before_script:
Expand All @@ -19,8 +19,8 @@ script:
- make coverage

after_success:
- coveralls
- coverage report
- pipenv run coveralls
- pipenv run coverage report

notifications:
email:
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
test: lint
@echo "--> Running Python tests"
py.test tests || exit 1
pipenv run py.test tests || exit 1
@echo ""

develop:
@echo "--> Installing dependencies"
pip install -r requirements.txt
pip install "file://`pwd`#egg=bless[tests]"
pipenv install
pipenv install --dev
@echo ""

dev-docs:
Expand All @@ -20,13 +20,13 @@ clean:

lint:
@echo "--> Linting Python files"
PYFLAKES_NODOCTEST=1 flake8 bless
PYFLAKES_NODOCTEST=1 pipenv run flake8 bless
@echo ""

coverage:
@echo "--> Running Python tests with coverage"
coverage run --branch --source=bless -m py.test tests || exit 1
coverage html
pipenv run coverage run --branch --source=bless -m py.test tests || exit 1
pipenv run coverage html
@echo ""

publish:
Expand Down
17 changes: 17 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
bless = {editable = true, path = "."}

[dev-packages]
coverage = "*"
flake8 = "*"
pytest = "*"
pytest-mock = "*"
coveralls = "*"

[requires]
python_version = "3.6"
Loading