|
6 | 6 | - Markdown Reports for showing them in the GitHub Actions Summary |
7 | 7 | - a pylint.txt for diff-quality to ensure no regressions in diffs. |
8 | 8 |
|
9 | | -Pylint for Python2 does not support JSONReporter, so this wrapper only supports |
10 | | -the native Python3 checks, not the 2to3 conversion checks selected by the --py3k |
11 | | -options provied only in the Pylint for Python2. |
12 | | -The older pylint-2.16 could be checked if it supports both. |
13 | | -
|
14 | | -The output for GitHub of this script is fitered for putting the |
15 | | -focus on severen warnings for the Python3 transition, expecially |
16 | | -the encoding warnings are important. |
| 9 | +The output for GitHub of this script is filtered for focussing on severe warnings. |
| 10 | +Especially, the encoding warnings are important. |
17 | 11 |
|
18 | 12 | On stdout, the format used by GitHub to generate error annotations us used. |
19 | 13 | These error annotations are shown on the top of the GitHub Action summary page |
20 | 14 | and are also shown in the diff view at the their code locations. |
21 | 15 |
|
22 | 16 | It also generates a markdown report including two Markdown |
23 | | -tables (one for summary, one with the individual erros) |
| 17 | +tables (one for summary, one with the individual errors) |
24 | 18 | which can be viewed locally and is also shown in the GitHub |
25 | 19 | Action's Summary Report. |
26 | 20 | """ |
@@ -99,7 +93,7 @@ def cleanup_results_dict(r, sym): |
99 | 93 | # This is illegal according to: |
100 | 94 | # https://docs.python.org/3/reference/datamodel.html#object.__hash__ |
101 | 95 | # |
102 | | -# Reference: pylint3 removed the --py3k checker "because the transition is bedind us": |
| 96 | +# Reference: pylint3 removed the --py3k checker "because the transition is behind us": |
103 | 97 | # https://github.com/pylint-dev/pylint/blob/main/pylint/extensions/eq_without_hash.py |
104 | 98 | # |
105 | 99 | # But some checks are still useful in python3 after all, and this is the remnant of it. |
@@ -147,7 +141,6 @@ def pylint_project(check_dirs: List[str], errorlog: TextIO, branch_url: str): |
147 | 141 | lineno = r["line"] |
148 | 142 | # Write errors in the format for diff-quality to check against regressions: |
149 | 143 | errorlog.write(f"{path}:{lineno}: [{msg_id}({sym}), {r['obj']}] {msg}\n") |
150 | | - # For suggestions to fix existing warnings, be more focussed on serverity: |
151 | 144 | if not msg: |
152 | 145 | continue |
153 | 146 |
|
@@ -214,7 +207,7 @@ def main(dirs: List[str], output_file: str, pylint_logfile: str, branch_url: str |
214 | 207 | with open(pylint_logfile, "w", encoding="utf-8") as txt_out: |
215 | 208 | panda_overview, panda_results = pylint_project(dirs, txt_out, branch_url) |
216 | 209 |
|
217 | | - # Write the panda dable to a markdown output file: |
| 210 | + # Write the panda table to a markdown output file: |
218 | 211 | summary_file = output_file or os.environ.get("GITHUB_STEP_SUMMARY") |
219 | 212 | if not summary_file: |
220 | 213 | return |
|
0 commit comments