Skip to content

Commit 3bf45dd

Browse files
committed
Add licence headers and format imports
1 parent 31148ef commit 3bf45dd

File tree

6 files changed

+41
-2
lines changed

6 files changed

+41
-2
lines changed

docs/source/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# -*- coding: utf-8 -*-
1+
# SPDX-FileCopyrightText: 2019-2021 Python201 Contributors
2+
# SPDX-License-Identifier: MIT
23
#
34
# Configuration file for the Sphinx documentation builder.
45
#

python201/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
# SPDX-FileCopyrightText: 2019-2021 Python201 Contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
"""python201 package initialization."""
5+
6+
7+
# internal libs
18
from .core import logging # force initialization

python201/algorithms.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
import sys
1+
# SPDX-FileCopyrightText: 2019-2021 Python201 Contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
"""Numerical algorithms."""
5+
6+
7+
# type annotations
28
from typing import List
9+
10+
# standard libs
11+
import sys
312
from argparse import ArgumentParser, FileType
413

14+
# internal libs
515
from .core.logging import getLogger, initialize_logging
16+
17+
18+
# module level logger
619
log = getLogger(__name__)
720

821

python201/core/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-FileCopyrightText: 2019-2021 Python201 Contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
"""Core modules for python201."""

python201/core/logging.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# SPDX-FileCopyrightText: 2019-2021 Python201 Contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
"""Core logging configuration."""
5+
6+
7+
# standard libs
18
from socket import gethostname
29
from logging import (getLogger, NullHandler, StreamHandler, Formatter,
310
DEBUG, INFO, WARNING, ERROR, CRITICAL)

tests/test_algorithms.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
# SPDX-FileCopyrightText: 2019-2021 Python201 Contributors
2+
# SPDX-License-Identifier: MIT
13

4+
"""Unit tests for python201.algorithms."""
5+
6+
7+
# external libs
28
from hypothesis.strategies import lists, integers
39
from hypothesis import given
410

11+
# internal libs
512
from python201.algorithms import cumulative_product
613

714

0 commit comments

Comments
 (0)