summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-01-31 09:18:17 -0800
committerAnthony Sottile <asottile@umich.edu>2019-01-31 09:23:02 -0800
commitc85b282b05745a1b2a7392bbfa0e5489bf6c3ff7 (patch)
tree8acbc36ac19ad2485c09f44a1f2de9bbfa51792d /setup.cfg
parentee7081c8cea838fe57110f23899234e373988bec (diff)
downloadflake8-c85b282b05745a1b2a7392bbfa0e5489bf6c3ff7.tar.gz
Fix performance regression with per-file-ignores
With a large number of errors, filenames, and per-file-ignores the style guide selection would take a significant portion of execution time (python3 70% / python2 99.9%). Caching the styleguide lookup by filename eliminates this bottleneck.
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index 4bc37ad..e887ea8 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,6 +11,7 @@ requires-dist =
enum34; python_version<"3.4"
typing; python_version<"3.5"
configparser; python_version<"3.2"
+ functools32; python_version<"3.2"
entrypoints >= 0.3.0, < 0.4.0
pyflakes >= 2.1.0, < 2.2.0
pycodestyle >= 2.5.0, < 2.6.0