Skip to content

Commit 9c63d5a

Browse files
authored
Update CI (#12)
- **Update uv pyproject to use dependency-groups** - **Clean up Makefile** - **Add Makefile targets for check, format and install**
2 parents 0038d4a + 9199e99 commit 9c63d5a

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

.github/workflows/python-app.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
with:
2727
python-version-file: "pyproject.toml"
2828
- name: Install the project
29-
run: uv sync --all-extras --dev
29+
run: make install
3030
# https://docs.astral.sh/ruff/integrations
31-
- name: Run Ruff
32-
run: uv run ruff check --output-format=github .
31+
- name: Run Check
32+
run: make check
3333
- name: Run Format
34-
run: uv run ruff format --diff
34+
run: make format

Makefile

+10-8
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ pipx-uninstall:
99
pipx uninstall linear
1010
.PHONY: pipx-uninstall
1111

12-
test:
13-
poetry run pytest linear
14-
.PHONY: test
15-
1612
clean: pipx-uninstall
1713
.PHONY: clean
1814

19-
build: clean
20-
poetry build
15+
install:
16+
uv sync --all-extras --dev
17+
.PHONY: install
18+
19+
check:
20+
uv run ruff check --output-format=github .
21+
.PHONY: check
2122

22-
release: build test
23-
gh release create v$(VERSION) --generate-notes
23+
format:
24+
uv run ruff format --diff
25+
.PHONY: format

pyproject.toml

+10-6
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,30 @@ authors = [{ name="Caspar Nettelbladt", email="[email protected]" }]
66
license = "MIT"
77
readme = "README.md"
88
requires-python = ">=3.12"
9+
package = "linear"
910
dependencies = [
1011
"requests>=2.32.3",
1112
"colorama>=0.4.6",
1213
"pygments>=2.18.0",
1314
"click>=8.1.7",
1415
"tabulate>=0.9.0",
1516
]
16-
package = "linear"
17+
18+
[dependency-groups]
19+
dev = [
20+
"ruff>=0.8.4",
21+
"pyright>=1.1.386",
22+
"pytest>=8.3.3",
23+
"pytest-asyncio>=0.24.0",
24+
"coverage>=7.6.4",
25+
]
1726

1827
[project.scripts]
1928
li = "linear.cli:cli"
2029

2130
[tool.pyright]
2231
venvPath = ".venv"
2332

24-
[tool.uv]
25-
dev-dependencies = [
26-
"ruff>=0.8.4",
27-
]
28-
2933
[build-system]
3034
requires = ["hatchling"]
3135
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)