]> jfr.im git - irc/weechat/qweechat.git/commitdiff
Add Makefile
authorSébastien Helleu <redacted>
Sat, 13 Nov 2021 15:50:21 +0000 (16:50 +0100)
committerSébastien Helleu <redacted>
Sat, 13 Nov 2021 15:50:21 +0000 (16:50 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..28f56ea
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+#
+# Copyright (C) 2021 Sébastien Helleu <flashcode@flashtux.org>
+#
+# This file is part of QWeeChat, a Qt remote GUI for WeeChat.
+#
+# QWeeChat is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# QWeeChat is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with QWeeChat.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+all: check
+
+check: lint test
+
+lint: flake8 pylint bandit
+
+flake8:
+       flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
+       flake8 . --count --exit-zero --max-complexity=10 --statistics
+
+pylint:
+       pylint qweechat
+
+bandit:
+       bandit -r qweechat