-
Notifications
You must be signed in to change notification settings - Fork 79
Codestyle
dilyararimovna edited this page Jan 9, 2023
·
1 revision
We utilize two steps control to check code style of all files that differ from dev
branch in every pull request to dev
branch:
- the latest stable version of flake8
- black==20.8b1 code style
-
Install dependencies for
black
framework. -
[Optional] Check
black
code style using the following command:
black --line-length=120 --check .
This command will list files to be reformatted.
- One may automatically reformat files that differ from
dev
branch using the following command:
black --line-length=120 .
After that one should add and commit all the reformatted files.
- Check
flake8
code style using the following command:
./bin/run_codestyle.sh
This command will list errors and corresponding files.