Skip to content

Commit fd76cfb

Browse files
authored
added github action for CI linting and formatting (andrewyng#4)
* Create ruff.yml CI check for linting * updated ruff config
1 parent ba143a9 commit fd76cfb

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/ruff.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Ruff
2+
on: [ push, pull_request ]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: chartboost/ruff-action@v1
9+
with:
10+
version: 0.4.4
11+
args: check
12+
src: "./src"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ lines-after-imports = 2
9494
known-first-party = ["translation-agent"]
9595

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

100100

0 commit comments

Comments
 (0)