This package is the base parser for the following text editor packages:
- Atom python-indent
- VS Code vsc-python-indent
It helps the editor to automatically indent in typical Python fashion after new line events.
Both indent types for continuing lines as described in PEP 0008 -- Style Guide for Python Code are auto-detected and applied by this package.
-
Aligned with Opening Delimiter
def function_with_lots_of_params(param_1, param_2, param_3, param_4, very_long_parameter_name, param_6)
-
Hanging
def function_with_lots_of_params( param_1, param_2, param_3, param_4, very_long_parameter_name, param_6)
-
Clone your forked repository and create a new feature branch.
git clone https://github.com/<you>/python-indent-parser
- Install the dependencies
npm install
-
Contribute
-
Make sure that all tests pass.
npm run test
- Lint and correct as necessary.
npm run lint
-
Push your changes and create a pull request.
-
After a PR has been merged, and if you help maintain the package, run the following.
npm version <patch|minor|major>
npm publish