Projet

Général

Profil

Development #52732

pylint, réduction du nombre de warnings ignorés

Ajouté par Frédéric Péters il y a environ 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
04 avril 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

En fait j'ai démarré la branche pour tester ça :

-init-hook="import sys, os; sys.path.append("wcs")'

parce que la manière dont était quotée cette variable était curieuses et perdait la coloration syntaxique.

Tant qu'à avoir le fichier ouvert, avec les warnings bien alignés chacun sur leur ligne, je me suis dit qu'il pouvait y avoir moyen de retirer de la liste les warnings qui ont uniquement quelques occurences, soit en les corrigeant, soit en les désactivant dans le code (ce qui permettra d'avoir un warning sur des nouveaux cas de trucs pas terribles qu'on peut avoir, genre les appels à eval()).

Bref,

* a7b502a9d trivial: add pylint disable comment for deprecated-module warning
* c2164f0b1 trivial: fix len-as-condition pylint warning
* e4851be9e trivial: fix disallowed-name pylint warning
* 46b4f0647 trivial: fix unnecessary-lambda pylint warning
* a8ee0e41d trivial: add pylint disable comments for individual eval-used warnings
* daf3dc19c trivial: add pylint disable comment for exec-used
* 3bd847dde trivial: remove unused get_template_from_script function
* fcac6b101 trivial: fix not-a-mapping pylint warning
* 261821f63 trivial: fix pointless-statement pylint warning
* 02e2d8775 trivial: fix subprocess-run-check pylint warning
* 201a90ffc trivial: fix assignment-from-no-return pylint warning
* 685b5609e trivial: fix assignment-from-none pylint warning
* 2ee23c769 trivial: fix pylint duplicate-except warning
* d74365aa9 trivial: fix consider-using-ternary pylint warning
* b37862e37 build: remove unnecessary init-hook from pylint configuration

Fichiers

0014-trivial-fix-len-as-condition-pylint-warning-52732.patch (1,78 ko) 0014-trivial-fix-len-as-condition-pylint-warning-52732.patch Frédéric Péters, 04 avril 2021 17:20
0015-trivial-add-pylint-disable-comment-for-deprecated-mo.patch (1,15 ko) 0015-trivial-add-pylint-disable-comment-for-deprecated-mo.patch Frédéric Péters, 04 avril 2021 17:20
0013-trivial-fix-disallowed-name-pylint-warning-52732.patch (2,69 ko) 0013-trivial-fix-disallowed-name-pylint-warning-52732.patch Frédéric Péters, 04 avril 2021 17:20
0012-trivial-fix-unnecessary-lambda-pylint-warning-52732.patch (3,45 ko) 0012-trivial-fix-unnecessary-lambda-pylint-warning-52732.patch Frédéric Péters, 04 avril 2021 17:20
0011-trivial-add-pylint-disable-comments-for-individual-e.patch (3,99 ko) 0011-trivial-add-pylint-disable-comments-for-individual-e.patch Frédéric Péters, 04 avril 2021 17:20
0010-trivial-add-pylint-disable-comment-for-exec-used-527.patch (1012 octets) 0010-trivial-add-pylint-disable-comment-for-exec-used-527.patch Frédéric Péters, 04 avril 2021 17:20
0009-trivial-remove-unused-get_template_from_script-funct.patch (1,08 ko) 0009-trivial-remove-unused-get_template_from_script-funct.patch Frédéric Péters, 04 avril 2021 17:20
0008-trivial-fix-not-a-mapping-pylint-warning-52732.patch (1,05 ko) 0008-trivial-fix-not-a-mapping-pylint-warning-52732.patch Frédéric Péters, 04 avril 2021 17:20
0007-trivial-fix-pointless-statement-pylint-warning-52732.patch (3,21 ko) 0007-trivial-fix-pointless-statement-pylint-warning-52732.patch Frédéric Péters, 04 avril 2021 17:20
0006-trivial-fix-subprocess-run-check-pylint-warning-5273.patch (1,04 ko) 0006-trivial-fix-subprocess-run-check-pylint-warning-5273.patch Frédéric Péters, 04 avril 2021 17:20
0005-trivial-fix-assignment-from-no-return-pylint-warning.patch (1,58 ko) 0005-trivial-fix-assignment-from-no-return-pylint-warning.patch Frédéric Péters, 04 avril 2021 17:20
0004-trivial-fix-assignment-from-none-pylint-warning-5273.patch (1,08 ko) 0004-trivial-fix-assignment-from-none-pylint-warning-5273.patch Frédéric Péters, 04 avril 2021 17:20
0003-trivial-fix-pylint-duplicate-except-warning-52732.patch (1,59 ko) 0003-trivial-fix-pylint-duplicate-except-warning-52732.patch Frédéric Péters, 04 avril 2021 17:20
0002-trivial-fix-consider-using-ternary-pylint-warning-52.patch (1,31 ko) 0002-trivial-fix-consider-using-ternary-pylint-warning-52.patch Frédéric Péters, 04 avril 2021 17:20
0001-build-remove-unnecessary-init-hook-from-pylint-confi.patch (620 octets) 0001-build-remove-unnecessary-init-hook-from-pylint-confi.patch Frédéric Péters, 04 avril 2021 17:20

Révisions associées

Révision 531d15fd (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

build: remove unnecessary init-hook from pylint configuration (#52732)

Révision fc780d27 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix consider-using-ternary pylint warning (#52732)

Révision 6e1e6654 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix pylint duplicate-except warning (#52732)

Révision 575a06e6 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix assignment-from-none pylint warning (#52732)

Révision 1a611d0c (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix assignment-from-no-return pylint warning (#52732)

Révision e35c293d (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix subprocess-run-check pylint warning (#52732)

Révision 7a9657c2 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix pointless-statement pylint warning (#52732)

Révision cc1f7e13 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix not-a-mapping pylint warning (#52732)

Révision dbd5bf65 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: remove unused get_template_from_script function (#52732)

Révision 305ee58a (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: add pylint disable comment for exec-used (#52732)

Révision 528e0917 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: add pylint disable comments for individual eval-used warnings (#52732)

Révision d67c024f (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix unnecessary-lambda pylint warning (#52732)

Révision b23b21ee (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix disallowed-name pylint warning (#52732)

Révision deac7415 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: fix len-as-condition pylint warning (#52732)

Révision daf2aa0a (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

trivial: add pylint disable comment for deprecated-module warning (#52732)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 3 ans

#3

Mis à jour par Lauréline Guérin il y a environ 3 ans

  • Statut changé de Solution proposée à Solution validée
#4

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit daf2aa0ae365bf204d9fb9aa110839728c4c57e0
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Apr 3 10:17:50 2021 +0200

    trivial: add pylint disable comment for deprecated-module warning (#52732)

commit deac7415d086a484251f79ab1f98e38f31bd8d80
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Apr 3 10:14:37 2021 +0200

    trivial: fix len-as-condition pylint warning (#52732)

commit b23b21ee31caf3f0ccdc22113eec518080505957
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Apr 3 10:07:27 2021 +0200

    trivial: fix disallowed-name pylint warning (#52732)

commit d67c024f1598d1596d2ea3cf11bd4fdaa83a4562
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Apr 3 10:04:34 2021 +0200

    trivial: fix unnecessary-lambda pylint warning (#52732)

commit 528e0917e077fbc8ae37c2b02d58212d16138cdf
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Apr 3 10:01:09 2021 +0200

    trivial: add pylint disable comments for individual eval-used warnings (#52732)

commit 305ee58a657e806b52d5f25bb63b61bb42cc4e52
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Apr 3 09:57:00 2021 +0200

    trivial: add pylint disable comment for exec-used (#52732)

commit dbd5bf655f1eaa5edc1931ef58071474f65465ba
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Apr 3 09:56:43 2021 +0200

    trivial: remove unused get_template_from_script function (#52732)

commit cc1f7e13a05e35727ced1f90b1a56aed5b9d6e0c
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Apr 3 09:53:12 2021 +0200

    trivial: fix not-a-mapping pylint warning (#52732)

commit 7a9657c2936207daf34d4f7d2d0cd4f8b29c0f03
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 2 22:47:22 2021 +0200

    trivial: fix pointless-statement pylint warning (#52732)

commit e35c293dcb388b4e6e8a33b2bd87c8e8ef1cf6aa
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 2 22:47:01 2021 +0200

    trivial: fix subprocess-run-check pylint warning (#52732)

commit 1a611d0ce7171ade98188bf52bfd789f4c0b66f6
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 2 22:39:49 2021 +0200

    trivial: fix assignment-from-no-return pylint warning (#52732)

commit 575a06e6d243c7a0d97569e9d92976e340ae1c87
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 2 22:38:05 2021 +0200

    trivial: fix assignment-from-none pylint warning (#52732)

commit 6e1e665417b4747ea0adb0350a30304f8bd190b6
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 2 22:36:28 2021 +0200

    trivial: fix pylint duplicate-except warning (#52732)

commit fc780d27a75489c34ad6cbab3da3be9fd98d448c
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 2 22:34:27 2021 +0200

    trivial: fix consider-using-ternary pylint warning (#52732)

commit 531d15fd76e93589d99714808f9ae896b72691aa
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 2 22:09:42 2021 +0200

    build: remove unnecessary init-hook from pylint configuration (#52732)
#5

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF