Skip to content

Commit

Permalink
chore: fixed scripts for poetry #58
Browse files Browse the repository at this point in the history
  • Loading branch information
itisallgood committed Mar 23, 2020
1 parent 796bb6b commit 545a330
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
9 changes: 0 additions & 9 deletions apps/core/scripts/poetry_scripts.py

This file was deleted.

9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "django-saas-boilerplate"
version = "0.1.0"
description = "A Django + django-rest-framework + Heroku + SaaS application boilerplate"
authors = ["Pixelpassion"]
packages = [
{ include="scripts", from="." },
]

[tool.poetry.dependencies]
python = ">=3.7,<3.8"
Expand Down Expand Up @@ -53,8 +56,10 @@ pytest-env = "^0.6.2"


[tool.poetry.scripts]
create-coverage = "apps.core.scripts:coverage_report"
codecov-report = "apps.core.scripts:coverage_xml"
go-docker = "scripts.poetry_scripts:go_docker"
create-coverage = "scripts.poetry_scripts:coverage_report"
check-coverage = "scripts.poetry_scripts:check_coverage"
codecov-report = "scripts.poetry_scripts:coverage_xml"

[build-system]
requires = ["poetry>=0.12"]
Expand Down
Empty file added scripts/__init__.py
Empty file.
17 changes: 17 additions & 0 deletions scripts/poetry_scripts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os


def go_docker():
os.system("docker-compose up -d")


def coverage_report():
os.system("coverage run -m py.test")


def coverage_xml():
os.system("coverage xml")


def check_coverage():
os.system("coverage report --fail-under=95")

0 comments on commit 545a330

Please sign in to comment.