aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete pylint optionsMike Gilbert2024-09-231-7/+0
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* pylintrc: give fully qualified name to overgeneral-exceptionsAlfred Wingate2024-04-281-1/+1
| | | | | | | | | * Ability to give unqualified names will be removed in pylint-3.1.0. https://pylint.pycqa.org/en/latest/whatsnew/3/3.0/index.html#changes-requiring-user-actions Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* pylintrc: disable cyclic-import checkMike Gilbert2022-06-041-1/+0
| | | | | | We have cyclic imports in Portage; pylint before 2.14.0 fails to find them. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* lib/*: Fix useless-returnAaron Bauman2020-08-071-0/+1
| | | | | | | * Python implies such things. Let's drop 'em and be consistent. Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* lib/*: exempt two core files from ungrouped-imports checkAaron Bauman2020-08-061-0/+1
| | | | | | | | * These will take some time to refactor/address if at all possible. * Turn on ungrouped-imports check for entire repo Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* lib/*: fix superfluous-parens and enable checkAaron Bauman2020-08-051-0/+1
| | | | | Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* pylintrc: enable multiple-imports checkAaron Bauman2020-08-051-0/+1
| | | | | Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* lib/portage/repository/config.py: fix trailing-comma-tupleAaron Bauman2020-08-041-0/+1
| | | | | | | | | | | * This fixes the one instance of trailing-comma-tuple in the repo * A tuple does need created, but lets do so inside of parentheses as expected Suggested-By: Sam James <sam@gentoo.org> Suggested-By: Zac Medico <zmedico@gentoo.org> Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* tox: call pylint for whole repoZac Medico2020-08-041-0/+1
| | | | | | | In addition to checking the whole repo, this fixes the import-error check. Signed-off-by: Zac Medico <zmedico@gentoo.org>
* pylintrc: disable import-error to travis failureZac Medico2020-08-041-1/+0
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* pylintrc: add more module checksAaron Bauman2020-08-041-10/+17
| | | | | | | * Repo is already clear... so let's turn these on Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* pylintrc: turn on checks for reimported modulesAaron Bauman2020-08-031-9/+11
| | | | | | | * also, really fix the enable module structure Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* pylintrc: enable more checksAaron Bauman2020-08-031-2/+10
| | | | | | | | | | | | | * These checks are already passing... so let's enable them so we do not have regressions * Sort the checks alphabetically and break into more manageable structure * Display all warnings/errors from pylint by enabling all messages as all listed checks are now passing. This will allow folks to run 'pylint' without having to modify the pylintrc. Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* pylintrc: turn on trailing-whitespaceAaron Bauman2020-08-031-1/+1
| | | | | Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* pylintrc: enable unused-importsAaron Bauman2020-08-031-1/+1
| | | | | | | * Repo is now clear of unused-imports... so turn it on by default Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Add a pylintrc.Alec Warner2020-07-231-0/+464
For now it disables all checks except for checks that I have already eliminated and silenced. Closes: https://github.com/gentoo/portage/pull/588 Signed-off-by: Alec Warner <antarus@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>