summaryrefslogtreecommitdiff
path: root/pylint/graph.py
Commit message (Collapse)AuthorAgeFilesLines
* Add ``no-implicit-optional`` flag to ``mypy`` (#5075)Daniël van Noord2021-09-261-1/+4
|
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-161-0/+1
|
* Refactor various typing related issues (#4940)Daniël van Noord2021-09-031-2/+2
| | | | | | | | | | | | | | | * Add type annotations to ``visit`` & ``leave`` calls This adds typing to most calls that visit nodes. All other changes are due to mypy errors resulting from introduction of typing. * Fix outstanding mypy issues This removes some of the `type: ignore` comments in favour of solving the mypy issues these comments were surpressing. * Fix remaining references to node_classes Except for two references to node_classes in the changelog this should be the last of them Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``Consider-using-f-string`` checker (#4796)Daniël van Noord2021-08-301-11/+13
| | | | | | | | | | | | | | | | * Add ``consider-using-f-string`` checker This adds a checker for normal strings which are formatted with ``.format()`` or '%'. The message is a convention to nudge users towards using f-strings. This closes #3592 * Update pylint code to use f-strings After adding `consider-using-f-strings` the codebase showed numerous cases of formatting which could be f-strings. This commit changes most of these to become f-strings, or adds ignores. * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump pylint to 2.9.3, update changelogv2.9.3Pierre Sassoulas2021-07-011-0/+1
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Prepare for 2.8.0 releasepylint-2.8.0Pierre Sassoulas2021-04-241-0/+1
|
* Enhancement #3413 ``consider-using-with`` (#4372)DudeNr332021-04-231-3/+2
| | | | | | | | * Implement consider-using-with check * Fix or disable consider-using-with in codebase * Fix ticket number in ChangeLog * Move functional test for ``open()`` into separate testfile and exclude this test from running with PyPy Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Make import from os.path more explicitPierre Sassoulas2021-03-311-4/+3
|
* Prepare 2.7.3 release (#4261)pylint-2.7.32.7Pierre Sassoulas2021-03-291-0/+1
|
* Fix various problems with --import-graph filename parsing (#4259)Andrew Howe2021-03-291-15/+27
| | | | | | | | | | | | | | Avoids backwards-incompatible changes. - Raise error if graphvis is not installed (instead of reporting success) - Fix tempfile creation bug when outputfile includes directories - Fix bug when using file extension that isn't 3 characters long - Fix confusing help text - Rename deprecated .dot extension to .gv - Default to .png if no extension is specified * Add typing to modified functions (and ignore mypy thinking codecs.open() returns an int) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-1/+2
|
* Move from % string formatting syntax to f-string or .format()Pierre Sassoulas2021-02-211-4/+4
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-211-1/+0
|
* Sets up copyrighthippo912020-08-201-1/+4
|
* Switch to isort 5 for pylint's own codeDamien Baty2020-08-181-2/+1
|
* Chore: use https links (#3679)谭九鼎2020-06-111-2/+2
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+4
|
* Fixed writing graphs to relative paths (#3378)Benjamin Graham2020-02-041-10/+3
| | | | | | | | | | While playing around with the 'import-graph' setting, I noticed that attempting to write a graph to a local directory did not work as I would have expected. For example, 'import-graph=docs/graph.dot' would attempt to add 'graph.dot' to '/LOCAL/PATH/docs/docs/'. This was because the 'dot_sourcepath' in this scenario would be set to the combination of the 'storedir' ('/LOCAL/PATH/docs') and the 'outputfile' ('docs/graph.dot'). I am requesting that it be changed to just be 'outputfile' in this scenario. Also, I have removed the instantiation of the 'dotfile' variable because it now has no use Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
* New check: import-outside-toplevel (close #3067) (#3079)Nick Drozd2019-09-171-2/+1
|
* Style - Apply isort on all apllicable filesPierre Sassoulas2019-03-201-2/+2
|
* Reformat the code with blackClaudiu Popa2018-09-171-26/+52
|
* Update copyright noticesClaudiu Popa2018-07-151-1/+2
|
* Add new checker useless-object-inheritance.ssolanki2018-06-201-1/+1
| | | | Close #2177
* Regenerate copyright noticesClaudiu Popa2017-12-151-1/+2
|
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-231-2/+3
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
| | | | | This was changed automatically in #894, but apparently we need to have the copyright notice somewhere.
* Fixed our docstring lint errorsAshley Whetter2016-06-251-2/+3
|
* Add the new shorter license header, including to missing files. Close #894.Claudiu Popa2016-06-011-16/+3
|
* Fix instances of unneeded-not in pylint's codebase.Claudiu Popa2015-11-251-1/+1
|
* Cleanup pylint issuesClaudiu Popa2015-11-211-4/+1
| | | | | | | | | | | This changeset also brings a couple of changes: * rrheaders and rcheaders are dropped from html_writer.Table's constructor. They weren't used at all and it was dead code. This simplified some if statements. * _is_attribute_property is used to look for a property assignment instead on relying on a different implementation.
* Fix pylint warnings for the code imported from logilab-common.Claudiu Popa2015-08-181-7/+11
|
* Get rid of logilab.common.graph.Florian Bruhin2015-07-261-0/+178
--HG-- branch : no-logilab-common