Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (2h)  pkgsrc-2024Q1 (20d)  pkgsrc-2023Q4 (67d)  pkgsrc-2023Q2 (99d)  pkgsrc-2023Q3 (179d) 

2024-06-06 23:27:30 UTC Now

2018-08-02 15:19:23 UTC MAIN commitmail json YAML

py-pylint: updated to 2.1.0

What's New in Pylint 2.1?

  * trailing-comma-tuple gets emitted for yield statements as well.

  * Get only the arguments of the scope function for redefined-argument-from-local

  * Add a check misplaced-format-function which is emitted if format function is used on
    non str object.

  * chain.from_iterable no longer emits dict-{}-not-iterating when dealing with dict values and keys

  * Demote the try-except-raise message from an error to a warning (E0705 -> W0706)

  * Correctly handle the new name of the Python implementation of the abc module.

    * Modules with __getattr__ are exempted by default from no-member

      There's no easy way to figure out if a module has a particular member when
      the said module uses __getattr__, which is a new addition to Python 3.7.
      Instead we assume the safe thing to do, in the same way we do for classes,
      and skip those modules from checking.

    * Fix a false positive invalid name message when method or attribute name is longer then 30 characters.

    * Include the type of the next branch in no-else-return

    * Fix inconsistent behaviour for bad-continuation on first line of file

    * Fix not being able to disable certain messages on the last line through
      the global disable option

    * Don't emit useless-return when we have a single statement that is the return itself

      We still want to be explicit when a function is supposed to return
      an optional value; even though pass could still work, it's not explicit
      enough and the function might look like it's missing an implementation.

  * Fix false-positive undefined-variable for self referential class name in lamdbas

    * Don't crash when pylint is unable to infer the value of an argument to next()

    * Don't emit not-an-iterable when dealing with async iterators.

      But do emit it when using the usual iteration protocol against
      async iterators.

  * Can specify a default docstring type for when the check cannot guess the type

(adam)