X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=Makefile;h=8cc3ca550d7cf84a52a40d9aa7b60e1f924abfea;hp=27f0ad022452f877dbb83e81a641acdebf496d60;hb=HEAD;hpb=1e017ab4b7503ad5d8c8b40161ede483cf1ec07c diff --git a/Makefile b/Makefile index 27f0ad0..6fb8a62 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,20 @@ # Makefile for the SST2K project +# +# SPDX-FileCopyrightText: (C) Eric S. Raymond +# SPDX-License-Identifier: BSD-2-Clause -VERS=$(shell sed $(MANDIR)/sst.6.gz sst.6: doc/sst.xml @@ -28,24 +31,27 @@ super-star-trek-$(VERS).tar.gz: $(SOURCES) sst.6 dist: sst-$(VERS).tar.gz -check: #pylint - cd test; $(MAKE) --quiet +check: pylint + @cd test >/dev/null; $(MAKE) --quiet + +reflow: + @black sst -COMMON_PYLINT = --rcfile=/dev/null --reports=n \ - --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \ - --dummy-variables-rgx='^_' -PYLINTOPTS = $(COMMON_PYLINT) --disable=C0103,C0111,C0113,C1001,C0301,C0302,C0321,C0325,C0326,C0410,C1801,E1120,R0101,R0902,R0903,R0911,R0912,R0914,R0915,R0916,R1705,R1711,R1714,R1716,R1723,R1724,R1706,R1710,W0110,W0123,W0141,W0232,W0312,W0603,W0611 pylint: - @pylint --output-format=parseable $(PYLINTOPTS) sst.py + @pylint --score=n sst clean: - rm -f sst.6 sst.html + rm -f sst.6 sst.html sst-doc.html rm -f *.6 MANIFEST index.html +NEWSVERSION=$(shell sed -n