Add PHP module dirs

This commit is contained in:
cytopia
2022-11-29 04:44:19 +01:00
parent 40c6d485cc
commit 52aa0d4d42
310 changed files with 5087 additions and 0 deletions

38
php_modules/Makefile Normal file
View 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"