Skip to content

Instantly share code, notes, and snippets.

View doedotdev's full-sized avatar
🌴
On vacation

doedotdev doedotdev

🌴
On vacation
View GitHub Profile
@doedotdev
doedotdev / 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:
@doedotdev
doedotdev / 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:
@doedotdev
doedotdev / 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)
@doedotdev
doedotdev / 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',