Contributing to uainsight
We welcome contributions to uainsight! This document provides guidelines for contributing to the project.
Getting Started
- Fork the repository on GitHub.
-
Clone your fork locally:
git clone https://github.com/joongi007/uainsight.git cd uainsight
-
Ensure you have Poetry installed. If not, install it following the instructions at Poetry Installation
3.1. Additionally, you can install the "poetry-bumpversion" plug-in to help you manage the version. Follow the instructions in"poetry-bumpversion" Plugin Installation
-
Install the project dependencies:
poetry install
Development Workflow
-
Create a new branch for your feature or bug fix:
git checkout -b feature-or-fix-name
-
Make your changes and commit them with a clear commit message.
-
Push your changes to your fork:
git push origin feature-or-fix-name
-
Open a pull request against the main repository.
Coding Standards
- We use Black for code formatting. Please run
poetry run black .
before committing. - We use Ruff for linting. Run
poetry run ruff check . --fix
to check your code. - Write clear, readable code and include comments where necessary.
- Write meaningful commit messages.
Testing
- Write tests for new features or bug fixes using pytest.
- Ensure all tests pass before submitting a pull request:
poetry run pytest
Documentation
We use MkDocs for our documentation. Here's how you can work on, contribute to, and deploy the documentation:
-
Setup: Ensure you have all dependencies installed:
poetry install
-
Local Development: To work on the documentation locally and see your changes in real-time:
poetry run mkdocs serve
This will start a local server, typically at
http://127.0.0.1:8000/
. You can view your changes live as you edit the documentation. -
Writing Documentation:
- Documentation files are located in the
docs/
directory. - We use Markdown for our documentation. Please refer to the MkDocs documentation for specific formatting guidelines.
- Update existing files or create new ones as needed.
- Use clear and concise language in your documentation.
- Documentation files are located in the
-
Building Documentation: To build the documentation:
poetry run mkdocs build
This will create a
site/
directory with the built HTML files. -
Submitting Changes:
- Commit your changes to your feature branch.
- Push the changes to your fork.
- Open a pull request with a clear description of the documentation changes.
-
Documentation Review:
- The maintainers will review your documentation changes.
- Be prepared to make adjustments based on feedback.
-
Deployment:
- Ensure all changes have been reviewed and merged into the main branch.
-
Run the following command:
poetry run mkdocs gh-deploy
-
This command builds the documentation and pushes it to the
gh-pages
branch, which GitHub Pages uses to serve the site.
Note: The ability to deploy documentation is typically restricted to project maintainers. If you're a contributor without deployment permissions, your documentation changes will be deployed once they're merged into the main branch.
Remember to update the documentation whenever you add new features, change existing functionality, or fix bugs that affect user interaction with the library.
If you have any questions about working on or deploying the documentation, please open an issue and we'll be happy to help!
Submitting Changes
- Push your changes to your fork on GitHub.
- Submit a pull request to the main repository (https://github.com/joongi007/uainsight).
- The core team will review your pull request and may request changes or ask questions.
Reporting Issues
- Use the GitHub issue tracker to report bugs.
- Include as much detail as possible: steps to reproduce the issue, error messages, Python version, operating system, etc.
Feature Requests
We're always looking for suggestions to improve uainsight. If you have an idea for a new feature:
- Check if the feature has already been suggested or discussed in the issues.
- If not, open a new issue describing the feature and its potential benefits.
Questions?
If you have any questions about contributing, please open an issue and we'll be happy to help!
Thank you for contributing to uainsight!