Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[automation] Auto-update linters version, help and documentation #1894

Merged
merged 4 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .automation/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import subprocess
import sys
from datetime import date, datetime
from shutil import copyfile
from shutil import copyfile, which
from typing import Any
from urllib import parse as parse_urllib

Expand Down Expand Up @@ -2762,7 +2762,10 @@ def manage_output_variables():
def reformat_markdown_tables():
logging.info("Formatting markdown tables...")
# Call markdown-table-formatter with the list of files
format_md_tables_command = ["bash", "format-tables.sh"]
if sys.platform == "win32":
format_md_tables_command = ["bash", "format-tables.sh"]
else:
format_md_tables_command = ["./format-tables.sh"]
cwd = os.getcwd() + "/.automation"
logging.info("Running command: " + str(format_md_tables_command) + f" in cwd {cwd}")
process = subprocess.run(
Expand All @@ -2772,7 +2775,7 @@ def reformat_markdown_tables():
universal_newlines=True,
cwd=cwd,
shell=True,
executable=None if sys.platform == "win32" else "/bin/bash",
executable=None if sys.platform == "win32" else which("bash"),
)
stdout = utils.decode_utf8(process.stdout)
logging.info(f"Format table results: ({process.returncode})\n" + stdout)
Expand Down
58 changes: 29 additions & 29 deletions .automation/generated/flavors-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -941,8 +941,8 @@
2593961
],
[
"2022-09-21T01:11:21",
2595457
"2022-09-21T18:40:27",
2596689
]
],
"ci_light": [
Expand Down Expand Up @@ -1887,8 +1887,8 @@
25490
],
[
"2022-09-21T01:11:21",
25726
"2022-09-21T18:40:27",
25898
]
],
"dart": [
Expand Down Expand Up @@ -3743,8 +3743,8 @@
72263
],
[
"2022-09-21T01:11:21",
72593
"2022-09-21T18:40:27",
72782
]
],
"dotnet": [
Expand Down Expand Up @@ -4689,8 +4689,8 @@
312479
],
[
"2022-09-21T01:11:21",
312657
"2022-09-21T18:40:27",
312788
]
],
"go": [
Expand Down Expand Up @@ -5635,8 +5635,8 @@
13641
],
[
"2022-09-21T01:11:21",
13672
"2022-09-21T18:40:27",
13683
]
],
"java": [
Expand Down Expand Up @@ -6581,8 +6581,8 @@
92344
],
[
"2022-09-21T01:11:21",
92551
"2022-09-21T18:40:27",
92650
]
],
"javascript": [
Expand Down Expand Up @@ -7527,8 +7527,8 @@
147558
],
[
"2022-09-21T01:11:21",
147884
"2022-09-21T18:40:27",
148082
]
],
"php": [
Expand Down Expand Up @@ -8473,8 +8473,8 @@
18926
],
[
"2022-09-21T01:11:21",
19215
"2022-09-21T18:40:27",
19294
]
],
"python": [
Expand Down Expand Up @@ -9419,8 +9419,8 @@
103274
],
[
"2022-09-21T01:11:21",
103573
"2022-09-21T18:40:27",
103841
]
],
"ruby": [
Expand Down Expand Up @@ -10361,8 +10361,8 @@
2567
],
[
"2022-09-21T01:11:21",
2576
"2022-09-21T18:40:27",
2580
]
],
"rust": [
Expand Down Expand Up @@ -11303,7 +11303,7 @@
3936
],
[
"2022-09-21T01:11:21",
"2022-09-21T18:40:27",
3937
]
],
Expand Down Expand Up @@ -12249,8 +12249,8 @@
13813
],
[
"2022-09-21T01:11:21",
13827
"2022-09-21T18:40:27",
13914
]
],
"scala": [
Expand Down Expand Up @@ -13193,8 +13193,8 @@
1133
],
[
"2022-09-21T01:11:21",
1154
"2022-09-21T18:40:27",
1170
]
],
"swift": [
Expand Down Expand Up @@ -14135,8 +14135,8 @@
2423
],
[
"2022-09-21T01:11:21",
2433
"2022-09-21T18:40:27",
2440
]
],
"terraform": [
Expand Down Expand Up @@ -15081,8 +15081,8 @@
111610
],
[
"2022-09-21T01:11:21",
112106
"2022-09-21T18:40:27",
112434
]
]
}
10 changes: 5 additions & 5 deletions .automation/generated/linter-helps.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@
" input).",
" --python-cell-magics TEXT When processing Jupyter Notebooks, add the",
" given magic to the list of known python-",
" magics (timeit, python, capture, python3,",
" time, prun, pypy). Useful for formatting",
" magics (python3, time, python, capture,",
" timeit, prun, pypy). Useful for formatting",
" cells with custom python magics.",
" -S, --skip-string-normalization",
" Don't normalize string quotes or prefixes.",
Expand Down Expand Up @@ -554,7 +554,7 @@
" [--secrets-scan-file-type SECRETS_SCAN_FILE_TYPE]",
" [--enable-secret-scan-all-files]",
" [--black-list-secret-scan BLACK_LIST_SECRET_SCAN]",
" [--summary-position {top,bottom}]",
" [--summary-position {bottom,top}]",
"",
"Infrastructure as code static analysis",
"",
Expand Down Expand Up @@ -802,7 +802,7 @@
" --black-list-secret-scan BLACK_LIST_SECRET_SCAN",
" black file list to filter out from the secret scanner",
" [env var: CKV_SECRETS_SCAN_BLACK_LIST]",
" --summary-position {top,bottom}",
" --summary-position {bottom,top}",
" Chose whether the summary will be appended on top",
" (before the checks results) or on bottom (after check",
" results), default is on top.",
Expand Down Expand Up @@ -4963,7 +4963,7 @@
" --warnings Use exit code of 1 if warnings are reported",
" -w,--watch Continue to run and watch for changes",
"",
"WARNING: there is a new pyright version available (v1.1.270 -> v1.1.271).",
"WARNING: there is a new pyright version available (v1.1.270 -> v1.1.272).",
"Please install the new version or set PYRIGHT_PYTHON_FORCE_VERSION to `latest`",
""
],
Expand Down
8 changes: 4 additions & 4 deletions .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"black": "22.8.0",
"cfn-lint": "0.65.1",
"checkmake": "0.2.1",
"checkov": "2.1.219",
"checkov": "2.1.223",
"checkstyle": "10.3.3",
"chktex": "1.7.6",
"clippy": "0.1.63",
Expand All @@ -17,7 +17,7 @@
"cspell": "6.10.1",
"dartanalyzer": "0.0.0",
"devskim": "0.6.9",
"djlint": "1.17.0",
"djlint": "1.17.1",
"dockerfilelint": "1.8.0",
"dotenv-linter": "3.2.0",
"dotnet-format": "000",
Expand All @@ -43,7 +43,7 @@
"kubeval": "0.16.1",
"lintr": "0.0.0",
"luacheck": "1.0.0",
"markdown-link-check": "3.10.2",
"markdown-link-check": "3.10.3",
"markdown-table-formatter": "1.4.0",
"markdownlint": "0.32.2",
"misspell": "0.3.4",
Expand Down Expand Up @@ -86,7 +86,7 @@
"sql-lint": "1.0.0",
"sqlfluff": "1.3.1",
"standard": "17.0.0",
"stylelint": "14.12.0",
"stylelint": "14.12.1",
"swiftlint": "0.46.5",
"syft": "0.57.0",
"tekton-lint": "0.6.0",
Expand Down
Loading