Skip to content

Commit

Permalink
Formatter and test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff128 committed Dec 2, 2024
1 parent bae1c38 commit c4c890c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Python Formatter (isort & black)

on:
push:
branches: 'main'
pull_request:
branches: [main]

jobs:
formatting:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ include_trailing_comma = true

[tool.black]
line_length = 120
exclude = "migrations/"
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ tests =
pytest
pytest-cov
pytest-xdist
pytest-django
django_tests =
pytest-django
django =
Expand Down
1 change: 0 additions & 1 deletion src/sio3pack/django/sinolpack/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class SinolpackDjangoHandler(DjangoHandler):

def save_to_db(self):
"""
Save the package to the database.
Expand Down
3 changes: 2 additions & 1 deletion src/sio3pack/packages/sinolpack/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ def get_submittable_extensions(self):
Returns a list of extensions that are submittable.
"""
return self.config.get(
"submittable_langs", self._get_from_django_settings("SUBMITTABLE_LANGUAGES", ["c", "cpp", "cc", "cxx", "py"])
"submittable_langs",
self._get_from_django_settings("SUBMITTABLE_LANGUAGES", ["c", "cpp", "cc", "cxx", "py"]),
)

def get_model_solution_regex(self):
Expand Down

0 comments on commit c4c890c

Please sign in to comment.