flake8-no-print
A simple flake8 plugin that forbids the usage of
Tools
Production
- python 3.8+
- flake8
Development
Usage
Installation
pip install flake8-no-print
✨ 🍰 ✨
Quick start
# foo.py
def bar(*a):
print(a)
return 0
flake8 foo.py
foo.py:2:5: NP100 "print()" function usage is forbidden, please consider using "logging" module
Source code
git clone git@github.com:vyahello/flake8-no-print.git
cd flake8-no-print
python3 -m venv venv
. venv/bin/activate
pip install -e .
Warnings
NP100 - print function is forbidden.
Development notes
Testing
Please run the following script to start plugin tests:
pytest
CI
To be able to run code analysis, please execute command below:
./analyse-source-code.sh
Meta
Author – Vladimir Yahello.
Distributed under the MIT license. See license for more information.
You can reach out me at:
- vyahello@gmail.com
- https://twitter.com/vyahello
- https://www.linkedin.com/in/volodymyr-yahello-821746127
Contributing
I would highly appreciate any contribution and support. If you are interested to add your ideas into project please follow next simple steps:
- Clone the repository
- Configure
gitfor the first time after cloning with yournameandemail pip install -r requirements.txtto install all project dependenciespip install -r requirements-dev.txtto install all development project dependencies- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request
What's next
All recent activities and ideas are described at project issues page. If you have ideas you want to change/implement please do not hesitate and create an issue.
Metadata
Release files for flake8-no-print 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_no_print-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for flake8_no_print-0.1.1-py3-none-any.whl |
Release files / flake8_no_print-0.1.1-py3-none-any.whl
| Download URL | flake8_no_print-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f38d29695467388c4985eca11365b28139e19f74c129cfb448afed1ad777861a
|
|
BLAKE2b-256 checksum How to use checksums |
8df5419f0da4620dc71852025ac6d56b954dfb676916dfbe23b3dfdf6e1fc2b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
|
Security for flake8-no-print 0.1.1
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.