Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.36 KB

DEV_SETUP.md

File metadata and controls

61 lines (44 loc) · 1.36 KB

foundry-compute-modules dev README

Autorelease

Requirements

Commands

Install packages + scripts

This command will install all deps specified in pyproject.toml and make the scripts specified in pyproject.toml available in your python environment.

poetry install

Run tests

poe test

Run mypy checks

poe check_mypy

Run linter checks (black, ruff, isort)

This will run the same checks as those that are run during CI checks - meaning it will raise any issues found, but not fix them.

poe check_format

Run formatter (black, ruff, isort)

This will actually modify source files to fix any issues identified

poe format

Build the library locally

This will produce a tar.gz and a whl file in the ./dist directory.

poetry build

Either of these files can be installed locally for testing. For example:

% poetry build
Building foundry-compute-modules (0.0.0)
  - Building sdist
  - Built foundry_compute_modules-0.0.0.tar.gz
  - Building wheel
  - Built foundry_compute_modules-0.0.0-py3-none-any.whl

% pip install ./dist/foundry_compute_modules-0.0.0.tar.gz