Skip to content

Commit ec34f70

Browse files
committed
Add validate-pyproject back to lint checks
1 parent 305d54f commit ec34f70

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ jobs:
6161
ruff check
6262
ruff format --check
6363
64+
- name: Validate pyproject.toml
65+
run: |
66+
python -m pip install validate-pyproject[all]
67+
python -m validate_pyproject pyproject.toml
68+
6469
conda-dev-test:
6570
name: Conda Setup & Code Coverage
6671
runs-on: ubuntu-latest

bin/lint.sh

+2
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ ruff check
88
code=$?; test $code -eq 0 || exitCode=$code
99
ruff format --check
1010
code=$?; test $code -eq 0 || exitCode=$code
11+
validate-pyproject pyproject.toml
12+
code=$?; test $code -eq 0 || exitCode=$code
1113
exit $exitCode

dev-environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies:
3333
- python-build
3434
- ruff
3535
- toml
36+
- validate-pyproject
3637
# Project from source
3738
- pip
3839
- pip:

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ dev = [
4747
"numpy",
4848
"pandas",
4949
"ruff",
50-
"toml"
50+
"toml",
51+
"validate-pyproject[all]"
5152
]
5253

5354
[project.urls]

0 commit comments

Comments
 (0)