summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaphael Das Gupta <raphael.das.gupta@hsr.ch>2017-01-13 14:22:44 +0000
committerIan Cordasco <graffatcolmingov@gmail.com>2017-01-21 13:59:49 -0600
commitf0f2ea7f4e3e536f2507703e350c89d0468feb31 (patch)
treef9db65e43fca160c3ddcbf3f1d1ee12994ad2fe0 /src
parent29d909095484591035d41173b0a0f8c1a4fe820f (diff)
downloadflake8-f0f2ea7f4e3e536f2507703e350c89d0468feb31.tar.gz
Force --version to be reproducible
By ordering the plugins, --version becomes reproducible so that it continuously prints the same output (provided the plugins have not changed). Closes #297
Diffstat (limited to 'src')
-rw-r--r--src/flake8/options/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/options/manager.py b/src/flake8/options/manager.py
index b536907..90cfe46 100644
--- a/src/flake8/options/manager.py
+++ b/src/flake8/options/manager.py
@@ -245,7 +245,7 @@ class OptionManager(object):
"""Generate a comma-separated list of versions of plugins."""
return join_on.join(
format_str % self.format_plugin(plugin)
- for plugin in self.registered_plugins
+ for plugin in sorted(self.registered_plugins)
)
def update_version_string(self):