Automate project initialisation

This commit is contained in:
emo 2024-03-04 23:31:32 +01:00
parent 9dec516467
commit 02284ff205
2 changed files with 17 additions and 7 deletions

View File

@ -147,17 +147,23 @@ git clone \
cd test_linux_containers
```
```
pipenv install
```
Prior to any further development one needs to initialise the project by running
the following commands on the command line.
```
pipenv install --dev
task init-project pipenv-shell
```
```
pipenv shell
```
These tasks will perform the following steps.
1. Create a Python virtual environment through `pipenv`.
2. Any Python dependencies described in `Pipfile.lock`, such as Ansible,
will be downloaded and installed.
3. Any Python development dependencies described in `Pipfile.lock`,
such as linters and code formatters, will be downloaded and installed.
4. The virtual environment will be activated.
From this point on, the project is properly initialised for development.
## Lint Ansible artifacts

View File

@ -1,6 +1,10 @@
---
version: '3'
tasks:
init-project:
cmds: [pipenv install, pipenv install --dev]
pipenv-shell:
cmds: [pipenv shell]
format-yml:
cmds: [yamlfix .]
lint-yml: