Skip to content

Commit 5e2de7d

Browse files
committed
KIT-4553 increased version
1 parent 0ca2d69 commit 5e2de7d

File tree

8 files changed

+7
-15
lines changed

8 files changed

+7
-15
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ FROM mcr.microsoft.com/devcontainers/python:3.12-bookworm
33

44
# Uninstall pre-installed formatting and linting tools
55
# They would conflict with our pinned versions
6-
RUN pipx uninstall ruff
76
RUN pipx uninstall mypy

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"files.trimTrailingWhitespace": true,
77
"files.exclude": {
88
".coverage": true,
9-
".flake8": true,
109
".gitattributes": true,
1110
".gitignore": true,
1211
".idea": true,

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,9 @@ Just install vscode with dev containers extension. All required extensions and c
9797
### With pycharm
9898

9999
- Install latest pycharm
100-
- Install pycharm plugin BlackConnect
101100
- Install pycharm plugin Mypy
102101
- Configure the python interpreter/venv
103102
- pip install requirements-dev.txt
104-
- pip install black[d]
105-
- Ctl+Alt+S => Check Tools => BlackConnect => Trigger when saving changed files
106-
- Ctl+Alt+S => Check Tools => BlackConnect => Trigger on code reformat
107-
- Ctl+Alt+S => Click Tools => BlackConnect => "Load from pyproject.yaml" (ensure line length is 120)
108-
- Ctl+Alt+S => Click Tools => BlackConnect => Configure path to the blackd.exe at the "local instance" config (e.g. C:\Python310\Scripts\blackd.exe)
109-
- Ctl+Alt+S => Click Tools => Actions on save => Reformat code
110103
- Restart pycharm
111104

112105
## How to publish

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sag-py-web-common"
3-
version = "1.0.6"
3+
version = "1.0.7"
44
description = "Small helper functions for web projects"
55
authors = ["Samhammer AG"]
66
license = "MIT"

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ anyio >= 4.9.0
33
build >= 1.2.2.post1
44
coverage
55
coverage-lcov
6-
flake8>=7.2.0
76
httpx >= 0.28.1
87
mock
98
mypy

sag_py_web_common/filtered_access_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def log(self, scope: HTTPScope, info: AccessInfo) -> None:
4040
extra_args = {"execution_time": info["end_time"] - info["start_time"]}
4141
if (
4242
info["response"].get("status")
43-
and str(info["response"]["status"])[0] == "2" # type: ignore
43+
and str(info["response"]["status"])[0] == "2" # type: ignore
4444
):
4545
self.logger.info(
4646
self.format, AccessLogAtoms(scope, info), extra=extra_args

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setuptools.setup(
1313
name="sag-py-web-common",
14-
version="1.0.6",
14+
version="1.0.7",
1515
description="Small helper functions for web projects",
1616
long_description=LONG_DESCRIPTION,
1717
long_description_content_type="text/markdown",

tests/test_filtered_access_logger.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ def test_excluding_logs_via_header_is_possible(
180180

181181
# pylint: disable=W0212:protected-access
182182
actual = FilteredAccessLoggerMiddleware._is_excluded_via_header(
183-
scope, exclude_header # type: ignore
183+
scope, # type: ignore
184+
exclude_header,
184185
)
185186

186187
assert actual == path_is_ignored
@@ -197,7 +198,8 @@ def test_not_configured_exclude_header_does_not_cause_any_logs_to_be_excluded(
197198

198199
# pylint: disable=W0212:protected-access
199200
actual = FilteredAccessLoggerMiddleware._is_excluded_via_header(
200-
scope, exclude_header # type: ignore
201+
scope, # type: ignore
202+
exclude_header,
201203
)
202204

203205
assert actual == path_is_ignored

0 commit comments

Comments
 (0)