Skip to content

Commit 19b29e2

Browse files
committed
chore: lint whole project
1 parent 613b751 commit 19b29e2

File tree

44 files changed

+125
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+125
-125
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
DEBUG=True
12
GOOGLE_API_KEY=
23
PARENT_HOST=localhost:8000
34
RECAPTCHA_PUBLIC_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
hooks:
2323
- id: check-migrations
2424
name: check migrations
25-
entry: uv run manage.py makemigrations --check
25+
entry: uv run bullet/manage.py makemigrations --check
2626
language: system
2727
types: [python]
2828
pass_filenames: false

bullet/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/static
1+
/static

bullet/bullet/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,8 @@ def silky_intercept(request):
220220
release=bullet.VERSION,
221221
)
222222

223+
SILENCED_SYSTEM_CHECKS = ["django_recaptcha.recaptcha_test_key_error"]
223224
if DEBUG:
224-
SILENCED_SYSTEM_CHECKS = ["django_recaptcha.recaptcha_test_key_error"]
225-
226225
import socket
227226

228227
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())

bullet/bullet/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1. Import the include() function: from django.urls import include, path
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
16+
1617
from django.conf import settings
1718
from django.contrib import admin
1819
from django.urls import include, path

bullet/bullet_admin/documentation/problem_scanning.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Problem Scanning
22

3-
The [“Problem scanning” page](/admin/scanning/problems/) of the administration interface is used to scan solved
3+
The [“Problem scanning” page](/admin/scanning/problems/) of the administration interface is used to scan solved
44
problems during the competition.
55

66
We recommend using a hardware barcode scanner that supports keyboard emulation (that is most of them).
@@ -11,7 +11,7 @@ When a team solves a problem, you scan the barcode into this page. After scannin
1111
appear on screen, this result will also be added to the scanning history (newest entries are at the top).
1212
The result is colored to indicate status, and an error message is shown if available.
1313

14-
If you scan a problem by accident, you can undo the scan by clicking on the undo button in the history log. You can
14+
If you scan a problem by accident, you can undo the scan by clicking on the undo button in the history log. You can
1515
also retry any failed scan by clicking on the retry button.
1616

1717
## Green
@@ -23,9 +23,9 @@ Green status means that the scanning was successful.
2323
The yellow color indicates one of the following errors:
2424

2525
* **Barcode format is invalid.** The scanned barcode does not contain the required information. Try scanning again.
26-
* **Check digit on the scanned barcode is not correct.** The scanned barcode does not contain valid check digit.
26+
* **Check digit on the scanned barcode is not correct.** The scanned barcode does not contain valid check digit.
2727
Try scanning again.
28-
* **Could not find venue XXX.** / **Could not find team XXX in XXX.** / **Could not find problem XXX.**
28+
* **Could not find venue XXX.** / **Could not find team XXX in XXX.** / **Could not find problem XXX.**
2929
The scanned barcode is malformed, try scanning again. If problem persists, contact IT.
3030
* **You don't have the required permissions to scan problems in XXX.**
3131
The scanned barcode belongs to another venue that you don’t have access to.

bullet/bullet_admin/documentation/results.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ and announce results.
77

88
You can view results for every venue you have access to.
99

10-
* **Public results:** Shows the results in the same way they are shown to the public. This includes the freeze that
10+
* **Public results:** Shows the results in the same way they are shown to the public. This includes the freeze that
1111
happens some time before the competition ends.
12-
* **Admin results:** Shows the real results at this time. This means that admin results are not frozen and always show
12+
* **Admin results:** Shows the real results at this time. This means that admin results are not frozen and always show
1313
current data.
1414

1515
Links on the results page will lead to the country-language combination you last accessed.

bullet/bullet_admin/templates/bullet_admin/results/announce.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{% endif %}
3535
</div>
3636
{% endif %}
37-
37+
3838
<div class="p-2 fixed bottom-0 right-0 space-x-1">
3939
<span>{{ position }}.</span>
4040
<button class="btn-admin-sm bg-primary hover:bg-primary-dark"

bullet/bullet_admin/templatetags/badmin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from bullet.search import DumbPage
12
from bullet_admin.access import is_country_admin
23
from bullet_admin.utils import get_active_competition
34
from competitions.branches import Branch
@@ -9,8 +10,6 @@
910
from django.utils.safestring import mark_safe
1011
from users.models import User
1112

12-
from bullet.search import DumbPage
13-
1413
register = template.Library()
1514

1615

bullet/bullet_admin/views/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_context_data(self, **kwargs):
8080

8181
def post(self, request, *args, **kwargs):
8282
if "competition" in request.GET:
83-
request.session[
84-
f"badmin_{request.BRANCH.identifier}_competition"
85-
] = request.GET.get("competition")
83+
request.session[f"badmin_{request.BRANCH.identifier}_competition"] = (
84+
request.GET.get("competition")
85+
)
8686
return HttpResponseClientRefresh()

0 commit comments

Comments
 (0)