Skip to content

Commit

Permalink
add python linting
Browse files Browse the repository at this point in the history
  • Loading branch information
m-goggins committed Jun 13, 2024
1 parent 98ace98 commit d114735
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/testContainerDIBBs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ env:
CONTAINER: dibbs

jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install ruff==0.4.3
- name: Run linter (ruff)
run: |
ruff check --output-format=github .
- name: Run formatter (ruff)
run: |
ruff format --check
unit-test-python-containers:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/testContainerFhir-converter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ env:
CONTAINER: fhir-converter

jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install ruff==0.4.3
- name: Run linter (ruff)
run: |
ruff check --output-format=github .
- name: Run formatter (ruff)
run: |
ruff format --check
unit-test-python-containers:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/testContainerIngestion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ env:
CONTAINER: ingestion

jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install ruff==0.4.3
- name: Run linter (ruff)
run: |
ruff check --output-format=github .
- name: Run formatter (ruff)
run: |
ruff format --check
unit-test-python-containers:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/testContainerMessage-parser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ env:
CONTAINER: message-parser

jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install ruff==0.4.3
- name: Run linter (ruff)
run: |
ruff check --output-format=github .
- name: Run formatter (ruff)
run: |
ruff format --check
unit-test-python-containers:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/testContainerMessage-refiner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ env:
CONTAINER: message-refiner

jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install ruff==0.4.3
- name: Run linter (ruff)
run: |
ruff check --output-format=github .
- name: Run formatter (ruff)
run: |
ruff format --check
unit-test-python-containers:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/testContainerOrchestration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,26 @@ env:
CONTAINER: orchestration

jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install ruff==0.4.3
- name: Run linter (ruff)
run: |
ruff check --output-format=github .
- name: Run formatter (ruff)
run: |
ruff format --check
unit-test-python-containers:
runs-on: ubuntu-latest
services:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/testContainerRecordLinkage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ env:
CONTAINER: record-linkage

jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install ruff==0.4.3
- name: Run linter (ruff)
run: |
ruff check --output-format=github .
- name: Run formatter (ruff)
run: |
ruff format --check
unit-test-python-containers:
runs-on: ubuntu-latest
services:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/testContainerTriggerCodeReference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ env:
CONTAINER: trigger-code-reference

jobs:
python-linting:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python ${{env.TEST_RUNNER_PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.TEST_RUNNER_PYTHON_VERSION}}
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install ruff==0.4.3
- name: Run linter (ruff)
run: |
ruff check --output-format=github .
- name: Run formatter (ruff)
run: |
ruff format --check
unit-test-python-containers:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d114735

Please sign in to comment.