Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix black pre-commit hook import error #250

Merged
merged 1 commit into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 19.3b0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
6 changes: 3 additions & 3 deletions agagd/agagd_core/jinga2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

def get_members_name_and_id(value):
"""
Provides jinja2 custom filter which returns
the members information as
"[member's full name] (member_id)".
Provides jinja2 custom filter which returns
the members information as
"[member's full name] (member_id)".
"""
try:
member = agagd_models.Member.objects.values("full_name", "member_id").get(
Expand Down
2 changes: 1 addition & 1 deletion agagd/agagd_core/tables/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def render(self, value):
"<a href='{}'>{}</a>".format(chapter_url, chapter_name)
)
except:
chapter_html = u"\u2014"
chapter_html = "\u2014"

return chapter_html

Expand Down
2 changes: 1 addition & 1 deletion agagd/agagd_core/views/players_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get(self, request, *args, **kwargs):
game_date = None

# Check for 0000-00-00 dates
if game.game_date != u"0000-00-00":
if game.game_date != "0000-00-00":
game_date = game.game_date

t_dat["date"] = t_dat.get("date", game_date)
Expand Down