Skip to content

Commit be1df92

Browse files
committed
Add pyproject.toml validation
Validate the file using validate-pyproject Add the test as part of the main `test` target. Add a workflow step to run the test.
1 parent 403263a commit be1df92

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
run: pip install -r requirements-dev.txt
1919
- name: Run tests + cov report
2020
run: make test-with-coverage
21+
- name: Run validate-pyproject
22+
run: make checkpyproject
2123
- name: Upload coverage to CodeCov
2224
uses: codecov/codecov-action@v5
2325
with:

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,9 @@ test-with-coverage:
2424
.PHONY: checkstyle
2525
checkstyle: ruff
2626

27+
.PHONY: checkpyproject
28+
checkpyproject:
29+
validate-pyproject pyproject.toml
30+
2731
.PHONY: test
28-
test: only-test checkstyle
32+
test: only-test checkstyle checkpyproject

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ ruamel.yaml
1111
jsonschema
1212
urllib3<2 # responses needs <2, see https://github.com/getsentry/responses/issues/635
1313
ruff
14+
validate-pyproject[all]

0 commit comments

Comments
 (0)