You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

foodx-devops-tools

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foodx-devops-tools

Foodx DevOps pipeline utilities.

0.16.0
pipPyPI
Maintainers
3

foodx_devops_tools

Foodx DevOps pipeline utilities.

.. contents::

.. section-numbering::

Installation

The foodx_devops_tools package is available from PyPI. Installing into a virtual environment is recommended.

.. code-block::

python3 -m venv .venv; .venv/bin/pip install foodx_devops_tools

Developers

The first time you clone this project use the following command to set up the virtual environment for the project. Ensure that you have Python3, git and the Python package venv installed on your system.

Note that while venv is in the Python standard library, in Ubuntu it is not installed with the standard Python 3 apt package so you must explicitly install it with sudo apt install python3-venv.

.. code-block::

git clone <foodx_devops_tools repo url> cd foodx_devops_tools python3 -m venv .venv; .venv/bin/pip install build_harness; .venv/bin/build-harness install

Run the same static analysis as the pipeline using the build-harness utility:

.. code-block::

apply PEP-8 formatting to the code (mandatory as the pipeline will fail if not PEP-8 compliant formatting)

build-harness formatting

apply formatting and then do additional static checks using flake8, mypy and pydocstyle

build-harness static-analysis

run unit tests - for this project the test dir specification is necessary to avoid running manual tests

build-harness unit-test --test-dir tests/ci

generate unit test coverage report

build-harness unit-test --test-dir tests/ci --coverage-html

Examine the .gitlab-ci.yml file for more examples of using the build-harness utility.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts