-
Notifications
You must be signed in to change notification settings - Fork 83
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
blackframework. -
[Optional] Check
blackcode 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
devbranch using the following command:
black --line-length=120 .
After that one should add and commit all the reformatted files.
- Check
flake8code style using the following command:
./bin/run_codestyle.sh
This command will list errors and corresponding files.