Skip to content

Commit b4e7b6c

Browse files
committed
Add validate-pyproject to linting process
1 parent 60961ea commit b4e7b6c

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ jobs:
6868
with:
6969
configuration: --check-only
7070

71+
- name: Validate pyproject.toml
72+
run: python -m validate_pyproject pyproject.toml
73+
7174
conda-dev-test:
7275
name: Conda Setup & Code Coverage
7376
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ repos:
2121
rev: 22.3.0
2222
hooks:
2323
- id: black
24+
- repo: https://github.com/abravalheri/validate-pyproject
25+
rev: v0.10.1
26+
hooks:
27+
- id: validate-pyproject

bin/lint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ cd "$dir/.."
66
black src tests
77
isort src tests
88
python -m flake8 src tests
9+
validate-pyproject pyproject.toml

dev-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ dependencies:
3232
# Project from source
3333
- pip
3434
- pip:
35+
- validate-pyproject[all]
3536
- -e .
36-

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ dev = [
5050
"numpy",
5151
"pandas",
5252
"toml",
53+
"validate-pyproject[all]",
5354
]
5455

5556
[project.urls]

0 commit comments

Comments
 (0)