Skip to content

Commit

Permalink
added github action for CI linting and formatting (#4)
Browse files Browse the repository at this point in the history
* Create ruff.yml

CI check for linting

* updated ruff config
  • Loading branch information
j-dominguez9 authored Jun 4, 2024
1 parent ba143a9 commit fd76cfb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Ruff
on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
version: 0.4.4
args: check
src: "./src"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ lines-after-imports = 2
known-first-party = ["translation-agent"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/__init__.py" = ["E402", "F401"]
"**/{tests,docs,tools}/*" = ["E402"]


Expand Down

0 comments on commit fd76cfb

Please sign in to comment.