Skip to content

Commit

Permalink
Updated code to eliminate errors and meet requirements from #2
Browse files Browse the repository at this point in the history
- Defined python version
- Deleted ruff check --fix
- Fixed check in args
- Added run image to poetry checks
  • Loading branch information
Kubaryt committed Mar 22, 2024
1 parent 16d2623 commit e7b6545
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/ruff-code-checks-and-poetry-cecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: chartboost/ruff-action@v1
with:
args: --check .
fix_args: --fix .
- uses: stefanzweifel/git-auto-commit-action@v4
python-version: 3.11
- name: Check code with ruff
uses: chartboost/ruff-action@v1
with:
commit_message: 'style fixes by ruff'
args: check
poetry-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run:
with:
python-version: 3.11
- name: Run image
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8
- name: Check dependencies with poetry
run:
poetry update
poetry check
poetry checks

0 comments on commit e7b6545

Please sign in to comment.