This commit is contained in:
emdee 2024-02-11 07:50:55 +00:00
parent c7580c3a35
commit 60c48bcb6a
12 changed files with 652 additions and 532 deletions

View file

@ -16,12 +16,22 @@
# You should have received a copy of the GNU General Public License
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
#
# to run the tests, run make PASS=controllerpassword test
PREFIX=/usr/local
PYTHON_EXE_MSYS=${PREFIX}/bin/python3.sh
PIP_EXE_MSYS=${PREFIX}/bin/pip3.sh
LOCAL_DOCTEST=${PREFIX}/bin/toxcore_run_doctest3.bash
DOCTEST=${LOCAL_DOCTEST}
PYTHON_MINOR=`python3 --version 2>&1 | sed -e 's@^.* @@' -e 's@\.[0-9]*$$@@'`
MOD=qweechat
all: check
check: lint test
sh ${PYTHON_EXE_MSYS} -c "import ${MOD}"
lint: flake8 pylint bandit
lint:: flake8 pylint bandit
flake8:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
@ -32,3 +42,8 @@ pylint:
bandit:
bandit -r qweechat
install::
# we install --nodeps because pip is installing stuff we already have in the OS
${PYTHON_EXE_MSYS} setup.py install \
--prefix ${PREFIX}/