# Contributing All kinds of contributions to Dotbot are greatly appreciated. For someone unfamiliar with the code base, the most efficient way to contribute is usually to submit a [feature request](#feature-requests) or [bug report](#bug-reports). If you want to dive into the source code, you can submit a [patch](#patches) as well, either working on your own ideas or [existing issues][issues]. ## Feature Requests Do you have an idea for an awesome new feature for Dotbot? Please [submit a feature request][issue]. It's great to hear about new ideas. If you are inclined to do so, you're welcome to [fork][fork] Dotbot, work on implementing the feature yourself, and submit a patch. In this case, it's *highly recommended* that you first [open an issue][issue] describing your enhancement to get early feedback on the new feature that you are implementing. This will help avoid wasted efforts and ensure that your work is incorporated into the code base. ## Bug Reports Did something go wrong with Dotbot? Sorry about that! Bug reports are greatly appreciated! When you [submit a bug report][issue], please include relevant information such as Dotbot version, operating system, configuration file, error messages, and steps to reproduce the bug. The more details you can include, the easier it is to find and fix the bug. ## Patches Want to hack on Dotbot? Awesome! If there are [open issues][issues], you're more than welcome to work on those - this is probably the best way to contribute to Dotbot. If you have your own ideas, that's great too! In that case, before working on substantial changes to the code base, it is *highly recommended* that you first [open an issue][issue] describing what you intend to work on. **Patches are generally submitted as pull requests.** Patches are also [accepted over email][email]. Any changes to the code base should follow the style and coding conventions used in the rest of the project. The version history should be clean, and commit messages should be descriptive and [properly formatted][commit-messages]. ### Testing When preparing a patch, it's recommended that you add unit tests that demonstrate the bug is fixed (or that the feature works). You can run tests on your local machine using [Hatch][hatch]: ```bash hatch test ``` If you prefer to run the tests in an isolated container using Docker, you can do so with the following: ```bash docker run -it --rm -v "${PWD}:/dotbot" -w /dotbot python:3.13-bookworm /bin/bash ``` After spawning the container, install Hatch with `pip install hatch`, and then run the tests. ### Type checking You can run type checking with: ```bash hatch run types:check ``` ### Formatting and linting You can run the [Ruff][ruff] formatter and linter with: ```bash hatch fmt ``` --- If you have any questions about anything, feel free to [ask][email]! [issue]: https://github.com/anishathalye/dotbot/issues/new [issues]: https://github.com/anishathalye/dotbot/issues [fork]: https://github.com/anishathalye/dotbot/fork [email]: mailto:me@anishathalye.com [commit-messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html [hatch]: https://hatch.pypa.io/ [ruff]: https://github.com/astral-sh/ruff