Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
143
Merge Requests
143
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
9fab6df1
Commit
9fab6df1
authored
Mar 19, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP new pylint
parent
18d1cc5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
product/ERP5Type/Utils.py
product/ERP5Type/Utils.py
+9
-3
No files found.
product/ERP5Type/Utils.py
View file @
9fab6df1
...
@@ -547,7 +547,8 @@ def checkPythonSourceCode(source_code_str, portal_type=None):
...
@@ -547,7 +547,8 @@ def checkPythonSourceCode(source_code_str, portal_type=None):
# unused variables
# unused variables
'--dummy-variables-rgx=_$|dummy|__traceback_info__|__traceback_supplement__'
,
'--dummy-variables-rgx=_$|dummy|__traceback_info__|__traceback_supplement__'
,
]
]
if
six
.
PY3
:
args
.
append
(
"--msg-template='{C}: {line},{column}: {msg} ({symbol})'"
)
if
portal_type
==
'Interface Component'
:
if
portal_type
==
'Interface Component'
:
# __init__ method from base class %r is not called
# __init__ method from base class %r is not called
args
.
append
(
'--disable=W0231'
)
args
.
append
(
'--disable=W0231'
)
...
@@ -571,8 +572,13 @@ def checkPythonSourceCode(source_code_str, portal_type=None):
...
@@ -571,8 +572,13 @@ def checkPythonSourceCode(source_code_str, portal_type=None):
# dynamic modules from ZODB.
# dynamic modules from ZODB.
Run
(
args
,
reporter
=
TextReporter
(
output_file
),
exit
=
False
)
Run
(
args
,
reporter
=
TextReporter
(
output_file
),
exit
=
False
)
finally
:
finally
:
from
astroid.builder
import
MANAGER
if
six
.
PY2
:
MANAGER
.
astroid_cache
.
pop
(
from
astroid.builder
import
MANAGER
astroid_cache
=
MANAGER
.
astroid_cache
else
:
from
astroid.manager
import
AstroidManager
astroid_cache
=
AstroidManager
().
astroid_cache
astroid_cache
.
pop
(
os
.
path
.
splitext
(
os
.
path
.
basename
(
input_file
.
name
))[
0
],
os
.
path
.
splitext
(
os
.
path
.
basename
(
input_file
.
name
))[
0
],
None
)
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment