Skip to content

Commit 786027f

Browse files
Bump super-linter/super-linter from 7 to 8 (#4172)
* 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 3aa5b73 commit 786027f

File tree

9 files changed

+16
-22
lines changed

9 files changed

+16
-22
lines changed

.github/workflows/linter.yml

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

.github/workflows/test_website.yml

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

src/server/config.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@
2323

2424

2525
def get_config(year):
26-
global config_json
2726
return config_json[year] if year in config_json else None
2827

2928

3029
def get_timestamps_config():
31-
global timestamps_json
3230
return timestamps_json
3331

3432

@@ -68,10 +66,6 @@ def get_live(json_config):
6866

6967

7068
def update_config():
71-
global SUPPORTED_YEARS
72-
global SUPPORTED_CHAPTERS
73-
global SUPPORTED_LANGUAGES
74-
global config_json
7569
global timestamps_json
7670
global contributors
7771

src/static/css/almanac.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,10 +1233,10 @@ p.copyright a {
12331233
top: 100%;
12341234
left: -20px; /* overcome the parent container's 20px side padding */
12351235
right: -20px; /* overcome the parent container's 20px side padding */
1236-
border-top: 1px solid rgba(242, 242, 242, 0.2);
1236+
border-top: 1px solid rgb(242, 242, 242, 0.2);
12371237
padding: 60px 30px 30px;
12381238
background-color: #677486;
1239-
box-shadow: 0 0 16px 0 rgba(78, 85, 100, 1);
1239+
box-shadow: 0 0 16px 0 rgb(78, 85, 100, 1);
12401240
z-index: 2;
12411241
}
12421242

src/static/css/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ p {
308308
max-width: 100%;
309309
height: auto;
310310
z-index: -1;
311-
background: linear-gradient(180deg, rgba(0, 0, 0, 0) calc(70% - 1px), rgb(192, 192, 192) calc(50%), rgba(0, 0, 0, 0) calc(70% + 1px));
311+
background: linear-gradient(180deg, rgb(0, 0, 0, 0) calc(70% - 1px), rgb(192, 192, 192) calc(50%), rgb(0, 0, 0, 0) calc(70% + 1px));
312312
}
313313

314314
@media (max-width: 87.5em) and (min-width: 56.26em) {

src/static/css/page.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
.floating-card {
1212
border-radius: 16px;
1313
border-radius: 1rem;
14-
box-shadow: 0 0 16px 0 rgba(78, 85, 100, 0.2);
15-
box-shadow: 0 0 1rem 0 rgba(78, 85, 100, 0.2);
14+
box-shadow: 0 0 16px 0 rgb(78, 85, 100, 0.2);
15+
box-shadow: 0 0 1rem 0 rgb(78, 85, 100, 0.2);
1616
}
1717

1818
.table-wrap {
@@ -87,7 +87,7 @@
8787
width: 100%;
8888
margin: 0;
8989
padding-left: 0;
90-
border-top: 1px solid rgba(26, 43, 73, 0.1);
90+
border-top: 1px solid rgb(26, 43, 73, 0.1);
9191
}
9292

9393
.index ul ul:first-child {
@@ -98,7 +98,7 @@
9898
position: relative;
9999
font-weight: 900;
100100
list-style-type: none;
101-
border-bottom: 1px solid rgba(26, 43, 73, 0.1);
101+
border-bottom: 1px solid rgb(26, 43, 73, 0.1);
102102
}
103103

104104
.index ul:last-child li:last-child {
@@ -116,7 +116,7 @@
116116

117117
.index li li {
118118
font-weight: 700;
119-
border-bottom: 1px solid rgba(26, 43, 73, 0.1);
119+
border-bottom: 1px solid rgb(26, 43, 73, 0.1);
120120
}
121121

122122
.index li li a {
@@ -130,7 +130,7 @@
130130

131131
.index li li li {
132132
font-weight: normal;
133-
border-bottom: 1px solid rgba(26, 43, 73, 0.1);
133+
border-bottom: 1px solid rgb(26, 43, 73, 0.1);
134134
}
135135

136136
.index li li li a {
@@ -249,7 +249,7 @@
249249

250250
.chapter-cta {
251251
border: none;
252-
box-shadow: 0 0 1rem 0 rgba(78, 85, 100, 0.2);
252+
box-shadow: 0 0 1rem 0 rgb(78, 85, 100, 0.2);
253253
padding: 10px 12px;
254254
margin-top: 1em;
255255
margin-left: 1em;
@@ -387,7 +387,7 @@
387387
padding: 16px;
388388
border: 1px solid #e0e0e0;
389389
border-radius: 4px;
390-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
390+
box-shadow: 0 1px 3px rgb(0, 0, 0, 0.1);
391391
font-family: monospace;
392392
background-color: #f9f9f9;
393393
overflow-x: auto;

src/static/js/almanac.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function highResolutionCanvasSupported() {
342342
largeCanvasSupported = Boolean(ctx.getImageData(1199, 741, 1, 1).data[3]) == 1;
343343
}
344344
}
345-
catch (e) {
345+
catch {
346346
largeCanvasSupported = false;
347347
}
348348

src/tools/generate/generate_chapters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const generate_chapters = async (chapter_match) => {
8484

8585
try {
8686
[, language, year, chapter] = file.match(re);
87-
} catch(error) {
87+
} catch {
8888
// No match - skip to next in for loop
8989
continue;
9090
}

src/tools/generate/generate_figure_images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const generate_images = async (chapter_match) => {
5151

5252
try {
5353
[, language, year, chapter] = file.match(re);
54-
} catch(error) {
54+
} catch {
5555
// No match - skip to next in for loop
5656
continue;
5757
}

0 commit comments

Comments
 (0)