Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-support
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
ci-support
Commits
8cf069cc
Commit
8cf069cc
authored
3 months ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Pylint: use Github Actions warning, only disable import-error
parent
1ddf2c37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run-pylint.py
+6
-6
6 additions, 6 deletions
run-pylint.py
with
6 additions
and
6 deletions
run-pylint.py
+
6
−
6
View file @
8cf069cc
...
@@ -65,12 +65,6 @@ def main():
...
@@ -65,12 +65,6 @@ def main():
"""
Process command line args and run Pylint.
"""
"""
Process command line args and run Pylint.
"""
args
=
[]
args
=
[]
if
sys
.
version_info
>=
(
3
,
13
):
print
(
"
*** skipping pylint run because we
'
re on Python 3.13
"
)
print
(
"
*** context: https://github.com/pylint-dev/pylint/issues/10112
"
)
return
for
arg
in
sys
.
argv
[
1
:]:
for
arg
in
sys
.
argv
[
1
:]:
if
arg
.
startswith
(
YAML_RCFILE_PREFIX
):
if
arg
.
startswith
(
YAML_RCFILE_PREFIX
):
config_path
=
arg
[
len
(
YAML_RCFILE_PREFIX
):]
config_path
=
arg
[
len
(
YAML_RCFILE_PREFIX
):]
...
@@ -79,6 +73,12 @@ def main():
...
@@ -79,6 +73,12 @@ def main():
else
:
else
:
args
.
append
(
arg
)
args
.
append
(
arg
)
if
sys
.
version_info
>=
(
3
,
13
):
print
(
"
::warning:: modifying pylint run because we
'
re on Python 3.13
"
)
print
(
"
::warning:: context: https://github.com/pylint-dev/pylint/issues/10112
"
)
args
.
append
(
"
--disable=import-error
"
)
logger
.
info
(
"
"
.
join
(
shlex
.
quote
(
arg
)
for
arg
in
[
"
pylint
"
]
+
args
))
logger
.
info
(
"
"
.
join
(
shlex
.
quote
(
arg
)
for
arg
in
[
"
pylint
"
]
+
args
))
pylint
.
lint
.
Run
(
args
)
pylint
.
lint
.
Run
(
args
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment