Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate dictonary keys #27

Closed
jayvdb opened this issue Oct 25, 2017 · 0 comments · Fixed by #28
Closed

Remove duplicate dictonary keys #27

jayvdb opened this issue Oct 25, 2017 · 0 comments · Fixed by #28

Comments

@jayvdb
Copy link
Member

jayvdb commented Oct 25, 2017

https://github.com/PyCQA/pyflakes/releases/tag/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 a automatic fixer for this, removing all but the last value for a key in a dictionary.

@myint myint added the gci label Nov 22, 2017
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 2, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 2, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 2, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 2, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 2, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 2, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
andrewda added a commit to andrewda/autoflake that referenced this issue Jan 3, 2018
This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes PyCQA#27
@myint myint closed this as completed in #28 Jan 3, 2018
myint pushed a commit that referenced this issue Jan 3, 2018
* Add AUTOFLAKE_COVERAGE env variable

* Add coverage combining

* Run coverage in branch and parallel mode

* Remove duplicate dictionary keys

This will automatically remove duplicate dictionary keys with the
`--remove-duplicate-keys` argument.

Closes #27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants