Skip to content

Commit

Permalink
[Documentation:Developer] Added python black formatter option (#561)
Browse files Browse the repository at this point in the history
Added option to developers to use black formatter to automate formatting
python code
  • Loading branch information
jason490 authored Dec 1, 2023
1 parent 1aa5cea commit 6e3fb53
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _docs/developer/testing/linting_static_analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ python3 -m flake8 bin/generate_repos.py
python3 -m pylint bin/generate_repos.py
```

If you wish to automatically fix the basic linting problems, you can use [black formatter](https://github.com/psf/black):
```bash
# install black formatter
pip install git+https://github.com/psf/black

# formats all the files in that directory
black ./files/location/

# formats specified file
black ./location/file.py
```

See also: [Python Style Guide](/developer/coding_style_guide/python)

## PHP Linting
Expand Down

0 comments on commit 6e3fb53

Please sign in to comment.