Skip to content

Commit 619cc36

Browse files
Bump super-linter/super-linter from 7 to 8 (#1090)
* Bump super-linter/super-linter from 7 to 8 Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 7 to 8. - [Release notes](https://github.com/super-linter/super-linter/releases) - [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md) - [Commits](super-linter/super-linter@v7...v8) --- updated-dependencies: - dependency-name: super-linter/super-linter dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * lint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
1 parent 5129884 commit 619cc36

File tree

6 files changed

+4
-22
lines changed

6 files changed

+4
-22
lines changed

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
echo "VALIDATE_ALL_CODEBASE=false" >> $GITHUB_ENV
3030
- name: Lint Code Base
31-
uses: super-linter/super-linter/slim@v7
31+
uses: super-linter/super-linter/slim@v8
3232
env:
3333
DEFAULT_BRANCH: main
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Use more complete checks for generated HTML linting
3636
run: cp -f .github/linters/.htmlhintrc_morechecks .github/linters/.htmlhintrc
3737
- name: Lint Generated HTML
38-
uses: super-linter/super-linter/slim@v7
38+
uses: super-linter/super-linter/slim@v8
3939
env:
4040
DEFAULT_BRANCH: main
4141
FILTER_REGEX_INCLUDE: static/html/.*

server/faq.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from collections import OrderedDict
21
import re
2+
from collections import OrderedDict
33

44
ANCHOR_BIGQUERY = None
55

@@ -26,7 +26,6 @@ def load_faq():
2626

2727
# Finds the first anchor whose question contains a given string.
2828
def find_anchor(query):
29-
global anchors
3029
questions = [question for question in anchors if query.lower() in question.lower()]
3130
if len(questions):
3231
return anchors.get(questions[0])

server/reports.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from copy import deepcopy
33
from time import time
44

5-
65
from . import dates as date_util
76

87

@@ -22,7 +21,6 @@ class VizTypes:
2221

2322

2423
def update_reports():
25-
global MAX_REPORT_STALENESS
2624
global last_report_update
2725

2826
if (time() - last_report_update) < MAX_REPORT_STALENESS:
@@ -40,28 +38,24 @@ def update_reports():
4038

4139

4240
def get_reports():
43-
global reports_json
4441
update_reports()
4542

4643
return list(map(get_report, reports_json.get("_reports")))
4744

4845

4946
def get_featured_reports():
50-
global reports_json
5147
update_reports()
5248

5349
return map(get_report, reports_json.get("_featured"))
5450

5551

5652
def map_reports(report_id): # pragma: no cover
57-
global reports_json
5853
report = reports_json.get(report_id)
5954
report["id"] = report_id
6055
return report
6156

6257

6358
def get_report(report_id):
64-
global reports_json
6559
report = reports_json.get(report_id)
6660
if not report:
6761
return None
@@ -72,7 +66,6 @@ def get_report(report_id):
7266

7367

7468
def get_metric(metric_id):
75-
global reports_json
7669
metrics = reports_json.get("_metrics")
7770
metric = deepcopy(metrics.get(metric_id))
7871
if not metric: # pragma: no cover
@@ -82,7 +75,6 @@ def get_metric(metric_id):
8275

8376

8477
def get_similar_reports(metric_id, current_report_id):
85-
global reports_json
8678
similar_reports = {}
8779
reports = reports_json.get("_reports", [])
8880
for report_id in reports:
@@ -98,16 +90,10 @@ def get_similar_reports(metric_id, current_report_id):
9890

9991

10092
def get_dates():
101-
global report_dates
10293
return report_dates
10394

10495

10596
def get_latest_date(metric_id):
106-
global report_dates
107-
global latest_metric_dates
108-
global latest_metric_check
109-
global MAX_REPORT_STALENESS
110-
11197
# Check the cache before hitting GCS.
11298
latest_date = latest_metric_dates.get(metric_id)
11399
if latest_date: # pragma: no cover
@@ -128,7 +114,6 @@ def get_latest_date(metric_id):
128114

129115

130116
def get_lenses():
131-
global reports_json
132117
# TODO: Consider sorting the lenses by name.
133118
return reports_json.get("_lens", {})
134119

server/techreport.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ def update_report():
88

99

1010
def get_report():
11-
global tech_report_json
1211
update_report()
1312

1413
return tech_report_json

server/timestamps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import json
21
import datetime
2+
import json
33
import logging
44

55
timestamps_json = {}
@@ -13,7 +13,6 @@ def update_config():
1313

1414

1515
def get_timestamps_config():
16-
global timestamps_json
1716
return timestamps_json
1817

1918

0 commit comments

Comments
 (0)