Skip to content

Commit d5326cd

Browse files
authored
release: 18.0.1 (#925)
* Update changelog.md * Update pre commit and black dependency * Reformat with black
1 parent 6808a1d commit d5326cd

File tree

14 files changed

+94
-146
lines changed

14 files changed

+94
-146
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v5.0.0
5+
rev: v6.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -21,11 +21,11 @@ repos:
2121
require_serial: true
2222
args: ["--rcfile=./pyproject.toml"]
2323
- repo: https://github.com/psf/black
24-
rev: 25.9.0
24+
rev: 26.1.0
2525
hooks:
2626
- id: black
2727
- repo: https://github.com/pycqa/isort
28-
rev: 6.0.0
28+
rev: 7.0.0
2929
hooks:
3030
- id: isort
3131
name: isort (python)
@@ -35,6 +35,6 @@ repos:
3535
- id: mypy
3636
additional_dependencies: [attrs, types-requests, types-psutil, types-PyYaml]
3737
- repo: https://github.com/google/yamlfmt
38-
rev: v0.15.0
38+
rev: v0.21.0
3939
hooks:
4040
- id: yamlfmt

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
## Upcoming Changes
22
### Breaking
33

4+
### Features
5+
6+
### Improvements
7+
8+
### Bugfix
9+
10+
## 18.0.1
11+
### Breaking
12+
413
### Features
514
* headers from incoming http requests can now be copied into events via `copy_headers_to_log` config in http input, `collect_meta` will be deprecated in the future
615
* add new `decoder` processor to decode values from event field, starting with `json`, `base64`, `clf` (see: https://en.wikipedia.org/wiki/Common_Log_Format), `nginx` parser for kubernetes ingress, `syslog_rfc3164`, `syslog_rfc3164_local`, `syslog_rfc5324`, `logfmt`, `cri`, `docker`, `decolorize` (removing color codes in logs)

logprep/connector/confluent_kafka/input.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
session.timeout.ms: "6000"
2828
auto.offset.reset: "earliest"
2929
"""
30+
3031
# pylint: enable=line-too-long
3132
import logging
3233
import os

logprep/filter/lucene_filter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
regex_fields:
9292
- ip_address
9393
"""
94+
9495
import logging
9596
import re
9697
from itertools import chain, zip_longest

logprep/ng/connector/confluent_kafka/input.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
session.timeout.ms: "6000"
2828
auto.offset.reset: "earliest"
2929
"""
30+
3031
# pylint: enable=line-too-long
3132
import logging
3233
import os

logprep/processor/generic_adder/rule.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@
7979
:inherited-members:
8080
:noindex:
8181
"""
82+
8283
# pylint: enable=anomalous-backslash-in-string
8384

8485
import copy
86+
8587
from attrs import define, field, validators
8688

8789
from logprep.processor.base.rule import InvalidRuleDefinitionError

logprep/run_logprep.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pylint: disable=logging-fstring-interpolation
22
"""This module can be used to start the logprep."""
3+
34
import logging
45
import logging.config
56
import os

logprep/run_ng.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pylint: disable=logging-fstring-interpolation
22
"""This module can be used to start the logprep."""
3+
34
import logging
45
import os
56
import signal

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ dependencies = [
9696
[project.optional-dependencies]
9797

9898
dev = [
99-
"black>=25.9.0",
99+
"black>=26.0.0",
100100
"httpx",
101101
"isort",
102102
"pylint",

tests/unit/connector/test_http_input.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ def create_credentials(tmp_path):
3030
secret_file_path = tmp_path / "secret-0.txt"
3131
secret_file_path.write_text("secret_password")
3232
credential_file_path = tmp_path / "credentials.yml"
33-
credential_file_path.write_text(
34-
f"""---
33+
credential_file_path.write_text(f"""---
3534
input:
3635
endpoints:
3736
/auth-json-secret:
@@ -43,8 +42,7 @@ def create_credentials(tmp_path):
4342
/.*/[A-Z]{{2}}/json$:
4443
username: user
4544
password: password
46-
"""
47-
)
45+
""")
4846

4947
return str(credential_file_path)
5048

0 commit comments

Comments
 (0)