Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1052)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.8.0 → 23.1.0](psf/black@22.8.0...23.1.0)
- [github.com/PyCQA/isort: 5.10.1 → 5.12.0](PyCQA/isort@5.10.1...5.12.0)
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](PyCQA/flake8@5.0.4...6.0.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 19, 2023
1 parent ce61f4e commit a405667
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
1 change: 0 additions & 1 deletion jazzband/members/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
def sync_members():
# use a lock to make sure we don't run this multiple times
with redis.lock("sync_members", ttl=ONE_MINUTE * 14):

members_data = github.get_members()
User.sync(members_data)

Expand Down
3 changes: 0 additions & 3 deletions jazzband/projects/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def update_project_by_hook(hook_id):

# use a lock to make sure we don't run this multiple times
with redis.lock(f"project-update-by-hook-{project_name}", ttl=ONE_MINUTE):

# if there already was an issue created, just stop here
if not project.transfer_issue_url:
# get list of roadies and set them as the default assignees
Expand Down Expand Up @@ -90,7 +89,6 @@ def send_new_upload_notifications(project_id=None):
recipients = set()

for lead_member in lead_members + list(User.roadies()):

primary_email = lead_member.email_addresses.filter(
EmailAddress.primary.is_(True), EmailAddress.verified.is_(True)
).first()
Expand Down Expand Up @@ -150,7 +148,6 @@ def sync_project_members():
in GitHub anymore.
"""
with redis.lock("sync_project_members", ttl=ONE_MINUTE * 14):

teams = github.get_teams()

for team in teams:
Expand Down

0 comments on commit a405667

Please sign in to comment.