Fix broken linter workflows (#8933)

* bandit 1.8.1 removed some of the checks, so remove them from our
  config.

* pylint 2.x doesn't support Python 3.12, and GitHub just switched their
  `ubuntu-latest` runners to Ubuntu 24.04, where 3.12 is the default. It's
  complicated to update pylint, so revert the runner back to Ubuntu 22.04
  for now.
This commit is contained in:
Roman Donchenko
2025-01-13 17:55:58 +02:00
committed by GitHub
parent af8bfe3ce7
commit 42bc3452bb
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -1,9 +1,7 @@
[bandit]
# B101 : assert_used
# B102 : exec_used
# B320 : xml_bad_etree
# B404 : import_subprocess
# B406 : import_xml_sax
# B410 : import_lxml
skips: B101,B102,B320,B404,B406,B410
skips: B101,B102,B404,B406
exclude: **/tests/**,tests
+1 -1
View File
@@ -2,7 +2,7 @@ name: Pylint
on: pull_request
jobs:
Linter:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04 # TODO: update pylint to 3.x and change this back to ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: files