Skip to content

Commit

Permalink
pylint and black experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
bloombar committed Nov 15, 2023
1 parent dab7b47 commit 0472c1a
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Python Lint and Format
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pipenv shell
- name: Lint check
run: |
pylint **/*.py
- name: Format check
run: |
black --diff --check **/*.py
13 changes: 13 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
pylint = "*"
black = "*"

[dev-packages]

[requires]
python_version = "3.9"
149 changes: 149 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions temp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Delete this file

def main():
print("foo bar baz bum")

0 comments on commit 0472c1a

Please sign in to comment.