Home for board configs
Project description
NaluConfigs
This repository houses all board configuration files (both register files and clock files).
Installation
Generally you don't have to install this repository unless you plan to change anything.
To install this reposity the best way is to clone and install as an editable package.
First clone this repository to a suitable location:
git clone gitlab.naluscientific.com/nalusoft/naluconfigs.git
Then install the package into your Anaconda environment:
cd naluconfigs
pip install -e .
If you however want to install this as a package. The best way is to use our pypi packages
pip install naluconfigs --index-url http://gitlab.naluscientific.com/api/v4/projects/78/packages/pypi/simple --trusted-host gitlab.naluscientific.com
Usage
In addition to the default board configuration files and clock files, the naluconfigs
package
also contains functions to load or copy these files. Check out the package to see what you can do!
Developers
Install this package as editable, and with development extras:
cd naluconfigs
pip install -e .[dev]
Make sure to read the YAML HELP.md
file if you're new, or haven't kept up with NaluConfigs.
This project follows a X.Y.Z version scheme according to the following:
- Add/remove register files, increment X
- register adds / remove, increment Y
- register edits and/or value edits increment Z
Pre-commit
This project uses pre-commit hooks to make sure the code is following the style guide. To install the pre-commit hooks, run the following command:
pre-commit install
The hooks will run automatically when you commit changes to the repository.
The code MUST run the pre-commit hooks before commiting. If the hooks fail, the commit will be rejected.
Tests
The tests are located under the naluconfigs/tests/
directory, and use pytest.
To run the tests, run naluconfigs/run_tests.bat
. This will run the tests and also generate a coverage report to
naluconfigs/coverage.xml
.
Make sure to keep the test coverage at 100%. This is doable, since NaluConfigs is a relatively simple package. The Coverage Gutters extension is highly recommended to monitor test coverage.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for naluconfigs-10.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 555fc986e69f38bb742d18bf19e46c7e17624343024af51edcffef022013b0ed |
|
MD5 | 65b33f7fe388205f7b2c09f533df4a33 |
|
BLAKE2b-256 | 3584f6fb0d28d121ff71e6a345e8c9e7a496eca7fe86d5a553921946bc1f01dd |