Self hosted FLOSS fitness/workout, nutrition and weight tracker
Automatic linting
Github-actionsaed774647d78
diff --git a/extras/authors/generate_authors_api.py b/extras/authors/generate_authors_api.pyindex ad2ed837e..7531c23fb 100644--- a/extras/authors/generate_authors_api.py+++ b/extras/authors/generate_authors_api.py@@ -28,7 +28,6 @@ CACHE_DIR = Path('commits_cache')BOT_AUTHORS = ('dependabot', 'github-actions')-@dataclassclass Person:"""A contributor or translator, normalized from GitHub commit data."""@@ -54,7 +53,6 @@ class Person:return ('user', self.username) if self.username else ('email', self.email)-def get_github_token() -> str:token = os.getenv('GITHUB_TOKEN')if not token:@@ -293,8 +291,7 @@ def generate_contributors_rst(contributors: list[Person], output_file: str = 'codef generate_translators_rst(- translators: dict[str, list[Person]],- output_file: str = 'translators.rst'+ translators: dict[str, list[Person]], output_file: str = 'translators.rst'):"""Cross-repo, deduplicated translators list as RST, grouped by language."""@@ -312,9 +309,7 @@ def generate_translators_rst(for language in sorted(translators.keys()):f.write(f'{language}\n')f.write('-' * len(language) + '\n\n')- sorted_people = sorted(- deduplicate(translators[language]), key=lambda p: p.name.lower()- )+ sorted_people = sorted(deduplicate(translators[language]), key=lambda p: p.name.lower())for p in sorted_people:entry = generate_rst_entry(p)if entry:@@ -359,8 +354,7 @@ if __name__ == '__main__':shutil.copy('wger-AUTHORS.md', '../../AUTHORS.md')print('Copied wger-AUTHORS.md to ../../AUTHORS.md')for repo in REPOSITORIES:-- #This repo+ # This repoif repo == 'wger':continue