Skip to content

Commit

Permalink
Chore: Add license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Nov 7, 2024
1 parent 4548295 commit 28c24dc
Show file tree
Hide file tree
Showing 27 changed files with 264 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .copyright.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Copyright (c) 2023-${edit_year} Blue Brain Project, EPFL.

This file is part of region-grower.
See https://github.com/BlueBrain/region-grower for further info.

SPDX-License-Identifier: Apache-2.0
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ repos:
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/arkinmodi/add-license-header
rev: v2.2.0
hooks:
- id: add-license-header
args:
- --license-file
- .copyright.tmpl
files: \.py$
10 changes: 10 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Configuration file for the Sphinx documentation builder."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
Expand Down
10 changes: 10 additions & 0 deletions region_grower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
Synthesize cells in a given spatial context.
"""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import importlib.metadata

__version__ = importlib.metadata.version("region-grower")
Expand Down
10 changes: 10 additions & 0 deletions region_grower/atlas_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
This helper allows simple lookups without having to reason in term of [PH][1-6] and [PH]y.
"""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import operator
from pathlib import Path
from typing import List
Expand Down
10 changes: 10 additions & 0 deletions region_grower/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Command Line Interface for the region_grower package."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

# pylint: disable=redefined-outer-name
import importlib.metadata
import json
Expand Down
10 changes: 10 additions & 0 deletions region_grower/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
the placement_algorithm package to synthesize circuit morphologies.
"""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import os
from collections import defaultdict
from copy import deepcopy
Expand Down
10 changes: 10 additions & 0 deletions region_grower/generate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Functions to generate parameters and distributions."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import json
import logging
import multiprocessing
Expand Down
10 changes: 10 additions & 0 deletions region_grower/modify.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Use spatial properties to modify synthesis input."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

from typing import Dict
from typing import List
from typing import Optional
Expand Down
10 changes: 10 additions & 0 deletions region_grower/morph_io.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Module to load and write morphologies."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import os
import random
import uuid
Expand Down
10 changes: 10 additions & 0 deletions region_grower/synthesize_morphologies.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
- optional axon grafting "on-the-fly"
"""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import json
import logging
import os
Expand Down
10 changes: 10 additions & 0 deletions region_grower/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Utils module."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import json
import logging
import os
Expand Down
10 changes: 10 additions & 0 deletions region_grower/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""Version of the region-grower package."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

VERSION = "1.4.0" # pragma: no cover
10 changes: 10 additions & 0 deletions scripts/distribution_definition/add_diameter_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Script to add the diameter distributions to another distribution."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import argparse
import json
import os
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Extract TNS distributions used by NeuroTS."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

from __future__ import print_function

import argparse
Expand Down
10 changes: 10 additions & 0 deletions scripts/parameter_definition/generate_synthesis_recipe.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Script to generate a synthesis recipe."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

import copy
import json

Expand Down
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Setup for the region-grower package."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

from pathlib import Path

from setuptools import find_namespace_packages
Expand Down
10 changes: 10 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
"""Tests suite for the region-grower package."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#
10 changes: 10 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Configuration for the pytest test suite."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

# pylint: disable=redefined-outer-name
# pylint: disable=missing-function-docstring
from pathlib import Path
Expand Down
10 changes: 10 additions & 0 deletions tests/data_factories.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Generate atlas for tests."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

# pylint: disable=missing-function-docstring
import json
import os
Expand Down
10 changes: 10 additions & 0 deletions tests/test_atlas_helper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Test the region_grower.atlas_helper.AtlasHelper module."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

from pathlib import Path

import pytest
Expand Down
10 changes: 10 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Tests for the region_grower.cli module."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

# pylint: disable=missing-function-docstring
import json
from pathlib import Path
Expand Down
10 changes: 10 additions & 0 deletions tests/test_context.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Test the region_grower.context module."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

# pylint: disable=missing-function-docstring
# pylint: disable=use-implicit-booleaness-not-comparison

Expand Down
10 changes: 10 additions & 0 deletions tests/test_modify.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Test the region_grower.modify module."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

# pylint: disable=missing-function-docstring
from copy import deepcopy

Expand Down
10 changes: 10 additions & 0 deletions tests/test_morph_io.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
"""Test the region_grower.utils module."""

# LICENSE HEADER MANAGED BY add-license-header
#
# Copyright (c) 2023-2024 Blue Brain Project, EPFL.
#
# This file is part of region-grower.
# See https://github.com/BlueBrain/region-grower for further info.
#
# SPDX-License-Identifier: Apache-2.0
#

# pylint: disable=missing-function-docstring
# pylint: disable=protected-access
from pathlib import Path
Expand Down
Loading

0 comments on commit 28c24dc

Please sign in to comment.