1# Bouffalo Lab bflb scripts
2
3This folder contains `hal_bouffalolab` scripts.
4
5## Dependencies
6
7Scripts require Python 3.7+ and the Python dependencies listed in
8`requirements.txt`. They can be installed by running:
9
10```
11pip install -r scripts/requirements.txt
12```
13
14## How to generate
15
16Just execute on the root of hal_bouffalolab folder:
17
18```
19python3 scripts/bflbpinctrl.py
20```
21
22## Lint
23
24Scripts should be formatted using `black` and linted using `flake8`.
25
26Such development tools can be installed using:
27
28```
29pip install -r scripts/requirements-dev.txt
30```
31
32To run the lint:
33
34```
35flake8 --config scripts/.flake8 scripts
36```
37
38## Tests
39
40Before running tests make sure to have testing dependencies installed. They
41can be installed by running:
42
43```
44pip install -r scripts/requirements-test.txt
45```
46
47Tests can be executed by running:
48
49```
50pytest
51```
52