Socket
Socket
Sign inDemoInstall

flake8-no-print

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flake8-no-print

Flake8 plugin to forbid print function usage


Maintainers
1

made-with-python Coverage Status Code style: black Checked with flake8 License EO principles respected here

flake8-no-print

A simple flake8 plugin that forbids the usage of print functions in production code.

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 .

⬆ back to top

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:

Contributing

I would highly appreciate any contribution and support. If you are interested to add your ideas into project please follow next simple steps:

  1. Clone the repository
  2. Configure git for the first time after cloning with your name and email
  3. pip install -r requirements.txt to install all project dependencies
  4. pip install -r requirements-dev.txt to install all development project dependencies
  5. Create your feature branch (git checkout -b feature/fooBar)
  6. Commit your changes (git commit -am 'Add some fooBar')
  7. Push to the branch (git push origin feature/fooBar)
  8. 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.

⬆ back to top

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc