From f0f2ea7f4e3e536f2507703e350c89d0468feb31 Mon Sep 17 00:00:00 2001 From: Raphael Das Gupta Date: Fri, 13 Jan 2017 14:22:44 +0000 Subject: [PATCH] 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 --- src/flake8/options/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):