Skip to content

Commit

Permalink
lint: Add github action for python linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TaekyungHeo committed Feb 6, 2024
1 parent e536702 commit adc5f9a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python Linting

on: [push, pull_request]

jobs:
lint-and-format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
pip install flake8
pip install pyre-check
pip install .
- name: Run Flake8
run: flake8 .

- name: Run Pyre Check
run: pyre check
2 changes: 1 addition & 1 deletion .pyre_configuration
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"timeline_visualizer",
"et_converter"
],
"search_path": []
"search_path": ["/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages"]
}

0 comments on commit adc5f9a

Please sign in to comment.