Flake8 plugin to forbid print function usage
Project description
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
git
for the first time after cloning with yourname
andemail
pip install -r requirements.txt
to install all project dependenciespip install -r requirements-dev.txt
to 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for flake8_no_print-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38d29695467388c4985eca11365b28139e19f74c129cfb448afed1ad777861a |
|
MD5 | bfd74519bf892d230c644626f3446a6c |
|
BLAKE2b-256 | 8df5419f0da4620dc71852025ac6d56b954dfb676916dfbe23b3dfdf6e1fc2b8 |