Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb37618

Browse files
committed
Update black version
as the previous version is not working
1 parent 340a593 commit fb37618

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ repos:
5353
args:
5454
- "--fix"
5555
- repo: https://github.com/psf/black
56-
rev: 22.6b0
56+
rev: 24.1.1
5757
hooks:
5858
- id: black
59-
language_version: python3.8
59+
language_version: python3.10

scripts/sort_contibutors/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def merge_users(l: list) -> list:
176176
ranking = dict()
177177

178178
for a in l:
179+
179180
if a["username"] in ranking:
180181
ranking[a["username"]] += a["ranking"]
181182
else:
@@ -221,6 +222,7 @@ def get_contibutors_list(token: str) -> list:
221222
token = os.getenv("USER_TOKEN")
222223

223224
if token is not None:
225+
224226
contributors = [
225227
{"username": "f3rn0s", "name": "f3rn0s"},
226228
{"username": "szh", "name": "Shlomo Zalman Heigh"},

0 commit comments

Comments
 (0)