summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-10-13 01:27:21 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2019-10-13 01:27:21 -0700
commitdad13c0b7bd849ff6644f93a0254cc3a56e79590 (patch)
treed242a5956b197a5e436c6cc03eaddbe9ed7088b9 /scripts
parent49b41a5112ca3e8305dc4836e871ad9ab7f66792 (diff)
downloadisort-dad13c0b7bd849ff6644f93a0254cc3a56e79590.tar.gz
Move tests into tests subdirectory
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clean.sh4
-rwxr-xr-xscripts/lint.sh4
-rwxr-xr-xscripts/test.sh2
3 files changed, 5 insertions, 5 deletions
diff --git a/scripts/clean.sh b/scripts/clean.sh
index 7969592f..d67bbd3e 100755
--- a/scripts/clean.sh
+++ b/scripts/clean.sh
@@ -1,4 +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/ test_isort.py -l 100
+poetry run isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=100 --recursive isort/ tests/
+poetry run black isort/ tests/ -l 100
diff --git a/scripts/lint.sh b/scripts/lint.sh
index 3698d742..e252401e 100755
--- a/scripts/lint.sh
+++ b/scripts/lint.sh
@@ -1,8 +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 isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=100 --recursive --check --diff --recursive isort/ tests/
+poetry run black --check -l 100 isort/ tests/
poetry run flake8 isort/ tests/ --max-line 100 --ignore F403,F401,W503,E203
poetry run safety check
poetry run bandit -r isort/
diff --git a/scripts/test.sh b/scripts/test.sh
index 183efcf4..5a9e8521 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -1,4 +1,4 @@
#!/bin/bash -xe
./scripts/lint.sh
-poetry run pytest -s --cov=isort/ --cov=test_isort.py --cov-report=term-missing ${@} --cov-report html
+poetry run pytest tests/ -s --cov=isort/ --cov=tests/ --cov-report=term-missing ${@} --cov-report html