mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-03-03 19:08:15 +03:00
Update pylint and pep8 docs.
This commit is contained in:
parent
f0cc78f01f
commit
42fe4f645b
|
@ -23,9 +23,21 @@ This is included in flake8's checks, but you can also run it separately to see a
|
||||||
|
|
||||||
$ pylint <python files that you wish to lint>
|
$ pylint <python files that you wish to lint>
|
||||||
|
|
||||||
|
The config for pylint is located in .pylintrc. It specifies:
|
||||||
|
|
||||||
|
* Use the pylint_common and pylint_django plugins. If using Celery, also use pylint_celery.
|
||||||
|
* Set max line length to 120 chars
|
||||||
|
* Disable linting messages for missing docstring and invalid name
|
||||||
|
* max-parents=13
|
||||||
|
|
||||||
pep8
|
pep8
|
||||||
-----
|
-----
|
||||||
|
|
||||||
This is included in flake8's checks, but you can also run it separately to see a more detailed report:
|
This is included in flake8's checks, but you can also run it separately to see a more detailed report:
|
||||||
|
|
||||||
$ pep8 <python files that you wish to lint>
|
$ pep8 <python files that you wish to lint>
|
||||||
|
|
||||||
|
The config for pep8 is located in setup.cfg. It specifies:
|
||||||
|
|
||||||
|
* Set max line length to 120 chars
|
||||||
|
* Exclude .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
|
Loading…
Reference in New Issue
Block a user