Thank you for contributing to i18n-check!
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open-source project. In return, and in accordance with this project's code of conduct, other contributors will reciprocate that respect in addressing your issue or assessing patches and features.
If you have questions or would like to communicate with the team, please join us in our public Matrix chat rooms. We'd be happy to hear from you!
- First steps as a contributor
- Development environment
- Linting
- Issues and projects
- Bug reports
- Feature requests
- Pull requests
First steps as a contributor ⇧
Thank you for your interest in contributing to activist community projects! We look forward to welcoming you :) The following are some suggested steps for people interested in joining our community:
- Please join the public Matrix chat to connect with the community
- Matrix is a network for secure, decentralized communication
- activist would suggest that you use the Element client
- The General and Development channels would be great places to start!
- Feel free to introduce yourself and tell us what your interests are if you're comfortable :)
- Consider joining our bi-weekly developer sync!
Development environment ⇧
- First and foremost, please see the suggested IDE setup in the dropdown below to make sure that your editor is ready for development.
Important
Suggested IDE setup
VS Code
Install the following extensions:
- Fork the i18n-check repo, clone your fork, and configure the remotes:
Note
Consider using SSH
Alternatively to using HTTPS as in the instructions below, consider SSH to interact with GitHub from the terminal. SSH allows you to connect without a user-pass authentication flow.
To run git commands with SSH, remember then to substitute the HTTPS URL, https://github.com/...
, with the SSH one, [email protected]:...
.
- e.g. Cloning now becomes
git clone [email protected]:<your-username>/activist.git
GitHub also has their documentation on how to Generate a new SSH key 🔑
# Clone your fork of the repo into the current directory.
git clone https://github.com/<your-username>/i18n-check.git
# Navigate to the newly cloned directory.
cd i18n-check
# Assign the original repo to a remote called "upstream".
git remote add upstream https://github.com/activist-org/i18n-check.git
- Now, if you run
git remote -v
you should see two remote repositories named:origin
(forked repository)upstream
(i18n-check repository)
-
Create a virtual environment, activate it and install dependencies:
# Unix or MacOS: python3 -m venv venv source venv/bin/activate # Windows: python -m venv venv venv\Scripts\activate.bat # After activating venv: pip install --upgrade pip pip install -r backend/requirements-dev.txt
Note
Feel free to contact the team in the Development room on Matrix if you're having problems getting your environment setup!
Linting ⇧
For the backend Ruff is installed via the required packages to assure that errors are reported correctly. We'd also suggest that VS Code users install the Ruff extension.
Issues and projects ⇧
The issue tracker for i18n-check is the preferred channel for bug reports, features requests and submitting pull requests. The activist community also organizes related issues into projects.
Bug reports ⇧
A bug is a demonstrable problem that is caused by the code in the repository. Good bug reports are extremely helpful — thank you!
Guidelines for bug reports:
-
Use the GitHub issue search to check if the issue has already been reported.
-
Check if the issue has been fixed by trying to reproduce it using the latest
main
or development branch in the repository. -
Isolate the problem to make sure that the code in the repository is definitely responsible for the issue.
Great Bug Reports tend to have:
- A quick summary
- Steps to reproduce
- What you expected would happen
- What actually happens
- Notes (why this might be happening, things tried that didn't work, etc)
To make the above steps easier, the i18n-check team asks that contributors report bugs using the bug report template, with these issues further being marked with the bug
label.
Again, thank you for your time in reporting issues!
Feature requests ⇧
Feature requests are more than welcome! Please take a moment to find out whether your idea fits with the scope and aims of the project. When making a suggestion, provide as much detail and context as possible, and further make clear the degree to which you would like to contribute in its development. Feature requests are marked with the feature
label in the issues.
Pull requests ⇧
Good pull requests — patches, improvements and new features — are the foundation of our community making i18n-check. They should remain focused in scope and avoid containing unrelated commits. Note that all contributions to this project will be made under the specified license and should follow the coding indentation and style standards (contact us if unsure).
Please ask first before embarking on any significant pull request (implementing features, refactoring code, etc), otherwise you risk spending a lot of time working on something that the developers might not want to merge into the project. With that being said, major additions are very appreciated!
When making a contribution, adhering to the GitHub flow process is the best way to get your work merged:
-
If you cloned a while ago, get the latest changes from upstream:
git checkout <dev-branch> git pull upstream <dev-branch>
-
Create a new topic branch (off the main project development branch) to contain your feature, change, or fix:
git checkout -b <topic-branch-name>
-
Install pre-commit to ensure that each of your commits is properly checked against our linter and formatters:
# In the project root: pre-commit install
Note
pre-commit is Python package that can be installed via pip or any other Python package manager. You can also find it in our requirements.txt file.
pip install pre-commit
Note
If you are having issues with pre-commit and want to send along your changes regardless, you can ignore the pre-commit hooks via the following:
git commit --no-verify -m "COMMIT_MESSAGE"
- Commit your changes in logical chunks, and please try to adhere to Conventional Commits.
Note
The following are tools and methods to help you write good commit messages ✨
- commitlint helps write Conventional Commits
- Git's interactive rebase cleans up commits
-
Locally merge (or rebase) the upstream development branch into your topic branch:
git pull --rebase upstream <dev-branch>
-
Push your topic branch up to your fork:
git push origin <topic-branch-name>
-
Open a Pull Request with a clear title and description.
Thank you in advance for your contributions!