Skip to content

Commit

Permalink
Update black version
Browse files Browse the repository at this point in the history
as the previous version is not working
  • Loading branch information
za committed Jan 29, 2024
1 parent 340a593 commit fb37618
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
args:
- "--fix"
- repo: https://github.com/psf/black
rev: 22.6b0
rev: 24.1.1
hooks:
- id: black
language_version: python3.8
language_version: python3.10
2 changes: 2 additions & 0 deletions scripts/sort_contibutors/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def merge_users(l: list) -> list:
ranking = dict()

for a in l:

if a["username"] in ranking:
ranking[a["username"]] += a["ranking"]
else:
Expand Down Expand Up @@ -221,6 +222,7 @@ def get_contibutors_list(token: str) -> list:
token = os.getenv("USER_TOKEN")

if token is not None:

contributors = [
{"username": "f3rn0s", "name": "f3rn0s"},
{"username": "szh", "name": "Shlomo Zalman Heigh"},
Expand Down

0 comments on commit fb37618

Please sign in to comment.