mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 18:56:53 +00:00
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
This commit is contained in:
parent
29d9090954
commit
f0f2ea7f4e
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue