mirror of
https://github.com/michaelharms/comcrawl.git
synced 2021-09-27 00:43:48 +03:00
33 lines
618 B
Bash
33 lines
618 B
Bash
#!/usr/bin/bash
|
|
set -eu pipefail
|
|
set +e
|
|
|
|
FAILURE=false
|
|
|
|
echo "poetry check"
|
|
poetry check
|
|
|
|
echo "pylint"
|
|
poetry run pylint --ignore=snapshots comcrawl tests || FAILURE=true
|
|
|
|
echo "pycodestyle"
|
|
poetry run pycodestyle --exclude=snapshots comcrawl tests || FAILURE=true
|
|
|
|
echo "pydocstyle"
|
|
poetry run pydocstyle comcrawl || FAILURE=true
|
|
|
|
echo "mypy"
|
|
poetry run mypy comcrawl tests || FAILURE=true
|
|
|
|
echo "bandit"
|
|
poetry run bandit -ll -r comcrawl tests || FAILURE=true
|
|
|
|
echo "shellcheck"
|
|
shellcheck scripts/*.sh || FAILURE=true
|
|
|
|
if [ "$FAILURE" = true ]; then
|
|
echo "Linting failed"
|
|
exit 1
|
|
fi
|
|
echo "Linting passed"
|
|
exit 0 |