Skip to content

Commit

Permalink
feat: Ruff linter
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Aug 15, 2024
1 parent 463cc43 commit 7f04619
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,22 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
target: libertai_agents
execute_command: 'poetry run mypy'
execute_command: 'poetry run mypy'

ruff:
name: ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install ruff
- name: Run Ruff
run: ruff check --output-format=github



29 changes: 28 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pydantic = "^2.8.2"

[tool.poetry.group.dev.dependencies]
mypy = "^1.11.1"
ruff = "^0.6.0"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 7f04619

Please sign in to comment.