aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbulve-ad <78788030+bulve-ad@users.noreply.github.com>2024-08-21 15:51:03 +0100
committerGitHub <noreply@github.com>2024-08-21 15:51:03 +0100
commitce76bbb2b32b58a93d88db4abdb1bbfbf27243ea (patch)
treeb8e77c62b6a2d50ab04215beb54055d14210a423 /Makefile
parentc8e94530b65d6807b2b9bb246a542963839cce9d (diff)
parentd01d3bed939d7a17ea2205af502baeeb35510b5c (diff)
downloadde-project-bentley-ce76bbb2b32b58a93d88db4abdb1bbfbf27243ea.tar.gz
de-project-bentley-ce76bbb2b32b58a93d88db4abdb1bbfbf27243ea.zip
Merge branch 'development' into feature/transform_lambda
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile80
1 files changed, 0 insertions, 80 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 077cd98..0000000
--- a/Makefile
+++ /dev/null
@@ -1,80 +0,0 @@
-##############################################
-# #
-# MAKEFILE TO BUILD THE PROJECT #
-# #
-##############################################
-
-PROJECT_NAME = de-project-bentley
-REGION = eu-west-2
-PYTHON_INTERPRETER = python
-WD=$(shell pwd)
-PYTHONPATH=${WD}
-SHELL := /bin/bash
-PROFILE = default
-PIP:=pip
-
-## PYTHON INTERPRETER ENVIRONMENT
-create-environment:
- @echo ">>> About to create environment: $(PROJECT_NAME)..."
- @echo ">>> check python3 version"
- ( \
- $(PYTHON_INTERPRETER) --version; \
- )
- @echo ">>> Setting up VirtualEnv."
- ( \
- $(PIP) install -q virtualenv virtualenvwrapper; \
- virtualenv venv --python=$(PYTHON_INTERPRETER); \
- )
-
-ACTIVATE_ENV := source venv/bin/activate
-
-# Execute python related functionalities from within the project's environment
-define execute_in_env
- $(ACTIVATE_ENV) && $1
-endef
-
-## Build the environment requirements
-requirements: create-environment
- $(call execute_in_env, $(PIP) install -r ./requirements.txt)
-
-# Set Up
-## Install bandit
-bandit:
- $(call execute_in_env, $(PIP) install bandit)
-
-## Install safety
-safety:
- $(call execute_in_env, $(PIP) install safety)
-
-## Install black
-black:
- $(call execute_in_env, $(PIP) install black)
-
-## Install coverage
-coverage:
- $(call execute_in_env, $(PIP) install coverage)
-
-## Set up dev requirements (bandit, safety, black)
-dev-setup: bandit safety black coverage
-
-# Build / Run
-
-## Run the security test (bandit + safety)
-security-test:
- $(call execute_in_env, safety check -r ./requirements.txt)
- $(call execute_in_env, bandit -lll */*.py *c/*/*.py)
-
-## Run the black code check
-run-black:
- $(call execute_in_env, black ./src/*/*.py ./test/*/*.py)
-
-## Run the unit tests
-unit-test:
- $(call execute_in_env, PYTHONPATH=${PYTHONPATH} pytest -v)
-
-## Run the coverage check
-check-coverage:
- $(call execute_in_env, PYTHONPATH=${PYTHONPATH} pytest --cov=src test/)
-
-## Run all checks
-run-checks: security-test run-black unit-test check-coverage
git.ajschof.me — hosted by ajschofield — powered by cgit