summaryrefslogtreecommitdiff
path: root/src/flake8/statistics.py
Commit message (Collapse)AuthorAgeFilesLines
* com2annAnthony Sottile2021-03-301-12/+14
|
* clean up TYPE_CHECKING importsAnthony Sottile2021-03-301-1/+2
|
* automatic: pyupgrade --py36-plusAnthony Sottile2021-03-301-3/+6
|
* mypy now passesAnthony Sottile2019-05-191-8/+14
|
* Use black to reformat Flake8Ian Stapleton Cordasco2018-10-201-10/+8
| | | | | Instead of just using Flake8 and pylint to keep Flake8 clean, let's also use black to make it less manual for clean-up.
* Rename style_guide.Error to style_guide.ViolationIan Cordasco2017-06-041-4/+5
| | | | | Move all Violation related methods from the StyleGuide to our Violation class.
* Prefer iter(dict) instead of dict.keys()Jon Dufresne2017-05-271-2/+2
| | | | | | | | | | They are equivalent for iterating so remove the additional function call. Pattern identified as outdated by Lennart Regebro's PyCon 2017 talk "Prehistoric Patterns in Python" https://www.youtube.com/watch?v=V5-JH23Vk0I
* Clean up some uses of set, list, and dictJon Dufresne2017-05-131-1/+1
| | | | | | * Use set literals instead of set([...]) * Avoid list(sorted(...)) as sorted returns a list * Replace dict() with dict literal
* Wire-up --statistics againbug/180Ian Cordasco2016-07-251-0/+10
| | | | | | | I'm not sure where this code went or when, but it disappeared. Let's add it back. Related #180
* Add actual tests around statistics moduleadd-statisticsIan Cordasco2016-07-121-23/+40
| | | | | | Also refactor our statistics module to be a bit smarter and less namedtuple happy. The Statistic class had no reason to be a tuple, I have no clue why I wrote it that way last night.
* Add the statistics moduleIan Cordasco2016-07-111-0/+101