Contributions are welcome, and they are greatly appreciated! Every little helps, and credit will always be given.
You can contribute in many ways:
Report bugs to our issue page. 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 GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
Bluetooth Adapters could always use more documentation, whether as part of the official Bluetooth Adapters docs, in docstrings, or even on the web in blog posts, articles, and such.
The best way to send feedback our issue page on GitHub. 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 😊
Ready to contribute? Here's how to set yourself up for local development.
-
Fork the repo on GitHub.
-
Clone your fork locally:
$ git clone [email protected]:your_name_here/bluetooth-adapters.git
-
Install the project dependencies with Poetry:
$ poetry install
-
Create a branch for local development:
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
-
When you're done making changes, check that your changes pass our tests:
$ poetry run pytest
-
Linting is done through pre-commit. Provided you have the tool installed globally, you can run them all as one-off:
$ pre-commit run -a
Or better, install the hooks once and have them run automatically each time you commit:
$ pre-commit install
-
Commit your changes and push your branch to GitHub:
$ git add . $ git commit -m "feat(something): your detailed description of your changes" $ git push origin name-of-your-bugfix-or-feature
Note: the commit message should follow the conventional commits. We run
commitlint
on CI to validate it, and if you've installed pre-commit hooks at the previous step, the message will be checked at commit time. -
Submit a pull request through the GitHub website or using the GitHub CLI (if you have it installed):
$ gh pr create --fill
We like to have the pull request open as soon as possible, that's a great place to discuss any piece of work, even unfinished. You can use draft pull request if it's still a work in progress. Here are a few guidelines to follow:
- Include tests for feature or bug fixes.
- Update the documentation for significant features.
- Ensure tests are passing on CI.
To run a subset of tests:
$ pytest tests
The deployment should be automated and can be triggered from the Semantic Release workflow in GitHub. The next version will be based on the commit logs. This is done by python-semantic-release via a GitHub action.