File: stylecheck.mk

package info (click to toggle)
dput 1.0.3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 852 kB
  • sloc: python: 10,834; sh: 150; makefile: 50
file content (50 lines) | stat: -rw-r--r-- 1,463 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# stylecheck.mk
# Part of ‘dput’, a Debian package upload toolkit.
#
# This is free software, and you are welcome to redistribute it under
# certain conditions; see the end of this file for copyright
# information, grant of license, and disclaimer of warranty.

# Makefile rules for static style checks.

MODULE_DIR := $(CURDIR)

PYTHON_PYCODESTYLE ?= $(PYTHON) ${PYTHON_OPTS} -m pycodestyle
PYTHON_PYCODESTYLE_OPTS ?=

PYTHON_PYDOCSTYLE ?= $(PYTHON) ${PYTHON_OPTS} -m pydocstyle
PYTHON_PYDOCSTYLE_OPTS ?=

PYTHON_PYLINT ?= $(PYTHON) ${PYTHON_OPTS} -m pylint
PYTHON_PYLINT_OPTS ?=


.PHONY: stylecheck
stylecheck: stylecheck-pycodestyle

.PHONY: stylecheck-pycodestyle
stylecheck-pycodestyle:
	$(PYTHON_PYCODESTYLE) ${PYTHON_PYCODESTYLE_OPTS} ${python_modules}

.PHONY: stylecheck-pydocstyle
stylecheck-pydocstyle:
	$(PYTHON_PYDOCSTYLE) ${PYTHON_PYDOCSTYLE_OPTS} ${python_modules}

.PHONY: stylecheck-pylint
stylecheck-pylint:
	$(PYTHON_PYLINT) ${PYTHON_PYLINT_OPTS} ${python_modules}


# Copyright © 2015–2019 Ben Finney <bignose@debian.org>
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 3 of that license or any later version.
# No warranty expressed or implied. See the file ‘LICENSE.GPL-3’ for details.


# Local Variables:
# coding: utf-8
# mode: makefile
# End:
# vim: fileencoding=utf-8 filetype=make :