Skip to content

Commit

Permalink
chore: pyupgrade hook and refactor (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Mar 22, 2022
1 parent 9543930 commit d25caf8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
args:
- --py38-plus
- repo: local
hooks:
- id: black
Expand Down
4 changes: 2 additions & 2 deletions app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def link_split(link):
return args


class Server(object):
class Server:
"""Main server servers static assets and renderds main page with links."""

DEFAULT_CACHE_TIMEOUT = 60 * 60 * 24 * 30
Expand Down Expand Up @@ -200,7 +200,7 @@ def run_webserver(app, config): # pragma: no cover


if __name__ == "__main__": # pragma: no cover
logger.info("Starting cat-page server version {0}".format(__version__))
logger.info(f"Starting cat-page server version {__version__}")
config = config()
app = create_app(config)
if config.dev:
Expand Down

0 comments on commit d25caf8

Please sign in to comment.