Skip to content

Commit 8d443c3

Browse files
author
Artem Rys
authored
fix: pre-commit autoupdate (#598)
This is a noop commit just to trigger a new release.
1 parent 686f1ea commit 8d443c3

File tree

4 files changed

+31
-22
lines changed

4 files changed

+31
-22
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ repos:
2020
- id: check-merge-conflict
2121
- id: debug-statements
2222
- repo: https://github.com/psf/black
23-
rev: 21.12b0
23+
rev: 22.3.0
2424
hooks:
2525
- id: black

docs/conf.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121

2222
# -- Project information -----------------------------------------------------
2323

24-
project = u"pytest-splunk-addon"
25-
copyright = u"2021, Splunk, Inc."
26-
author = u"Splunk, Inc."
24+
project = "pytest-splunk-addon"
25+
copyright = "2021, Splunk, Inc."
26+
author = "Splunk, Inc."
2727

2828
# The short X.Y version
29-
version = u""
29+
version = ""
3030
# The full version, including alpha/beta/rc tags
31-
release = u""
31+
release = ""
3232

3333

3434
# -- General configuration ---------------------------------------------------
@@ -134,8 +134,8 @@
134134
(
135135
master_doc,
136136
"pytest-splunk-addon.tex",
137-
u"pytest-splunk-addon Documentation",
138-
u"Splunk, Inc.",
137+
"pytest-splunk-addon Documentation",
138+
"Splunk, Inc.",
139139
"manual",
140140
),
141141
]
@@ -149,7 +149,7 @@
149149
(
150150
master_doc,
151151
"pytest-splunk-addon",
152-
u"pytest-splunk-addon Documentation",
152+
"pytest-splunk-addon Documentation",
153153
[author],
154154
1,
155155
)
@@ -165,7 +165,7 @@
165165
(
166166
master_doc,
167167
"pytest-splunk-addon",
168-
u"pytest-splunk-addon Documentation",
168+
"pytest-splunk-addon Documentation",
169169
author,
170170
"pytest-splunk-addon",
171171
"One line description of project.",

pytest_splunk_addon/helmut/util/searchhelpers.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -889,12 +889,15 @@ def edit_datamodel(
889889
return response, content
890890

891891
def check_geobin(self, nightlysplunk, statsfunc, geobin):
892-
query = "search index=geo checkin.geolong>=%s checkin.geolong<%s checkin.geolat>=%s checkin.geolat<%s | stats %s" % (
893-
geobin["_geo_bounds_west"],
894-
geobin["_geo_bounds_east"],
895-
geobin["_geo_bounds_south"],
896-
geobin["_geo_bounds_north"],
897-
statsfunc,
892+
query = (
893+
"search index=geo checkin.geolong>=%s checkin.geolong<%s checkin.geolat>=%s checkin.geolat<%s | stats %s"
894+
% (
895+
geobin["_geo_bounds_west"],
896+
geobin["_geo_bounds_east"],
897+
geobin["_geo_bounds_south"],
898+
geobin["_geo_bounds_north"],
899+
statsfunc,
900+
)
898901
)
899902
job = nightlysplunk.jobs().create(query)
900903
job.wait()

pytest_splunk_addon/standard_lib/cim_tests/field_test_adapter.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,20 @@ def gen_validity_query(self):
7575
self.validity_query += "\n" f"| nomv {self.name}"
7676
self.validity_query += "\n" f"| eval {self.valid_field}={self.validity}"
7777
if self.expected_values:
78-
self.validity_query += "\n" '| eval {valid_field}=if(searchmatch("{valid_field} IN ({values})"), {valid_field}, null())'.format(
79-
valid_field=self.valid_field,
80-
values=self.get_query_from_values(self.expected_values),
78+
self.validity_query += (
79+
"\n"
80+
'| eval {valid_field}=if(searchmatch("{valid_field} IN ({values})"), {valid_field}, null())'.format(
81+
valid_field=self.valid_field,
82+
values=self.get_query_from_values(self.expected_values),
83+
)
8184
)
8285
if self.negative_values:
83-
self.validity_query += "\n" '| eval {valid_field}=if(searchmatch("{valid_field} IN ({values})"), null(), {valid_field})'.format(
84-
valid_field=self.valid_field,
85-
values=self.get_query_from_values(self.negative_values),
86+
self.validity_query += (
87+
"\n"
88+
'| eval {valid_field}=if(searchmatch("{valid_field} IN ({values})"), null(), {valid_field})'.format(
89+
valid_field=self.valid_field,
90+
values=self.get_query_from_values(self.negative_values),
91+
)
8692
)
8793
self.validity_query += (
8894
"\n"

0 commit comments

Comments
 (0)