Skip to content

Commit

Permalink
Use -p argument for pyright custom config file path (#1948)
Browse files Browse the repository at this point in the history
* [automation] Auto-update linters version, help and documentation

* Downgrade ansible-lint

* Use -p argument for pyright custom config file path

Fixes #1946

* changelog
  • Loading branch information
nvuillam authored Oct 8, 2022
1 parent ad3781e commit 029f1c4
Show file tree
Hide file tree
Showing 41 changed files with 529 additions and 449 deletions.
60 changes: 60 additions & 0 deletions .automation/generated/flavors-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,10 @@
[
"2022-10-05T01:21:27",
2611287
],
[
"2022-10-08T22:19:34",
2615556
]
],
"ci_light": [
Expand Down Expand Up @@ -1969,6 +1973,10 @@
[
"2022-10-05T01:21:27",
27373
],
[
"2022-10-08T22:19:34",
27759
]
],
"dart": [
Expand Down Expand Up @@ -3865,6 +3873,10 @@
[
"2022-10-05T01:21:27",
75849
],
[
"2022-10-08T22:19:34",
76765
]
],
"dotnet": [
Expand Down Expand Up @@ -4851,6 +4863,10 @@
[
"2022-10-05T01:21:27",
314946
],
[
"2022-10-08T22:19:34",
315590
]
],
"go": [
Expand Down Expand Up @@ -5837,6 +5853,10 @@
[
"2022-10-05T01:21:27",
13981
],
[
"2022-10-08T22:19:34",
14066
]
],
"java": [
Expand Down Expand Up @@ -6823,6 +6843,10 @@
[
"2022-10-05T01:21:27",
94448
],
[
"2022-10-08T22:19:34",
94902
]
],
"javascript": [
Expand Down Expand Up @@ -7809,6 +7833,10 @@
[
"2022-10-05T01:21:27",
153180
],
[
"2022-10-08T22:19:34",
154363
]
],
"php": [
Expand Down Expand Up @@ -8795,6 +8823,10 @@
[
"2022-10-05T01:21:27",
21582
],
[
"2022-10-08T22:19:34",
22127
]
],
"python": [
Expand Down Expand Up @@ -9781,6 +9813,10 @@
[
"2022-10-05T01:21:27",
108637
],
[
"2022-10-08T22:19:34",
109899
]
],
"ruby": [
Expand Down Expand Up @@ -10763,6 +10799,10 @@
[
"2022-10-05T01:21:27",
2623
],
[
"2022-10-08T22:19:34",
2635
]
],
"rust": [
Expand Down Expand Up @@ -11745,6 +11785,10 @@
[
"2022-10-05T01:21:27",
3980
],
[
"2022-10-08T22:19:34",
4000
]
],
"salesforce": [
Expand Down Expand Up @@ -12731,6 +12775,10 @@
[
"2022-10-05T01:21:27",
14219
],
[
"2022-10-08T22:19:34",
14311
]
],
"scala": [
Expand Down Expand Up @@ -13715,6 +13763,10 @@
[
"2022-10-05T01:21:27",
1334
],
[
"2022-10-08T22:19:34",
1334
]
],
"swift": [
Expand Down Expand Up @@ -14697,6 +14749,10 @@
[
"2022-10-05T01:21:27",
2516
],
[
"2022-10-08T22:19:34",
2540
]
],
"terraform": [
Expand Down Expand Up @@ -15683,6 +15739,10 @@
[
"2022-10-05T01:21:27",
117784
],
[
"2022-10-08T22:19:34",
119044
]
]
}
36 changes: 20 additions & 16 deletions .automation/generated/linter-helps.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
" [-q]",
" [-P [{min,basic,moderate,safety,shared,production} ...]]",
" [-p] [--progressive] [--project-dir PROJECT_DIR]",
" [-r RULESDIR] [-R] [--write [WRITE_LIST]] [--show-relpath]",
" [-t TAGS] [-v] [-x SKIP_LIST] [-w WARN_LIST]",
" [--enable-list ENABLE_LIST] [--nocolor] [--force-color]",
" [--exclude EXCLUDE_PATHS] [-c CONFIG_FILE] [--offline]",
" [--version]",
" [-r RULESDIR] [-R] [-s] [--write [WRITE_LIST]]",
" [--show-relpath] [-t TAGS] [-v] [-x SKIP_LIST]",
" [-w WARN_LIST] [--enable-list ENABLE_LIST] [--nocolor]",
" [--force-color] [--exclude EXCLUDE_PATHS] [-c CONFIG_FILE]",
" [--offline] [--version]",
" [lintables ...]",
"",
"positional arguments:",
Expand Down Expand Up @@ -99,6 +99,8 @@
" embedded rules from /venvs/ansible-",
" lint/lib/python3.10/site-packages/ansiblelint/rules",
" -R Keep default rules when using -r",
" -s, --strict Return non-zero exit code on warnings as well as",
" errors",
" --write [WRITE_LIST] Allow ansible-lint to reformat YAML files and run rule",
" transforms (Reformatting YAML files standardizes",
" spacing, quotes, etc. A rule transform can fix or",
Expand All @@ -124,9 +126,10 @@
" values",
" -w WARN_LIST, --warn-list WARN_LIST",
" only warn about these rules, unless overridden in",
" config file. Current version default value is:",
" experimental, jinja[spacing], name[casing],",
" name[play], role-name",
" config file. Current version default value is: avoid-",
" implicit, experimental, fqcn[action], fqcn[redirect],",
" jinja[spacing], name[casing], name[play], role-name,",
" warning[empty-playbook]",
" --enable-list ENABLE_LIST",
" activate optional rules by their tag name",
" --nocolor disable colored output, same as NO_COLOR=1",
Expand Down Expand Up @@ -461,9 +464,10 @@
" input).",
" --python-cell-magics TEXT When processing Jupyter Notebooks, add the",
" given magic to the list of known python-",
" magics (time, timeit, python3, prun, pypy,",
" python, capture). Useful for formatting",
" magics (pypy, time, python3, capture,",
" python, timeit, prun). Useful for formatting",
" cells with custom python magics.",
" -x, --skip-source-first-line Skip the first line of the source code.",
" -S, --skip-string-normalization",
" Don't normalize string quotes or prefixes.",
" -C, --skip-magic-trailing-comma",
Expand Down Expand Up @@ -504,7 +508,7 @@
" Exclusions are calculated first, inclusions",
" later. [default: /(\\.direnv|\\.eggs|\\.git|\\.h",
" g|\\.mypy_cache|\\.nox|\\.tox|\\.venv|venv|\\.svn",
" |_build|buck-",
" |\\.ipynb_checkpoints|_build|buck-",
" out|build|dist|__pypackages__)/]",
" --extend-exclude TEXT Like --exclude, but adds additional files",
" and directories on top of the excluded ones.",
Expand Down Expand Up @@ -641,7 +645,7 @@
" [--secrets-scan-file-type SECRETS_SCAN_FILE_TYPE]",
" [--enable-secret-scan-all-files]",
" [--block-list-secret-scan BLOCK_LIST_SECRET_SCAN]",
" [--summary-position {top,bottom}]",
" [--summary-position {bottom,top}]",
" [--skip-resources-without-violations]",
"",
"Infrastructure as code static analysis",
Expand Down Expand Up @@ -892,7 +896,7 @@
" --block-list-secret-scan BLOCK_LIST_SECRET_SCAN",
" List of files to filter out from the secret scanner",
" [env var: CKV_SECRETS_SCAN_BLOCK_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 @@ -3281,7 +3285,7 @@
" -o, --output String Output format (txt,json,sarif,html,xml), or path to a file with one of these extensions - default: txt",
" -l, --loglevel String Log level (error,warning,info) - either: error, warning, or info - default: info",
" --verbose More outputs in console, including performed fixes",
" --failon String Defines the error level where CLI will fail (return code = 1). error,warning,info or none. Every failure level includes the more critical ones. - either: error, warning, info, or none - default: none",
" --failon String Defines the error level where CLI will fail (return code = 1). error,warning,info or none. Every failure level includes the more critical ones. - either: error, warning, info, or none - default: info",
" --failonerror (Deprecated) Fails if at least one error is found",
" --failonwarning (Deprecated) Fails if at least one warning is found",
" --failoninfo (Deprecated) Fails if at least one error is found",
Expand Down Expand Up @@ -5065,7 +5069,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.273).",
"WARNING: there is a new pyright version available (v1.1.270 -> v1.1.274).",
"Please install the new version or set PYRIGHT_PYTHON_FORCE_VERSION to `latest`",
""
],
Expand Down Expand Up @@ -8452,7 +8456,7 @@
" terragrunt-use-partial-parse-config-cache Enables caching of includes during partial parsing operations. Will also be used for the --terragrunt-iam-role option if provided.",
"",
"VERSION:",
" v0.39.0",
" v0.39.1",
"",
"AUTHOR(S):",
" Gruntwork <www.gruntwork.io>",
Expand Down
16 changes: 8 additions & 8 deletions .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"actionlint": "1.6.20",
"ansible-lint": "6.7.0",
"ansible-lint": "6.8.0",
"arm-ttk": "0.0.0",
"bandit": "1.7.4",
"bash-exec": "5.1.16",
"bicep_linter": "Bicep.CLI.version.0.11.1",
"black": "22.8.0",
"black": "22.10.0",
"cfn-lint": "0.66.1",
"checkmake": "0.2.1",
"checkov": "2.1.244",
Expand All @@ -24,7 +24,7 @@
"dotnet-format": "000",
"dustilock": "0.0.0",
"editorconfig-checker": "2.4.0",
"eslint": "8.24.0",
"eslint": "8.25.0",
"eslint-plugin-jsonc": "2.4.0",
"flake8": "5.0.4",
"gherkin-lint": "0.0.0",
Expand All @@ -49,12 +49,12 @@
"markdownlint": "0.32.2",
"misspell": "0.3.4",
"mypy": "0.982",
"npm-groovy-lint": "10.1.0",
"npm-groovy-lint": "11.0.0",
"perlcritic": "1.140",
"php": "7.4.26",
"phpcs": "3.7.1",
"phplint": "3.0",
"phpstan": "1.8.7",
"phpstan": "1.8.8",
"pmd": "6.48.0",
"powershell": "7.2.6",
"prettier": "2.7.1",
Expand All @@ -74,7 +74,7 @@
"scalafix": "0.10.3",
"scss-lint": "0.59.0",
"secretlint": "5.2.4",
"semgrep": "0.115.0",
"semgrep": "0.116.0",
"sfdx-scanner": "2.8.0",
"sfdx-scanner-apex": "2.13.9",
"sfdx-scanner-aura": "2.13.9",
Expand All @@ -91,8 +91,8 @@
"swiftlint": "0.46.5",
"syft": "0.58.0",
"tekton-lint": "0.6.0",
"terraform-fmt": "1.3.1",
"terragrunt": "0.39.0",
"terraform-fmt": "1.3.2",
"terragrunt": "0.39.1",
"terrascan": "1.15.2",
"tflint": "0.41.0",
"trivy": "0.29.2",
Expand Down
Loading

0 comments on commit 029f1c4

Please sign in to comment.