diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..ea31e1c --- /dev/null +++ b/.github/workflows/ruff.yml @@ -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" diff --git a/pyproject.toml b/pyproject.toml index 8b5ae01..db621f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]