Skip to content

Commit

Permalink
Add pypi-based badges
Browse files Browse the repository at this point in the history
  • Loading branch information
vyahello committed Mar 5, 2022
1 parent ca2b4ba commit 4f69a1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
[![Checked with flake8](https://img.shields.io/badge/flake8-checked-blue)](http://flake8.pycqa.org/)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE.md)
[![PyPI version shields.io](https://img.shields.io/pypi/v/flake8-no-print.svg)](https://pypi.python.org/pypi/flake8-no-print/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/flake8-no-print.svg)](https://pypi.python.org/pypi/flake8-no-print/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/flake8-no-print.svg)](https://pypi.python.org/pypi/flake8-no-print)
[![PyPi downloads](https://img.shields.io/pypi/dm/flake8-no-print.svg)](https://pypi.python.org/pypi/flake8-no-print)
[![Downloads](https://pepy.tech/badge/flake8-no-print)](https://pepy.tech/project/flake8-no-print)
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)

# flake8-no-print
Expand Down
4 changes: 4 additions & 0 deletions flake8_no_print/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ class ForbiddenVisitor(ast.NodeVisitor):
def __init__(self) -> None:
self.issues: List[Tuple[int, int, str]] = []

def visit_ClassDef(self, node):
breakpoint()
print(node)

def visit_Call(self, node: ast.Call) -> None:
if isinstance(node.func, ast.Name) and node.func.id == self.forbidden:
message = (
Expand Down

0 comments on commit 4f69a1c

Please sign in to comment.