Skip to content

Instantly share code, notes, and snippets.

View bh11111's full-sized avatar
🌴
On vacation

bh11111 bh11111

🌴
On vacation
  • 39.10°
View GitHub Profile
@bh11111
bh11111 / lint.py
Created December 10, 2019 01:56
Python Pylint Runner to Pass (Exit 0) or Fail (Exit 1) Based on Pylint Score Threshold
import argparse
import logging
from pylint.lint import Run
logging.getLogger().setLevel(logging.INFO)
parser = argparse.ArgumentParser(prog="LINT")
parser.add_argument('-p',
@bh11111
bh11111 / simple.py
Created December 10, 2019 02:08
Simple Python Script to Run Pylint Programmatically
# simple.py
from pylint.lint import Run
Run(['./src'], do_exit=False)
@bh11111
bh11111 / lint.yml
Last active October 18, 2020 18:53
Github Action for Running Pylint and Passing/ Failing based on Score
name: PyLint Runner
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
@bh11111
bh11111 / mypy.yml
Last active December 16, 2019 01:15
Mypy Github Action
name: Mypy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
name: Mypy
steps: