mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-10 11:01:14 +00:00
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
ifneq (,)
|
|
.error This Makefile requires GNU Make.
|
|
endif
|
|
|
|
default: help
|
|
|
|
# Ensure additional Makefiles are present
|
|
MAKEFILES = Makefile.python
|
|
$(MAKEFILES): URL=https://raw.githubusercontent.com/devilbox/makefiles/master/$(@)
|
|
$(MAKEFILES):
|
|
@if ! (curl --fail -sS -o $(@) $(URL) || wget -O $(@) $(URL)); then \
|
|
echo "Error, curl or wget required."; \
|
|
echo "Exiting."; \
|
|
false; \
|
|
fi
|
|
include $(MAKEFILES)
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# Default configuration
|
|
# -------------------------------------------------------------------------------------------------
|
|
MYPY_ARGS = --strict --disable-error-code no-any-return
|
|
|
|
PYLINT_DIR = *.py
|
|
PYLINT_PIP_PKGS = yamllint
|
|
PYLINT_ARGS = --disable=invalid-name
|
|
|
|
PYCODE_ARGS = --max-line-length=100
|
|
|
|
BLACK_LINT_ARGS = -l 100 --check --diff
|
|
BLACK_FIX_ARGS = -l 100
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
# Default Target
|
|
# -------------------------------------------------------------------------------------------------
|
|
help:
|
|
@echo "make lint # Lint Python sources"
|