Skip to content

Commit

Permalink
Merge pull request #21 from sul-dlss-labs/t18-ruff-check
Browse files Browse the repository at this point in the history
Check formatting
  • Loading branch information
edsu authored Jun 17, 2024
2 parents b2fcb2a + ca9c77e commit 9fa6a6e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Lint
- name: Lint and format
uses: chartboost/ruff-action@v1
# it may move, see https://github.com/astral-sh/ruff/issues/8400
with:
args: 'format --check'

- name: Install dependencies
run: |
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,9 @@ Then run the tests:
```
pytest
```

### Linting and formatting

1. Run linting: `ruff check`
2. Automatically fix linting: `ruff check --fix`
3. Run formatting: `ruff format` (or `ruff format --check` to identify any unformatted files)
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pytest
python-dotenv
ruff
apache-airflow==2.9.2

0 comments on commit 9fa6a6e

Please sign in to comment.