Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/spdx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: SPDX License Check

on:
pull_request:
paths:
- "pyproject.toml"
- "src/**"
- ".github/workflows/spdx.yml"
push:
paths:
- "pyproject.toml"
- "src/**"
- ".github/workflows/spdx.yml"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
spdx:
name: check spdx headers
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- uses: enarx/spdx@d4020ee98e3101dd487c5184f27c6a6fb4f88709 # master
with:
licenses: MIT
1 change: 1 addition & 0 deletions src/bookmeterjson/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# SPDX-License-Identifier: MIT
2 changes: 2 additions & 0 deletions src/bookmeterjson/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT

import argparse
import sys

Expand Down
2 changes: 2 additions & 0 deletions src/bookmeterjson/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT

from dataclasses import dataclass, field
from pathlib import Path

Expand Down
2 changes: 2 additions & 0 deletions src/bookmeterjson/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT

from __future__ import annotations

from dataclasses import dataclass
Expand Down
2 changes: 2 additions & 0 deletions src/bookmeterjson/scraper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT

from __future__ import annotations

import contextlib
Expand Down