Contributor Guide#
Creating a development environment#
If you plan to make code changes to this repository, you will need to install the following dependencies first:
Docker (optional)
Once you finish installing these dependencies, you can clone this repository:
git clone https://github.com/reactive-python/reactpy.git cd reactpy
Executing test environment commands#
By utilizing hatch
, the following commands are available to manage the development environment.
Python Tests#
Command | Description |
---|---|
| Run Python tests using the current environmentβs Python version |
| Run tests using all compatible Python versions |
| Run tests using a specific Python version |
| Run only a specific test |
Python Package#
Command | Description |
---|---|
| Run all linters and formatters |
| Run all linters and formatters, but do not save fixes to the disk |
| Run only linters |
| Run only formatters |
| Run the Python type checker |
JavaScript Packages#
Command | Description |
---|---|
| Run the JavaScript linter/formatter |
| Run the JavaScript linter/formatter and write fixes to disk |
| Run the JavaScript tests |
| Build all JavaScript packages |
| Build the |
| Build the |
| Build the |
Documentation#
Command | Description |
---|---|
| Start the documentation preview webserver |
| Build the documentation |
| Check the documentation for build errors |
| Start the documentation preview webserver using Docker |
| Build the documentation using Docker |
Environment Management#
Command | Description |
---|---|
| Build the package from source |
| Delete all virtual environments created by |
| Install a specific Python version to your system |
Other ReactPy Repositories#
ReactPy has several external packages that can be installed to enhance your user experience. For documentation on them you should refer to their respective documentation in the links below:
reactpy-router - ReactPy support for URL routing
reactpy-js-component-template - Template repo for making Custom Javascript Components.
reactpy-django - ReactPy integration for Django
reactpy-jupyter - ReactPy integration for Jupyter