Thank you for your interest in improving this project. This project is open-source under the MIT license and welcomes contributions in the form of bug reports, feature requests, and pull requests.
Here is a list of important resources for contributors:
Report bugs on the Issue Tracker.
When filing an issue, make sure to answer these questions:
- Which operating system and Python version are you using?
- Which version of this project are you using?
- What did you do?
- What did you expect to see?
- What did you see instead?
The best way to get your bug fixed is to provide a test case, and/or steps to reproduce the issue.
Features that improve concreteproperties
can be suggested on the Issue Tracker. It's a good idea to first submit the proposal as a feature request prior to submitting a pull request as this allows for the best coordination of efforts by preventing the duplication of work, and allows for feedback on your ideas.
concreteproperties
uses uv
for python project management. uv
can be installed on using the standalone installer:
curl -LsSf https://astral.sh/uv/install.sh | sh
Installation instructions for other methods and Windows can be found here.
uv
can then be used to install the latest compatible version of python:
uv python install 3.12
concreteproperties
and it's development dependencies can be installed with:
uv sync
If you want to build the documentation locally, you will need to install pandoc
. The installation method depends on what OS you are running.
To run a script using the development virtual environment, you can run:
uv run example.py
Refer to the uv
documentation for more information relating to using uv
for project management.
Pre-commit ensures code quality and consistency by running the ruff
linter and formatter, stripping out execution cells in jupyter notebooks, and running several pre-commit hooks.
These can be run against all files in the project with:
uv run pre-commit run --all-files
However, the best way to ensure code quality is by installing the git pre-commit hook:
uv run pre-commit install
This will run pre-commit
against all changed files when attempting to git commit
. You will need to fix the offending files prior to being able to commit a change unless you run git commit --no-verify
.
concreteproperties
uses pyright
to ensure type-checking where possible. pyright
can be run on all files with:
uv run pyright
The concreteproperties
tests are located in the tests/
directory and are written using the pytest testing framework. The test suite can be run with:
uv run pytest
You can build the documentation locally with:
uv run sphinx-build docs docs/_build
Make sure that you have a recent version of pandoc
installed so that the example notebooks can be generated.
Note that all pull requests also build the documentation on Read the Docs, so building the documentation locally is not required.
Open a pull request to submit changes to this project.
Your pull request needs to meet the following guidelines for acceptance:
- The test suite, pre-commit and pyright checks must pass without errors and warnings.
- Include unit tests. This project aims for a high code coverage.
- If your changes add functionality, update the documentation accordingly.
It is recommended to open an issue before starting work on anything. This will allow a chance to talk it over with the owners and validate your approach.