Skip to content

Commit

Permalink
Bump autofix-ci/action from dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a …
Browse files Browse the repository at this point in the history
…to ff86a557419858bb967097bfc916833f5647fa8c in the actions group (#12999)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <[email protected]>
  • Loading branch information
dependabot[bot] and larsoner authored Dec 2, 2024
1 parent 096243f commit ed2fd8d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- run: pip install --upgrade towncrier pygithub gitpython numpy
- run: python ./.github/actions/rename_towncrier/rename_towncrier.py
- run: python ./tools/dev/ensure_headers.py
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
3 changes: 3 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Fu-Te Wong <[email protected]> zuxfoucault <[email protected]>
Félix Raimundo <[email protected]> Felix Raimundo <[email protected]>
Gansheng Tan <[email protected]> Gansheng TAN <[email protected]>
Gennadiy Belonosov <[email protected]> Gennadiy <[email protected]>
Gennadiy Belonosov <[email protected]> Genuster <[email protected]>
Giorgio Marinato <[email protected]> neurogima <[email protected]>
Giulio Gabrieli <[email protected]>
Guillaume Dumas <[email protected]> deep-introspection <[email protected]>
Expand All @@ -135,6 +136,7 @@ Ivo de Jong <[email protected]> ivopascal <[email protected]>
Jaakko Leppakangas <[email protected]> Jaakko Leppakangas <[email protected]>
Jaakko Leppakangas <[email protected]> jaeilepp <[email protected]>
Jaakko Leppakangas <[email protected]> jaeilepp <[email protected]>
Jacob Phelan <[email protected]>
Jair Montoya <[email protected]> jmontoyam <[email protected]>
Jan Ebert <[email protected]> janEbert <[email protected]>
Jan Sedivy <[email protected]>
Expand Down Expand Up @@ -354,3 +356,4 @@ Yousra Bekhti <[email protected]> Yousra BEKHTI <[email protected]>
Yousra Bekhti <[email protected]> yousrabk <[email protected]>
Zhi Zhang <[email protected]> ZHANG Zhi <[email protected]>
Zhi Zhang <[email protected]> ZHANG Zhi <[email protected]>
Ziyi ZENG <[email protected]>
14 changes: 9 additions & 5 deletions doc/sphinxext/credit_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@

# Allowed singletons
single_names = "btkcodedev buildqa sviter Akshay".split()
# Allowed abbrevitaions in first/last name
abbreviations = ["T. Wang"]
# Exceptions, e.g., abbrevitaions in first/last name or all-caps
exceptions = [
"T. Wang",
"Ziyi ZENG",
]
# Manual renames
manual_renames = {
"alexandra": "Alexandra Corneyllie", # 7600
Expand All @@ -53,6 +56,7 @@
"enzo": "Enzo Altamiranda", # 11351
"Frostime": "Yiping Zuo", # 11773
"Gennadiy": "Gennadiy Belonosov", # 11720
"Genuster": "Gennadiy Belonosov", # 12936
"Hamid": "Hamid Maymandi", # 10849
"jwelzel": "Julius Welzel", # 11118
"Martin": "Martin Billinger", # 8099, TODO: Check
Expand All @@ -77,9 +81,9 @@ def _good_name(name):
return False
if " " not in name and name not in single_names: # at least two parts
return False
if name not in abbreviations and "." in name.split()[0] or "." in name.split()[-1]:
if name not in exceptions and "." in name.split()[0] or "." in name.split()[-1]:
return False
if " " in name and name not in abbreviations:
if " " in name and name not in exceptions:
first = name.split()[0]
last = name.split()[-1]
if first == first.upper() or last == last.upper(): # e.g., KING instead of King
Expand Down Expand Up @@ -234,7 +238,7 @@ def generate_credit_rst(app=None, *, verbose=False):
name_where = expected_bad_names.get(name, name)
if last == name and name not in single_names:
bad_names.add(f"Singleton: {name_where}")
if "." in last or "." in first and name not in abbreviations:
if "." in last or "." in first and name not in exceptions:
bad_names.add(f"Abbreviation: {name_where}")
bad_names = sorted(bad_names)
for last, names in last_map.items():
Expand Down

0 comments on commit ed2fd8d

Please sign in to comment.