summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-10-11 19:10:06 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2019-10-11 19:10:06 -0700
commitb85371a5bad023015f71ee25994ebfe5d6e2bc8d (patch)
tree94769f68584459d75158f2eaa5d3c99e73df222f
parent07b1e2e3f2dc186a4f53323c345b2f3a1cab6593 (diff)
downloadisort-b85371a5bad023015f71ee25994ebfe5d6e2bc8d.tar.gz
Add new scripts to eventually replace .env
-rw-r--r--scripts/clean.sh4
-rw-r--r--scripts/done.sh4
-rw-r--r--scripts/lint.sh8
-rw-r--r--scripts/test.sh4
4 files changed, 20 insertions, 0 deletions
diff --git a/scripts/clean.sh b/scripts/clean.sh
new file mode 100644
index 00000000..c44d72ac
--- /dev/null
+++ b/scripts/clean.sh
@@ -0,0 +1,4 @@
+#!/bin/bash -xe
+
+poetry run isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=100 --recursive isort/ test_isort.py
+poetry run black isort/ tests_isort.py -l 100
diff --git a/scripts/done.sh b/scripts/done.sh
new file mode 100644
index 00000000..d5dba124
--- /dev/null
+++ b/scripts/done.sh
@@ -0,0 +1,4 @@
+#!/bin/bash -xe
+
+./scripts/clean.sh
+./scripts/test.sh
diff --git a/scripts/lint.sh b/scripts/lint.sh
new file mode 100644
index 00000000..22107de1
--- /dev/null
+++ b/scripts/lint.sh
@@ -0,0 +1,8 @@
+#!/bin/bash -xe
+
+poetry run mypy --ignore-missing-imports isort/
+poetry run isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=100 --recursive --check --diff --recursive isort/ test_isort.py
+poetry run black --check -l 100 isort/ test_isort.py
+poetry run flake8 isort/ tests/ --max-line 100 --ignore F403,F401,W503
+poetry run safety check
+poetry run bandit -r isort/
diff --git a/scripts/test.sh b/scripts/test.sh
new file mode 100644
index 00000000..e9114ccc
--- /dev/null
+++ b/scripts/test.sh
@@ -0,0 +1,4 @@
+#!/bin/bash -xe
+
+./scripts/lint.sh
+poetry run pytest -s --cov={{cookiecutter.project_name}}/ --cov=tests --cov-report=term-missing ${@} --cov-report html