Add a meta/check.sh script that runs unit tests before the syntax linters. Add unittest converters for the existing doctests.
13 lines
253 B
Bash
Executable File
13 lines
253 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cd $(dirname "$0")
|
|
|
|
# Run unit tests.
|
|
python -m unittest discover
|
|
|
|
# Check Python sources for Python 3 compatibility using pylint.
|
|
#
|
|
# Install pylint with 'pip install pylint'.
|
|
pylint --py3k --reports=no -- *.py cretonne isa
|
|
flake8 .
|