Skip to content

Contributing

If you have any questions, you can write to the mail or Telegram

Fork and clone your repository

  1. Fork the repository (click here to fork now)
  2. Clone your forked code
Terminal window
git clone https://github.com/<nickname>/Kekkai.git
  1. Create new branch
Terminal window
git branch <name_new_branch>
  1. Switch to new branch
Terminal window
git checkout <name_new_branch>
  1. Push your commits
  2. Submit a new Pull Request

Testing

Before sending a Pull Request, test the functionality. Everything should work both in Docker Compose and without it.

It is recommended to use Debugger and Debug log for testing. The logging level is changed in config.yaml

Code Style

Pylint, mypy,
eslint and prettier are used as code syntax checks

Checking the Node.JS code

To check the code, you must first download the necessary libraries, which are located at the root of the project

Terminal window
npm install

eslint and prettier is used to check and automatically correct the Node.JS code

Terminal window
npx eslint .

Or add the --fix flag to automatically fix the code

Checking the Python code

To check code, you need to install libraries mypy and pylint

Terminal window
python3 -m pip install -U mypy

and install pylint

Terminal window
pip install pylint

Start check the code

for pylint:

Terminal window
pylint /chart/

and for mypy:

Terminal window
mypy /chart/