Skip to content

Commit 49380c1

Browse files
authored
Merge pull request nabla-c0d3#623 from nabla-c0d3/dev
SSLyze 5.2.0
2 parents 8f78fb1 + fc07035 commit 49380c1

File tree

76 files changed

+21620
-21712
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+21620
-21712
lines changed

.github/workflows/build_windows_exe.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@ on:
99
jobs:
1010
build:
1111

12-
runs-on: windows-2019
12+
runs-on: windows-2022
1313

1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Set up Python
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.8
19+
python-version: "3.11"
2020

21-
- name: Install pip and cx-freeze
22-
run: python -m pip install --upgrade pip pipenv setuptools cx-freeze==6.13.1
21+
- name: Install pip
22+
run: python -m pip install --upgrade pip setuptools wheel
2323

24-
- name: Install SSLyze dependencies
25-
run: |
26-
python -m pip install .
27-
python -m pip uninstall sslyze -y
24+
- name: Install sslyze dependencies
25+
run: python -m pip install -e .
26+
27+
- name: Install dev dependencies including cx_freeze
28+
run: python -m pip install -r requirements-dev.txt
2829

2930
- name: Build Windows executable
3031
run: python setup.py build_exe

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: python -m pip install -e .
3131

3232
- name: Install dev dependencies
33-
run: python -m pip install -r dev-requirements.txt
33+
run: python -m pip install -r requirements-dev.txt
3434

3535
- name: Run linters
3636
# Only do linting once
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# TODO(#617): Delete this file
2+
name: Run tests with pydantic 1.10
3+
4+
on:
5+
push:
6+
branches: [release]
7+
pull_request:
8+
branches: [ release, dev ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.7
20+
21+
- name: Install sslyze dependencies
22+
run: |
23+
python -m pip install --upgrade pip setuptools
24+
python -m pip install -e .
25+
26+
- name: Install pydantic 1.10
27+
run: python -m pip install "pydantic<2"
28+
29+
- name: Install dev dependencies
30+
run: python -m pip install -r requirements-dev.txt
31+
32+
- name: Run tests
33+
run: python -m invoke test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ To setup a development environment:
9090
```
9191
$ pip install --upgrade pip setuptools wheel
9292
$ pip install -e .
93-
$ pip install -r dev-requirements.txt
93+
$ pip install -r requirements-dev.txt
9494
```
9595

9696
The tests can then be run using:

api_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def example_json_result_output(
123123
date_scans_started=date_scans_started,
124124
date_scans_completed=date_scans_completed,
125125
)
126-
json_output_as_str = json_output.json(sort_keys=True, indent=4, ensure_ascii=True)
126+
json_output_as_str = json_output.json() # TODO(#617): Switch to model_dump_json()
127127
json_file_out.write_text(json_output_as_str)
128128

129129

docs/documentation/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 8775535e1305c0f1b2492fd7e3715a83
3+
config: 7ed96ce74548bb7ceae0da1d5b1f50af
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/documentation/_static/alabaster.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ table.footnote td {
419419
}
420420

421421
dl {
422-
margin: 0;
422+
margin-left: 0;
423+
margin-right: 0;
424+
margin-top: 0;
423425
padding: 0;
424426
}
425427

docs/documentation/_static/basic.css

Lines changed: 46 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -222,7 +222,7 @@ table.modindextable td {
222222
/* -- general body styles --------------------------------------------------- */
223223

224224
div.body {
225-
min-width: 450px;
225+
min-width: 360px;
226226
max-width: 800px;
227227
}
228228

@@ -237,14 +237,8 @@ a.headerlink {
237237
visibility: hidden;
238238
}
239239

240-
a.brackets:before,
241-
span.brackets > a:before{
242-
content: "[";
243-
}
244-
245-
a.brackets:after,
246-
span.brackets > a:after {
247-
content: "]";
240+
a:visited {
241+
color: #551A8B;
248242
}
249243

250244
h1:hover > a.headerlink,
@@ -335,12 +329,16 @@ p.sidebar-title {
335329
font-weight: bold;
336330
}
337331

332+
nav.contents,
333+
aside.topic,
338334
div.admonition, div.topic, blockquote {
339335
clear: left;
340336
}
341337

342338
/* -- topics ---------------------------------------------------------------- */
343339

340+
nav.contents,
341+
aside.topic,
344342
div.topic {
345343
border: 1px solid #ccc;
346344
padding: 7px;
@@ -379,13 +377,17 @@ div.body p.centered {
379377

380378
div.sidebar > :last-child,
381379
aside.sidebar > :last-child,
380+
nav.contents > :last-child,
381+
aside.topic > :last-child,
382382
div.topic > :last-child,
383383
div.admonition > :last-child {
384384
margin-bottom: 0;
385385
}
386386

387387
div.sidebar::after,
388388
aside.sidebar::after,
389+
nav.contents::after,
390+
aside.topic::after,
389391
div.topic::after,
390392
div.admonition::after,
391393
blockquote::after {
@@ -428,10 +430,6 @@ table.docutils td, table.docutils th {
428430
border-bottom: 1px solid #aaa;
429431
}
430432

431-
table.footnote td, table.footnote th {
432-
border: 0 !important;
433-
}
434-
435433
th {
436434
text-align: left;
437435
padding-right: 5px;
@@ -615,19 +613,26 @@ ul.simple p {
615613
margin-bottom: 0;
616614
}
617615

618-
dl.footnote > dt,
619-
dl.citation > dt {
616+
aside.footnote > span,
617+
div.citation > span {
620618
float: left;
621-
margin-right: 0.5em;
622619
}
623-
624-
dl.footnote > dd,
625-
dl.citation > dd {
620+
aside.footnote > span:last-of-type,
621+
div.citation > span:last-of-type {
622+
padding-right: 0.5em;
623+
}
624+
aside.footnote > p {
625+
margin-left: 2em;
626+
}
627+
div.citation > p {
628+
margin-left: 4em;
629+
}
630+
aside.footnote > p:last-of-type,
631+
div.citation > p:last-of-type {
626632
margin-bottom: 0em;
627633
}
628-
629-
dl.footnote > dd:after,
630-
dl.citation > dd:after {
634+
aside.footnote > p:last-of-type:after,
635+
div.citation > p:last-of-type:after {
631636
content: "";
632637
clear: both;
633638
}
@@ -644,10 +649,6 @@ dl.field-list > dt {
644649
padding-right: 5px;
645650
}
646651

647-
dl.field-list > dt:after {
648-
content: ":";
649-
}
650-
651652
dl.field-list > dd {
652653
padding-left: 0.5em;
653654
margin-top: 0em;
@@ -673,6 +674,16 @@ dd {
673674
margin-left: 30px;
674675
}
675676

677+
.sig dd {
678+
margin-top: 0px;
679+
margin-bottom: 0px;
680+
}
681+
682+
.sig dl {
683+
margin-top: 0px;
684+
margin-bottom: 0px;
685+
}
686+
676687
dl > dd:last-child,
677688
dl > dd:last-child > :last-child {
678689
margin-bottom: 0;
@@ -741,6 +752,14 @@ abbr, acronym {
741752
cursor: help;
742753
}
743754

755+
.translated {
756+
background-color: rgba(207, 255, 207, 0.2)
757+
}
758+
759+
.untranslated {
760+
background-color: rgba(255, 207, 207, 0.2)
761+
}
762+
744763
/* -- code displays --------------------------------------------------------- */
745764

746765
pre {

0 commit comments

Comments
 (0)