PyDM Converter is an PyDM-based tool developed at SLAC National Accelerator Laboratory. PyDM Converter is an open-source project.
For more information and a how to guide on PyDM Converter see the project's website
Thank you for your interest in contributing to PyDM Converter! Your contributions help make the project better for everyone. Below are the guidelines to ensure a smooth and efficient collaboration.
-
Fork and Clone the Repository
- Fork the PyDM Converter repository on GitHub.
- Clone your fork to your local machine:
git clone https://github.com/your-username/pydm-converter-tool.git cd pydm-converter-tool
-
Set Up Your Development Environment
- Install the necessary dependencies:
pip install -r requirements.txt
- Install the necessary dependencies:
-
Implement Your Changes
- Code Style: Follow the PEP8 style guide for Python code.
- Documentation: Add docstrings to all new methods and classes using the NumPy style guide.
- Unit Tests: Write unit tests for your changes using Pytest.
-
Run Tests Locally
- Ensure all tests pass before submitting:
pytest
- Ensure all tests pass before submitting:
-
Create a Pull Request (PR)
- When you feel like your feature is ready to be merged into the pydm converter make a PR and request feedback from the Maintainers.
- Provide a descriptive title and detailed description of your changes.
To ensure your PR is reviewed efficiently, please adhere to the following:
-
Unit Tests:
- Include tests for all new functionality.
- Ensure tests cover different scenarios and edge cases.
-
Documentation:
- All new methods and classes must have comprehensive docstrings.
- Follow the NumPy style guide for consistency.
-
Code Quality:
- Adhere to the PEP8 style guide.
- Ensure your code is clean, well-organized, and free of unnecessary complexity.
- Communication:
- For significant changes, consider opening an issue to discuss your approach before starting.
-
Set Up Your Development Environment
- Ensure you are working on your development environment.
-
Navigate to the Project Directory
- Go to the top-level
pydm-converter-tool
project directory, which contains themkdocs.yml
file.
- Go to the top-level
-
Make and Test Your Changes Locally
- Edit the documentation files as needed.
- Test your changes locally using MkDocs before submitting a pull request.
-
Set Up Your Development Environment
- Make sure you have all the necessary tools installed (e.g., Python, MkDocs).
-
Navigate to the Project Directory
cd path/to/pydm-converter-tool
-
Install Dependencies
pip install -r requirements.txt
-
Serve the Documentation Locally
mkdocs serve
- Open your browser and go to http://localhost:8000 to preview your changes.
- Submit Your Changes
- After verifying your changes, commit and push them to your forked repository.
- Create a pull request to submit your updates.
If you have any questions or need further assistance, feel free to open an issue or reach out to the maintainers.