coala
Automatically remove duplicate dictonary keys from Python code
autoflake is a tool that automatically cleans up Python code by removing things like unused import and unused variables. It makes use of pyflakes to do this.
pyflakes 1.3.0 included support for detecting duplicate dictionary keys, strictly only reporting when the values differ, as there is no confusion in having the same key,value combination appear multiple times.
It would be nice for autoflake to implement an automatic fixer for this, removing all but the last value for a key in a dictionary.
Task tags
Students who completed this task
Andrew Dassonville