Skip to content

Commit

Permalink
Merge 4b25a2a into c3fd56c
Browse files Browse the repository at this point in the history
  • Loading branch information
camenpihor committed Jul 3, 2020
2 parents c3fd56c + 4b25a2a commit 6e1beb1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
@@ -0,0 +1,3 @@
[tool.black]
line-length = 100
exclude = 'tests/'
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 6e1beb1

Please sign in to comment.