diff --git a/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml new file mode 100644 index 00000000..53c622d4 --- /dev/null +++ b/.github/workflows/reuse.yaml @@ -0,0 +1,19 @@ +--- +name: REUSE Compliance + +on: + push: + branches: [main] + pull_request: + +jobs: + reuse: + name: Check REUSE compliance + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: REUSE Compliance Check + uses: fsfe/reuse-action@v5 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a967158d..2975e994 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,3 +30,7 @@ repos: rev: v2.4.2 hooks: - id: codespell + - repo: https://github.com/fsfe/reuse-tool + rev: v5.0.2 + hooks: + - id: reuse diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..d817195d --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 00000000..a95b710c --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,29 @@ +version = 1 + +[[annotations]] +path = "src/con_duct/**" +SPDX-FileCopyrightText = [ + "2019-2021 brainlife", + "2024-2026 Center for Open Neuroscience", +] +SPDX-License-Identifier = "MIT" + +[[annotations]] +path = [ + ".autorc", + ".github/**", + ".gitignore", + ".pre-commit-config.yaml", + ".update-readme-help.py", + "CHANGELOG.md", + "CLAUDE.md", + "CONTRIBUTING.rst", + "MANIFEST.in", + "README.md", + "demo/**", + "pyproject.toml", + "test/**", + "tox.ini", +] +SPDX-FileCopyrightText = "2024-2026 Center for Open Neuroscience" +SPDX-License-Identifier = "MIT"