Skip to content

Commit 7ad74ca

Browse files
committed
fix: allow longer lines
1 parent 2567a2a commit 7ad74ca

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,27 @@ repos:
4040
rev: 5.12.0
4141
hooks:
4242
- id: isort
43-
args: ["--profile", "black", "--skip-glob", "/builds/*"]
43+
args:
44+
[
45+
"--profile",
46+
"black",
47+
"--line-length",
48+
"110",
49+
"--skip-glob",
50+
"/builds/*",
51+
]
4452

4553
# Python code formatting
4654
- repo: https://github.com/psf/black
4755
rev: 22.3.0
4856
hooks:
4957
- id: black
58+
args: ["--line-length", "110"]
5059

5160
# Python code formatting in code blocks inside docs
5261
- repo: https://github.com/asottile/blacken-docs
5362
rev: v1.12.1
5463
hooks:
5564
- id: blacken-docs
65+
args: ["--line-length", "110"]
5666
additional_dependencies: [black==22.3.0]

tests/load-test/locustfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class FizzbuzzUser(HttpUser):
2121
@staticmethod
2222
def log_response(endpoint: str, status_code: int, response: Response):
2323
if response.status_code == status_code:
24-
logger.info(f"GET {endpoint} - success")
24+
logger.info(f"GET {endpoint} {status_code} [success]")
2525
else:
26-
logger.error(f"GET {endpoint} - fail")
26+
logger.error(f"GET {endpoint} {status_code} [fail: got {response.status_code}]")
2727

2828
@task(10)
2929
def test_get_service_info(self):

0 commit comments

Comments
 (0)