Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat with black 24.1 #171

Merged
merged 1 commit into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions webtranslate/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Configuration and global routines of the translator service.
"""

import logging
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions webtranslate/data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Project data.
"""

import calendar
import functools
import json
Expand Down
1 change: 1 addition & 0 deletions webtranslate/loader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Helper functions for loading an Xml tree.
"""

import logging

from xml.dom import minidom
Expand Down
1 change: 1 addition & 0 deletions webtranslate/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Main program.
"""

import logging

from wsgiref.simple_server import WSGIRequestHandler
Expand Down
1 change: 1 addition & 0 deletions webtranslate/newgrf/language_file.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Language file processing.
"""

import codecs
import re

Expand Down
1 change: 1 addition & 0 deletions webtranslate/newgrf/language_info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Meta information about languages.
"""

import logging
import os
import re
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/download_language.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Download a language file.
"""

from .. import (
config,
data,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/download_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
en_GB,,2015-06-07T12:33:35Z

"""

from .. import (
config,
data,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/language_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@


"""

from ..bottle import (
response,
route,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/login.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Login/logout
"""

from urllib.parse import quote

from .. import utils, users
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/newproject.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Create a new project.
"""

from .. import (
config,
project_type,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Page of a single project.
"""

from .. import config
from ..bottle import (
abort,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/project_settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Settings of a project.
"""

from .. import (
config,
utils,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/projects.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Projects overview page.
"""

from .. import config
from ..bottle import route
from ..protect import protected
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/root.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Root page.
"""

from ..bottle import (
HTTPResponse,
route,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/upload_language.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Upload a language file.
"""

from .. import (
config,
data,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/pages/user_profile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Projects overview page.
"""

from .. import (
config,
data,
Expand Down
1 change: 1 addition & 0 deletions webtranslate/protect.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Bottle authentication decorator.
"""

import datetime
import secrets

Expand Down
1 change: 1 addition & 0 deletions webtranslate/rights.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- TRANSLATOR: Translator of a language in a project
- *: Always matches
"""

import logging
import re

Expand Down
1 change: 1 addition & 0 deletions webtranslate/userauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

Supplies user and authentication context for requests.
"""

from . import rights


Expand Down
1 change: 1 addition & 0 deletions webtranslate/users/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

In particular the user management is very poor.
"""

import configparser
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions webtranslate/users/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
User authentication and authorization via github teams.

"""

import logging
import requests
import requests_oauthlib
Expand Down
1 change: 1 addition & 0 deletions webtranslate/users/redmine.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

This code is not thread-safe!!
"""

import hashlib
import logging
import time
Expand Down
Loading