Skip to content

Commit 1d0fa1e

Browse files
committed
added lint workflows
1 parent 01cfc7a commit 1d0fa1e

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19+
1920
- name: Set Up Python
2021
uses: actions/setup-python@v4
2122
with:
@@ -25,6 +26,11 @@ jobs:
2526
run: |
2627
pip install poetry
2728
poetry install
29+
30+
- name: Run Ruff
31+
run: |
32+
poetry run ruff .
33+
2834
- name: Run tests
2935
run: |
30-
poetry run pytest
36+
poetry run pytest

poetry.lock

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ dependencies = [
1616
[tool.poetry]
1717
packages = [{include = "rowgen", from = "src"}]
1818

19+
[tool.ruff]
20+
line-length = 88
21+
target-version = "py312"
22+
select = ["E", "F", "B", "I"]
23+
ignore = ["E501"]
1924

2025
[tool.poetry.group.dev.dependencies]
2126
pytest = "^8.3.5"
2227
black = "^25.1.0"
28+
ruff = "^0.11.11"
2329

2430
[build-system]
2531
requires = ["poetry-core>=2.0.0,<3.0.0"]

0 commit comments

Comments
 (0)