Skip to content

Commit 236d4c6

Browse files
CI/LINT: fix python linting + pin versions (#240)
1 parent 1ffaf09 commit 236d4c6

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ repos:
77
entry: bash -c "yarn build:production"
88
files: ^src/*
99
- repo: https://github.com/psf/black
10-
rev: 19.10b0
10+
rev: 20.8b1
1111
hooks:
1212
- id: black
13-
language_version: python3.6
13+
language_version: python3
1414
- repo: https://gitlab.com/pycqa/flake8
15-
rev: 3.7.9
15+
rev: 3.8.3
1616
hooks:
1717
- id: flake8

docs/serve.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@
2222

2323
class CacheStaticHandler(web.StaticFileHandler):
2424
def get_cache_time(self, *args, **kwargs):
25-
""" always return a fairly long time. real deployments would have a more
26-
robust solution
25+
"""always return a fairly long time. real deployments would have a more
26+
robust solution
2727
"""
2828
return int(1e10)
2929

3030

3131
def make_app():
32-
""" create and return (but do not start) a tornado app
33-
"""
32+
"""create and return (but do not start) a tornado app"""
3433
app = web.Application(
3534
[(r"^/(.*)", CacheStaticHandler, dict(path=SETTINGS["static_path"]))],
3635
**SETTINGS
@@ -40,8 +39,7 @@ def make_app():
4039

4140

4241
def main(port, host):
43-
""" start a tornado app on the desired port
44-
"""
42+
"""start a tornado app on the desired port"""
4543
app = make_app()
4644
app.listen(port, host)
4745
url = "http://{}:{}/".format(host, port)

0 commit comments

Comments
 (0)