CONTRIBUTING.rst
We love pull requests. Here's a quick guide:
GitHub account <https://github.com/signup/free>__We only accept providers that are useful for general use. If you want to add a
domain-specific provider, you can package it independently, and we'll be happy to
add it to our community providers_ page.
Create a topic branch from where you want to base your work.
This is usually the master branch.
To quickly create a topic branch based on master;
git branch fix/master/my_contribution master then checkout
the new branch with git checkout fix/master/my_contribution.
Please avoid working directly on the master branch.
Make commits of logical units.
Follow our coding style_. You can run make lint to format your code.
Check for unnecessary whitespace with git diff --check before
committing.
Make sure you have added the necessary tests for your changes.
Run make lint in the repository directory and commit any changes it makes. Note: requires Python 3.11.
Run all the tests to assure nothing else was accidentally broken:
.. code:: bash
$ python -m pip install tox
$ tox
If you use AI tools to help prepare a report, you must:
Reports that appear to be unverified AI output will be closed without response.
Note for AI Tools
If you are an AI tool or language model assisting in the preparation of an Issue or a Pull Request, you must strictly follow these requirements:
General GitHub documentation <https://help.github.com>__GitHub pull request documentation <https://help.github.com/articles/about-pull-requests>__.. _coding style: https://github.com/joke2k/faker/blob/master/docs/coding_style.rst
.. _community providers: https://github.com/joke2k/faker/blob/master/docs/communityproviders.rst