Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 814 Bytes

File metadata and controls

34 lines (24 loc) · 814 Bytes

ReqLint

Quickly lint your python files to detect if you're using requests library without specifying a timeout value

Why?

Quick Start

Installation

  • pip install py-reqlint

CLI usage

# Show help text
python -m reqlint --help

# recusively lint all python files in specified directory
python -m reqlint path/to/your/repo -r

# lint only specific files
python -m reqlint somefile.py someotherfile.py

Library usage

from reqlint import ReqLint

with open('your_file.py', 'r') as f:
    code = f.read()

for issue in ReqLint.lint(code):
    print(issue)