A linter/refactoring tool to make your code smell better!
Good Smell - it makes your code smell good!
A linting/refactoring library for python best practices and lesser-known tricks
This Tool tries to find bits of code that are possible to make more pythonic, more beautiful by using the language features and standard library functions you might not know about
For example Directly nested for loops (nested-for)
for i in seq_a:
for j in seq_b:
will be flattened to a nested comprehension
for i, j in ((i,j) for i in seq_a for j in seq_b):
For a full list - check the list of implemented smells
pip install good_smell
Usage (Is likely to change when version 1.0 is released):
To issue warnings, good_smell installs itself as a flake8 plugin with error codes starting with SML.
To automatically fix the code use
good_smell fix PATH >PATH
good_smell fix PATH [--starting-line STARTING_LINE] [--end-line END_LINE]
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for good_smell-0.18-py3-none-any.whl