Skip to content

Commit

Permalink
Merge f2c111e into 87a49e8
Browse files Browse the repository at this point in the history
  • Loading branch information
camenpihor committed Jul 3, 2020
2 parents 87a49e8 + f2c111e commit ad09805
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/create_testenv.sh
Expand Up @@ -21,7 +21,7 @@ if [[ $* != *--global* ]]; then
fi
fi

conda install --yes pip pytest numpy matplotlib pandas patsy statsmodels
conda install --yes pip pytest numpy matplotlib pandas patsy statsmodels black

pip install --upgrade pip

Expand Down
5 changes: 4 additions & 1 deletion scripts/lint.sh
@@ -1,7 +1,10 @@
#!/bin/bash

set -ex # fail on first error, print commands

echo "Checking code style with black...."
python -m black bambi --line-length=100 --target-version=py37 --exclude=tests/ --check
echo "Success!"

echo "Checking code style with pylint..."
python -m pylint bambi/
echo "Success!"
5 changes: 1 addition & 4 deletions scripts/test.sh
@@ -1,10 +1,7 @@
#!/bin/bash

set -ex # fail on first error, print commands

echo "Checking code style with pylint..."
python -m pylint bambi/
echo "Success!"
scripts/lint.sh

echo "Running unit tests..."
python -m pytest -vx --cov=bambi
Expand Down

0 comments on commit ad09805

Please sign in to comment.