mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Remove trailing whitespaces (#361)
This commit is contained in:
committed by
Raphael Michel
parent
e5cb26464e
commit
58668010a2
@@ -8,12 +8,12 @@ Python code
|
|||||||
|
|
||||||
Use `flake8`_ to check for conformance problems. The project includes a setup.cfg file
|
Use `flake8`_ to check for conformance problems. The project includes a setup.cfg file
|
||||||
with a default configuration for flake8 that excludes migrations and other non-relevant
|
with a default configuration for flake8 that excludes migrations and other non-relevant
|
||||||
code parts. It also silences a few checks, e.g. ``N802`` (function names should be lowercase)
|
code parts. It also silences a few checks, e.g. ``N802`` (function names should be lowercase)
|
||||||
and increases the maximum line length to more than 79 characters. **However** you should
|
and increases the maximum line length to more than 79 characters. **However** you should
|
||||||
still name all your functions lowercase [#f1]_ and keep your lines short when possible.
|
still name all your functions lowercase [#f1]_ and keep your lines short when possible.
|
||||||
|
|
||||||
* Our build server will reject all code violating other flake8 checks than the following:
|
* Our build server will reject all code violating other flake8 checks than the following:
|
||||||
|
|
||||||
* E123: closing bracket does not match indentation of opening bracket’s line
|
* E123: closing bracket does not match indentation of opening bracket’s line
|
||||||
* F403: ``from module import *`` used; unable to detect undefined names
|
* F403: ``from module import *`` used; unable to detect undefined names
|
||||||
* F401: module imported but unused
|
* F401: module imported but unused
|
||||||
|
|||||||
@@ -118,8 +118,8 @@ Then execute ``python -m smtpd -n -c DebuggingServer localhost:1025``.
|
|||||||
|
|
||||||
Working with translations
|
Working with translations
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
If you want to translate new strings that are not yet known to the translation system,
|
If you want to translate new strings that are not yet known to the translation system,
|
||||||
you can use the following command to scan the source code for strings to be translated
|
you can use the following command to scan the source code for strings to be translated
|
||||||
and update the ``*.po`` files accordingly::
|
and update the ``*.po`` files accordingly::
|
||||||
|
|
||||||
make localegen
|
make localegen
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for form in forms %}
|
{% for form in forms %}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<span class="text-right pull-right">
|
<span class="text-right pull-right">
|
||||||
<input type="button" data-id="{{ forloop.counter0 }}" name="copy" class="js-copy-answers btn btn-default btn-xs" value='{% trans "Copy answers from above" %}'>
|
<input type="button" data-id="{{ forloop.counter0 }}" name="copy" class="js-copy-answers btn btn-default btn-xs" value='{% trans "Copy answers from above" %}'>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div id="cp{{ form.pos.id }}"
|
<div id="cp{{ form.pos.id }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user