Skip to content

Local Development

Development

๐Ÿ‘‹  If you want to contribute to this project, test it locally, or just explore it - we have some helpful instructions below.

Prerequisites

If you want to test, lint, or explore ioc-fanger, make sure you have docker and docker-compose installed (if you don't see: installing docker).

Then you can use the test, lint, and dev docker compose services listed below!

Test ioc-fanger ๐Ÿงช

To test ioc-fanger, run the following command from the root directory of the project:

docker-compose run --rm test

Typically, this command will run pytest on the project's test suite. To view the details of what this command does, take a look at the test service in the project's docker-compose.yml file.

Lint ioc-fanger ๐Ÿงน

To lint ioc-fanger, run the following command from the root directory of the project:

docker-compose run --rm lint

Typically, this command will run linters on the project's code with the goal of improving code quality and catching bugs before we release them (you can read more about the benefits of linting here). To view the details of what this command does, take a look at the lint service in the project's docker-compose.yml file.

Explore ioc-fanger ๐Ÿ”ญ

To explore ioc-fanger, you can drop into a "dev" environment which is an IPython shell with the project and all its requirements loaded. To do this, run the following command from the root directory of the project:

docker-compose run --rm dev

To see what this command does, take a look at the dev service in the project's docker-compose.yml file.