mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-19 23:41:15 +00:00
Add PHP module dirs
This commit is contained in:
38
php_modules/Makefile
Normal file
38
php_modules/Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user