Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 856122 Details for
Bug 899598
catalyst: fix current .pylintrc warnings
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
.pylintrc: fix for 2.16.1
catalyst-master-pylintrc.patch (text/plain), 3.04 KB, created by
pva
on 2023-03-04 13:31:30 UTC
(
hide
)
Description:
.pylintrc: fix for 2.16.1
Filename:
MIME Type:
Creator:
pva
Created:
2023-03-04 13:31:30 UTC
Size:
3.04 KB
patch
obsolete
>commit d5618d0cb3f09026426a5a9ddf5688b4253977d5 >Author: Peter Volkov <peter.volkov@gmail.com> >Date: Sat Mar 4 15:21:14 2023 +0300 > > .pylintrc: fix for 2.16.1 > > 'no-init' was removed upstream: > https://github.com/PyCQA/pylint/issues/2409 > 'locally-enabled' was removed upstream: > https://github.com/PyCQA/pylint/issues/2442 > 'bad-whitespace' was removed upstream: > https://github.com/PyCQA/pylint/issues/3572 > 'files-output' was removed upstream: > https://pylint.pycqa.org/en/latest/whatsnew/1/1.7/summary.html#removed-changes > 'max-branchs' was renamed to max-branches > 'bad-functions' was moved to DEPRECATED_BUILTINS and requires pylint.extensions.bad_builtin > >diff --git a/.pylintrc b/.pylintrc >index 5428e349..0a5e3022 100644 >--- a/.pylintrc >+++ b/.pylintrc >@@ -10,6 +10,7 @@ persistent=yes > # List of plugins (as comma separated values of python modules names) to load, > # usually to register additional checkers. > load-plugins= >+ pylint.extensions.bad_builtin, > > > [MESSAGES CONTROL] >@@ -25,11 +26,9 @@ load-plugins= > # it should appear only once). > # We should clean up things so we can enable: > # missing-docstring -- add lots of docstrings everywhere! >-# bad-whitespace -- fix spacing everywhere > # invalid-name -- need to manage constants better > # line-too-long -- figure out a length and stick to it > # super-init-not-called -- fix the classes __init__ structure >-# no-init -- update classes w/missing __init__ functions > disable= > missing-docstring, > too-many-lines, >@@ -40,15 +39,15 @@ disable= > too-many-public-methods, > too-many-locals, > too-many-arguments, >- locally-enabled, > locally-disabled, > fixme, > broad-except, >- bad-whitespace, > invalid-name, > line-too-long, > super-init-not-called, >- no-init, >+ unspecified-encoding, >+ consider-using-f-string, >+ > > > [REPORTS] >@@ -57,11 +56,6 @@ disable= > # (visual studio) and html > output-format=text > >-# Put messages in a separate file for each module / package specified on the >-# command line instead of printing them on stdout. Reports (if any) will be >-# written in a file name "pylint_global.[txt|html]". >-files-output=no >- > # Tells whether to display a full report or only the messages > reports=no > >@@ -123,10 +117,6 @@ generated-members=REQUEST,acl_users,aq_parent,multiprocessing.managers.SyncManag > > > [BASIC] >- >-# List of builtins function names that should not be used, separated by a comma >-bad-functions=map,filter,apply,input >- > # Regular expression which should only match correct module names > module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ > >@@ -221,7 +211,7 @@ max-locals=15 > max-returns=6 > > # Maximum number of branch for function / method body >-max-branchs=12 >+max-branches=12 > > # Maximum number of statements in function / method body > max-statements=50 >@@ -244,3 +234,8 @@ max-public-methods=20 > # Exceptions that will emit a warning when being caught. Defaults to > # "Exception" > overgeneral-exceptions=Exception >+ >+ >+[DEPRECATED_BUILTINS] >+# List of builtins function names that should not be used, separated by a comma >+bad-functions=map,filter,apply,input
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 899598
: 856122