Skip to content

Commit

Permalink
Merge pull request #7 from TPAFS/add_format_workflow
Browse files Browse the repository at this point in the history
Add linting and formatting workflow
  • Loading branch information
MikeG112 authored Dec 22, 2024
2 parents e88e2f1 + 2f0d0c0 commit baedde6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint_and_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: lint_and_format
on:
workflow_dispatch:
pull_request:
types:
- "opened"
- "synchronize"
- "reopened"
branches:
- "main"
- "dev"
push:
branches:
- "main"
- "dev"
jobs:
lint-and-format:
name: Lint and format code.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: '3.10'
- name: Install pre-commit
run: pip install pre-commit
- name: Setup Cache
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Lint and Format
run: pre-commit run --show-diff-on-failure --color=always --all-files
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Linting and Formatting](https://github.com/TPAFS/hicric/actions/workflows/lint_and_format.yml/badge.svg)

# HICRIC: A Dataset of Law, Policy, and Regulatory Guidance for Health Insurance Coverage Understanding

<p align="center"><img src="./assets/logo.png" width="300" height="300" /></p>
Expand Down

0 comments on commit baedde6

Please sign in to comment.