Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
You can contribute in many ways:
Report issues and bugs at https://github.com/equinor/fmu-config/issues
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.
Look through the Git issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
Look through the Git issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
fmu-config could always use more documentation, whether as part of the official fmu-config docs, in docstrings, or even on the web in blog posts, articles, and such.
The best way to send feedback is to file an issue at https://github.com/equinor/fmu-config/issues.
If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
- Remember that this is a volunteer-driven project, and that contributions are welcome :)
It is very important to be complient to code standards. fmu-config uses ruff, mypy to format and lint all code.
- Start with documentation and tests. Think and communicate first!
- Docstrings shall start and end with """ and use Google style.
- Use pytest as testing engine
- Code shall be be Python 3.8+ compliant
ruff check . && ruff format . --check
The pylint is rather strict and sometimes excpetions are needed... , but anyway quite useful!
python -m pylint mycode.py
Ready to contribute? Here's how to set up fmu-config
for local development.
-
Fork the
fmu-config
repo in web browser to a personal fork -
Clone your fork locally:
git clone git@github.com:<your-user>/fmu-config.git cd fmu-config git remote add upstream git@github.com:equinor/fmu-config.git
This means your
origin
is now your personal fork, while the actual master is atupstream
. -
Then create a virtual environment and install
python -m venv <your-venv> source <your-venv>/bin/activate pip install ".[dev]"