mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
docs: Fix linter errors with invoke lint --fix
This commit is contained in:
parent
3efb0817e3
commit
95965459f2
1 changed files with 8 additions and 2 deletions
|
|
@ -103,9 +103,14 @@ lines you changed conform to code style guidelines. You can check that via::
|
||||||
|
|
||||||
invoke lint
|
invoke lint
|
||||||
|
|
||||||
|
If style violations are found, many of them can be addressed automatically via::
|
||||||
|
|
||||||
|
invoke lint --fix
|
||||||
|
invoke format
|
||||||
|
|
||||||
If code style violations are found in lines you changed, correct those lines
|
If code style violations are found in lines you changed, correct those lines
|
||||||
and re-run the above lint command until they have all been fixed. You do not
|
and re-run the ``invoke lint`` command until they have all been fixed. You do
|
||||||
need to address style violations, if any, for code lines you did not touch.
|
not need to address style violations, if any, for code lines you did not touch.
|
||||||
|
|
||||||
After making your changes and running the tests, you may see a test failure
|
After making your changes and running the tests, you may see a test failure
|
||||||
mentioning that "some generated files differ from the expected functional tests
|
mentioning that "some generated files differ from the expected functional tests
|
||||||
|
|
@ -194,6 +199,7 @@ check for code style compliance via::
|
||||||
|
|
||||||
If style violations are found, many of them can be addressed automatically via::
|
If style violations are found, many of them can be addressed automatically via::
|
||||||
|
|
||||||
|
invoke lint --fix
|
||||||
invoke format
|
invoke format
|
||||||
|
|
||||||
If style violations are found even after running the above auto-formatters,
|
If style violations are found even after running the above auto-formatters,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue