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:
print(i, j)
will be flattened to a nested comprehension
for i, j in ((i,j) for i in seq_a for j in seq_b):
print(i, j)
For a full list - check the list of implemented smells
Installing:
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:
good_smell fix PATH >PATH
good_smell fix PATH [--starting-line STARTING_LINE] [--end-line END_LINE]
Developing
Metadata
Release files for good-smell 0.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| good_smell-0.18.tar.gz | 9.2 kB | Without provenance | Details for good_smell-0.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| good_smell-0.18-py3-none-any.whl | Python 3 | none | any | Details for good_smell-0.18-py3-none-any.whl |
Total release size: 21.6 kB
Release files / good_smell-0.18.tar.gz
| Download URL | good_smell-0.18.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1264d7b7fe9e111113e789cd38d05a896800e3b769125331fde0f3e5d10608e6
|
|
BLAKE2b-256 checksum How to use checksums |
9c258e8eca992cd3b69fd1c01a8823ebf969f048383ede208e1ccd1fa841ece8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Darwin/19.6.0
|
Release files / good_smell-0.18-py3-none-any.whl
| Download URL | good_smell-0.18-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eac48332d4b63be17f47c9f7d51014924d2de30bd82e102a61c5630bb4fdf2e5
|
|
BLAKE2b-256 checksum How to use checksums |
e3fa16c40b86301cb6b420bd1a64fb30d9d785db0598bc76d9b367577cca872b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Darwin/19.6.0
|
Security for good-smell 0.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.