diff --git a/arctic/_cache.py b/arctic/_cache.py index 932877143..7e74aa4eb 100644 --- a/arctic/_cache.py +++ b/arctic/_cache.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging from datetime import datetime, timedelta diff --git a/arctic/_compression.py b/arctic/_compression.py index 171012409..fdde5ade5 100644 --- a/arctic/_compression.py +++ b/arctic/_compression.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging from multiprocessing.pool import ThreadPool diff --git a/arctic/_config.py b/arctic/_config.py index 6e59c4e46..40b4b0a23 100644 --- a/arctic/_config.py +++ b/arctic/_config.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging import os diff --git a/arctic/_util.py b/arctic/_util.py index a36292828..13b43bde6 100644 --- a/arctic/_util.py +++ b/arctic/_util.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging import numpy as np diff --git a/arctic/arctic.py b/arctic/arctic.py index f54be7d16..a7483784e 100644 --- a/arctic/arctic.py +++ b/arctic/arctic.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging import os import re diff --git a/arctic/asynchronous/_workers_pool.py b/arctic/asynchronous/_workers_pool.py index 944868ad5..360543736 100644 --- a/arctic/asynchronous/_workers_pool.py +++ b/arctic/asynchronous/_workers_pool.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import abc import logging import uuid diff --git a/arctic/asynchronous/async_arctic.py b/arctic/asynchronous/async_arctic.py index 336138d08..6e7052a1a 100644 --- a/arctic/asynchronous/async_arctic.py +++ b/arctic/asynchronous/async_arctic.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging import time from collections import defaultdict diff --git a/arctic/asynchronous/async_utils.py b/arctic/asynchronous/async_utils.py index 553be09f9..f7419ff94 100644 --- a/arctic/asynchronous/async_utils.py +++ b/arctic/asynchronous/async_utils.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import time import uuid diff --git a/arctic/auth.py b/arctic/auth.py index 747e313cb..62eacb9bf 100644 --- a/arctic/auth.py +++ b/arctic/auth.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging from collections import namedtuple diff --git a/arctic/chunkstore/_chunker.py b/arctic/chunkstore/_chunker.py index d56a2c49c..9f89d8453 100644 --- a/arctic/chunkstore/_chunker.py +++ b/arctic/chunkstore/_chunker.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" START = 's' END = 'e' diff --git a/arctic/chunkstore/chunkstore.py b/arctic/chunkstore/chunkstore.py index a0f2dab25..501861fbe 100644 --- a/arctic/chunkstore/chunkstore.py +++ b/arctic/chunkstore/chunkstore.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import hashlib import logging from collections import defaultdict diff --git a/arctic/chunkstore/date_chunker.py b/arctic/chunkstore/date_chunker.py index 9f13326d7..628c6d2c3 100644 --- a/arctic/chunkstore/date_chunker.py +++ b/arctic/chunkstore/date_chunker.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pandas as pd from arctic.date import DateRange, to_pandas_closed_closed diff --git a/arctic/chunkstore/passthrough_chunker.py b/arctic/chunkstore/passthrough_chunker.py index 5526e0a0f..6a3ad2208 100644 --- a/arctic/chunkstore/passthrough_chunker.py +++ b/arctic/chunkstore/passthrough_chunker.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from pandas import DataFrame, Series from ._chunker import Chunker diff --git a/arctic/chunkstore/tools/tools.py b/arctic/chunkstore/tools/tools.py index c45710086..df4a1fc43 100644 --- a/arctic/chunkstore/tools/tools.py +++ b/arctic/chunkstore/tools/tools.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from itertools import groupby import pymongo diff --git a/arctic/chunkstore/utils.py b/arctic/chunkstore/utils.py index ba4ee872b..41fd0b17c 100644 --- a/arctic/chunkstore/utils.py +++ b/arctic/chunkstore/utils.py @@ -1,4 +1,8 @@ """ +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" +""" Helper functions that are not 'core' to chunkstore """ diff --git a/arctic/date/_daterange.py b/arctic/date/_daterange.py index c6de242a3..0f05990cb 100644 --- a/arctic/date/_daterange.py +++ b/arctic/date/_daterange.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import datetime from six import string_types diff --git a/arctic/date/_generalslice.py b/arctic/date/_generalslice.py index d9faa1346..3ecd63385 100644 --- a/arctic/date/_generalslice.py +++ b/arctic/date/_generalslice.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from enum import Enum diff --git a/arctic/date/_mktz.py b/arctic/date/_mktz.py index bb31a9984..f14809c22 100644 --- a/arctic/date/_mktz.py +++ b/arctic/date/_mktz.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import dateutil import six import tzlocal diff --git a/arctic/date/_parse.py b/arctic/date/_parse.py index b15a743fd..efe0527f0 100644 --- a/arctic/date/_parse.py +++ b/arctic/date/_parse.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from dateutil.parser import parse as _parse diff --git a/arctic/date/_util.py b/arctic/date/_util.py index 70e837101..2ce528540 100644 --- a/arctic/date/_util.py +++ b/arctic/date/_util.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import calendar import datetime import sys diff --git a/arctic/decorators.py b/arctic/decorators.py index ca8944658..4f8771e0f 100644 --- a/arctic/decorators.py +++ b/arctic/decorators.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging import sys from functools import wraps diff --git a/arctic/exceptions.py b/arctic/exceptions.py index a3de93256..0ae4d6377 100644 --- a/arctic/exceptions.py +++ b/arctic/exceptions.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" class ArcticException(Exception): pass diff --git a/arctic/fixtures/arctic.py b/arctic/fixtures/arctic.py index 34f0f1813..61576283e 100644 --- a/arctic/fixtures/arctic.py +++ b/arctic/fixtures/arctic.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import base64 import getpass import logging diff --git a/arctic/hooks.py b/arctic/hooks.py index 67cb54ecb..0ce41b8e2 100644 --- a/arctic/hooks.py +++ b/arctic/hooks.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" _resolve_mongodb_hook = lambda env: env diff --git a/arctic/hosts.py b/arctic/hosts.py index 11abca944..66a2b01fb 100644 --- a/arctic/hosts.py +++ b/arctic/hosts.py @@ -1,4 +1,8 @@ """ +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" +""" Utilities to resolve a string to Mongo host, or a Arctic library. """ import logging diff --git a/arctic/multi_index.py b/arctic/multi_index.py index 072ce3ac3..db459d08d 100644 --- a/arctic/multi_index.py +++ b/arctic/multi_index.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" ''' Utility functions for multi-index dataframes. Useful for creating bi-temporal timeseries. ''' diff --git a/arctic/scripts/arctic_copy_data.py b/arctic/scripts/arctic_copy_data.py index a997e6e86..a11d3d7d4 100644 --- a/arctic/scripts/arctic_copy_data.py +++ b/arctic/scripts/arctic_copy_data.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import argparse import logging import os diff --git a/arctic/scripts/arctic_create_user.py b/arctic/scripts/arctic_create_user.py index 17c825ff8..ce24b117e 100644 --- a/arctic/scripts/arctic_create_user.py +++ b/arctic/scripts/arctic_create_user.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import argparse import base64 import logging diff --git a/arctic/scripts/arctic_delete_library.py b/arctic/scripts/arctic_delete_library.py index c89c26f93..d66e3f3d9 100644 --- a/arctic/scripts/arctic_delete_library.py +++ b/arctic/scripts/arctic_delete_library.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import logging diff --git a/arctic/scripts/arctic_enable_sharding.py b/arctic/scripts/arctic_enable_sharding.py index 6ca4c9280..23af55619 100644 --- a/arctic/scripts/arctic_enable_sharding.py +++ b/arctic/scripts/arctic_enable_sharding.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import optparse diff --git a/arctic/scripts/arctic_fsck.py b/arctic/scripts/arctic_fsck.py index aa80e4cdd..617203c4e 100644 --- a/arctic/scripts/arctic_fsck.py +++ b/arctic/scripts/arctic_fsck.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import argparse import logging diff --git a/arctic/scripts/arctic_init_library.py b/arctic/scripts/arctic_init_library.py index 5241f49d4..d46b3ba05 100644 --- a/arctic/scripts/arctic_init_library.py +++ b/arctic/scripts/arctic_init_library.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import argparse diff --git a/arctic/scripts/arctic_list_libraries.py b/arctic/scripts/arctic_list_libraries.py index 428459e48..d08d9f1ed 100644 --- a/arctic/scripts/arctic_list_libraries.py +++ b/arctic/scripts/arctic_list_libraries.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import optparse diff --git a/arctic/scripts/arctic_prune_versions.py b/arctic/scripts/arctic_prune_versions.py index de885c519..89b37614b 100644 --- a/arctic/scripts/arctic_prune_versions.py +++ b/arctic/scripts/arctic_prune_versions.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import logging diff --git a/arctic/scripts/utils.py b/arctic/scripts/utils.py index 23209a1b3..e9b8bb08b 100644 --- a/arctic/scripts/utils.py +++ b/arctic/scripts/utils.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import absolute_import import logging diff --git a/arctic/serialization/_serializer.py b/arctic/serialization/_serializer.py index 9025ba2e8..c8e373ac6 100644 --- a/arctic/serialization/_serializer.py +++ b/arctic/serialization/_serializer.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" class Serializer(object): def serialize(self, data, **kwargs): raise NotImplementedError diff --git a/arctic/serialization/incremental.py b/arctic/serialization/incremental.py index d04cb7b6d..9d3ea231c 100644 --- a/arctic/serialization/incremental.py +++ b/arctic/serialization/incremental.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import abc import hashlib import logging diff --git a/arctic/serialization/numpy_arrays.py b/arctic/serialization/numpy_arrays.py index 22433ae41..235be4a49 100644 --- a/arctic/serialization/numpy_arrays.py +++ b/arctic/serialization/numpy_arrays.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging import numpy as np diff --git a/arctic/serialization/numpy_records.py b/arctic/serialization/numpy_records.py index 7056c215f..68bd5624c 100644 --- a/arctic/serialization/numpy_records.py +++ b/arctic/serialization/numpy_records.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import six import logging diff --git a/arctic/store/_ndarray_store.py b/arctic/store/_ndarray_store.py index d71dc9aa1..1a7e171c2 100644 --- a/arctic/store/_ndarray_store.py +++ b/arctic/store/_ndarray_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import hashlib import logging from operator import itemgetter diff --git a/arctic/store/_pandas_ndarray_store.py b/arctic/store/_pandas_ndarray_store.py index 2dd8e81d7..2490c2e70 100644 --- a/arctic/store/_pandas_ndarray_store.py +++ b/arctic/store/_pandas_ndarray_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import ast import logging diff --git a/arctic/store/_pickle_store.py b/arctic/store/_pickle_store.py index 7c8d2e977..0e19acbae 100644 --- a/arctic/store/_pickle_store.py +++ b/arctic/store/_pickle_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import io import logging from operator import itemgetter diff --git a/arctic/store/_version_store_utils.py b/arctic/store/_version_store_utils.py index c79c4bf48..bc2292e25 100644 --- a/arctic/store/_version_store_utils.py +++ b/arctic/store/_version_store_utils.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import functools import hashlib import logging diff --git a/arctic/store/audit.py b/arctic/store/audit.py index 2fd6e2f96..9e7c34872 100644 --- a/arctic/store/audit.py +++ b/arctic/store/audit.py @@ -1,4 +1,8 @@ """ +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" +""" Handle audited data changes. """ import logging diff --git a/arctic/store/bitemporal_store.py b/arctic/store/bitemporal_store.py index ff0b8cb40..7a1f673a7 100644 --- a/arctic/store/bitemporal_store.py +++ b/arctic/store/bitemporal_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from collections import namedtuple from datetime import datetime as dt diff --git a/arctic/store/bson_store.py b/arctic/store/bson_store.py index bf9f81f5b..4178b225f 100644 --- a/arctic/store/bson_store.py +++ b/arctic/store/bson_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging from pymongo.errors import OperationFailure diff --git a/arctic/store/metadata_store.py b/arctic/store/metadata_store.py index 1972cc247..10778be7d 100644 --- a/arctic/store/metadata_store.py +++ b/arctic/store/metadata_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging from datetime import datetime as dt diff --git a/arctic/store/version_store.py b/arctic/store/version_store.py index 0c09931ca..6affcd9d1 100644 --- a/arctic/store/version_store.py +++ b/arctic/store/version_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import logging from datetime import datetime as dt, timedelta diff --git a/arctic/store/versioned_item.py b/arctic/store/versioned_item.py index a213cbf41..47a3f5c96 100644 --- a/arctic/store/versioned_item.py +++ b/arctic/store/versioned_item.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from collections import namedtuple diff --git a/arctic/tickstore/tickstore.py b/arctic/tickstore/tickstore.py index 5c13d838b..f8168981a 100644 --- a/arctic/tickstore/tickstore.py +++ b/arctic/tickstore/tickstore.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import copy diff --git a/arctic/tickstore/toplevel.py b/arctic/tickstore/toplevel.py index 3fa59bbeb..b59a66192 100644 --- a/arctic/tickstore/toplevel.py +++ b/arctic/tickstore/toplevel.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import bisect import logging import re diff --git a/benchmarks/async/async_benchmark.py b/benchmarks/async/async_benchmark.py index 21de363fc..e111db6cd 100644 --- a/benchmarks/async/async_benchmark.py +++ b/benchmarks/async/async_benchmark.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import time from six.moves import xrange diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py index d5718501c..0aff641e4 100644 --- a/benchmarks/benchmarks.py +++ b/benchmarks/benchmarks.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import random import pandas as pd diff --git a/benchmarks/fast_serializable_check.py b/benchmarks/fast_serializable_check.py index fe72e39c8..31238ca51 100644 --- a/benchmarks/fast_serializable_check.py +++ b/benchmarks/fast_serializable_check.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import time import arctic.serialization.numpy_records as anr diff --git a/benchmarks/fwd_pointers/fwd_benchmarks.py b/benchmarks/fwd_pointers/fwd_benchmarks.py index a34528232..a5d775e2d 100644 --- a/benchmarks/fwd_pointers/fwd_benchmarks.py +++ b/benchmarks/fwd_pointers/fwd_benchmarks.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import argparse diff --git a/benchmarks/lz4_tuning/benchmark_lz4.py b/benchmarks/lz4_tuning/benchmark_lz4.py index ad6276c91..944012828 100644 --- a/benchmarks/lz4_tuning/benchmark_lz4.py +++ b/benchmarks/lz4_tuning/benchmark_lz4.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import random diff --git a/howtos/201507_demo_pydata.py b/howtos/201507_demo_pydata.py index 719b5f1da..01b8221e0 100644 --- a/howtos/201507_demo_pydata.py +++ b/howtos/201507_demo_pydata.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import collections diff --git a/howtos/how_to_custom_arctic_library.py b/howtos/how_to_custom_arctic_library.py index 92d1cc9ec..404e25f25 100644 --- a/howtos/how_to_custom_arctic_library.py +++ b/howtos/how_to_custom_arctic_library.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function from datetime import datetime as dt diff --git a/howtos/how_to_use_arctic.py b/howtos/how_to_use_arctic.py index 579d797b4..1b51287de 100644 --- a/howtos/how_to_use_arctic.py +++ b/howtos/how_to_use_arctic.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" # # Arctic Key-Value store # diff --git a/setup.py b/setup.py index 0f934357e..cdbb52fbe 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" # # Copyright (C) 2015 Man AHL # diff --git a/tests/conftest.py b/tests/conftest.py index a7c9aacc6..14516c620 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import warnings # Turn deprecation warnings into errors diff --git a/tests/integration/chunkstore/test_chunkstore.py b/tests/integration/chunkstore/test_chunkstore.py index 1cede77ad..a19c39e75 100644 --- a/tests/integration/chunkstore/test_chunkstore.py +++ b/tests/integration/chunkstore/test_chunkstore.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pickle import random from datetime import datetime as dt diff --git a/tests/integration/chunkstore/test_fixes.py b/tests/integration/chunkstore/test_fixes.py index 43ece7612..3fbc5eb5c 100644 --- a/tests/integration/chunkstore/test_fixes.py +++ b/tests/integration/chunkstore/test_fixes.py @@ -1,4 +1,8 @@ """ +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" +""" Unit tests for bugfixes """ diff --git a/tests/integration/chunkstore/test_utils.py b/tests/integration/chunkstore/test_utils.py index a79bf07a1..e530d3030 100644 --- a/tests/integration/chunkstore/test_utils.py +++ b/tests/integration/chunkstore/test_utils.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import random from datetime import datetime as dt from datetime import timedelta diff --git a/tests/integration/chunkstore/tools/test_tools.py b/tests/integration/chunkstore/tools/test_tools.py index ebc2299bd..7b85e94fc 100644 --- a/tests/integration/chunkstore/tools/test_tools.py +++ b/tests/integration/chunkstore/tools/test_tools.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import numpy as np import pandas as pd from pandas.util.testing import assert_frame_equal diff --git a/tests/integration/fixtures/test_arctic.py b/tests/integration/fixtures/test_arctic.py index f907ab768..f9e15013b 100644 --- a/tests/integration/fixtures/test_arctic.py +++ b/tests/integration/fixtures/test_arctic.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from arctic.arctic import Arctic from arctic.store.metadata_store import MetadataStore from arctic.store.version_store import VersionStore diff --git a/tests/integration/scripts/test_arctic_fsck.py b/tests/integration/scripts/test_arctic_fsck.py index 1bb6348de..0a8f202cc 100644 --- a/tests/integration/scripts/test_arctic_fsck.py +++ b/tests/integration/scripts/test_arctic_fsck.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import itertools from datetime import datetime as dt, timedelta as dtd diff --git a/tests/integration/scripts/test_copy_data.py b/tests/integration/scripts/test_copy_data.py index c3b5da4aa..9b8f69094 100644 --- a/tests/integration/scripts/test_copy_data.py +++ b/tests/integration/scripts/test_copy_data.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest from mock import patch, call from pandas.util.testing import assert_frame_equal diff --git a/tests/integration/scripts/test_delete_library.py b/tests/integration/scripts/test_delete_library.py index 36c90cf39..38d659864 100644 --- a/tests/integration/scripts/test_delete_library.py +++ b/tests/integration/scripts/test_delete_library.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import getpass import pytest diff --git a/tests/integration/scripts/test_enable_sharding.py b/tests/integration/scripts/test_enable_sharding.py index 37a587209..4e2fe5809 100644 --- a/tests/integration/scripts/test_enable_sharding.py +++ b/tests/integration/scripts/test_enable_sharding.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import getpass import pytest diff --git a/tests/integration/scripts/test_initialize_library.py b/tests/integration/scripts/test_initialize_library.py index 92a2a6f86..7c9ac3ff4 100644 --- a/tests/integration/scripts/test_initialize_library.py +++ b/tests/integration/scripts/test_initialize_library.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest from mock import patch diff --git a/tests/integration/scripts/test_list_libraries.py b/tests/integration/scripts/test_list_libraries.py index 8b91aa833..4415fa323 100644 --- a/tests/integration/scripts/test_list_libraries.py +++ b/tests/integration/scripts/test_list_libraries.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import patch, call from arctic.scripts import arctic_list_libraries diff --git a/tests/integration/scripts/test_prune_versions.py b/tests/integration/scripts/test_prune_versions.py index 4488dac95..60577efdd 100644 --- a/tests/integration/scripts/test_prune_versions.py +++ b/tests/integration/scripts/test_prune_versions.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import time from mock import patch, ANY, call diff --git a/tests/integration/store/test_bitemporal_store.py b/tests/integration/store/test_bitemporal_store.py index 60762baac..c6c717898 100644 --- a/tests/integration/store/test_bitemporal_store.py +++ b/tests/integration/store/test_bitemporal_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" ''' Created on 25 Aug 2015 diff --git a/tests/integration/store/test_metadata_store.py b/tests/integration/store/test_metadata_store.py index 80adc89a4..5f6711ee1 100644 --- a/tests/integration/store/test_metadata_store.py +++ b/tests/integration/store/test_metadata_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" try: import cPickle as pickle except ImportError: diff --git a/tests/integration/store/test_ndarray_store.py b/tests/integration/store/test_ndarray_store.py index f0497df7d..23cd7c635 100644 --- a/tests/integration/store/test_ndarray_store.py +++ b/tests/integration/store/test_ndarray_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt, timedelta as dtd import bson diff --git a/tests/integration/store/test_ndarray_store_append.py b/tests/integration/store/test_ndarray_store_append.py index 533977a4c..a08fd98ba 100644 --- a/tests/integration/store/test_ndarray_store_append.py +++ b/tests/integration/store/test_ndarray_store_append.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import numpy as np from numpy.testing import assert_equal import numpy as np diff --git a/tests/integration/store/test_pandas_store.py b/tests/integration/store/test_pandas_store.py index a3e8cef8b..40047ca5c 100644 --- a/tests/integration/store/test_pandas_store.py +++ b/tests/integration/store/test_pandas_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import itertools import six import string diff --git a/tests/integration/store/test_pickle_store.py b/tests/integration/store/test_pickle_store.py index dabccb089..853d5fc20 100644 --- a/tests/integration/store/test_pickle_store.py +++ b/tests/integration/store/test_pickle_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt, timedelta import bson diff --git a/tests/integration/store/test_version_store.py b/tests/integration/store/test_version_store.py index 5669a386f..6e2aac640 100644 --- a/tests/integration/store/test_version_store.py +++ b/tests/integration/store/test_version_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import inspect import struct import time diff --git a/tests/integration/store/test_version_store_audit.py b/tests/integration/store/test_version_store_audit.py index d58cf375a..8600cced4 100644 --- a/tests/integration/store/test_version_store_audit.py +++ b/tests/integration/store/test_version_store_audit.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt import pytest diff --git a/tests/integration/store/test_version_store_corruption.py b/tests/integration/store/test_version_store_corruption.py index be2ddb5a5..d0c176914 100644 --- a/tests/integration/store/test_version_store_corruption.py +++ b/tests/integration/store/test_version_store_corruption.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pymongo import pytest from pymongo.errors import OperationFailure diff --git a/tests/integration/test_arctic.py b/tests/integration/test_arctic.py index 535d4f0d3..e20321162 100644 --- a/tests/integration/test_arctic.py +++ b/tests/integration/test_arctic.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import time from datetime import datetime as dt diff --git a/tests/integration/test_arctic_multithreading.py b/tests/integration/test_arctic_multithreading.py index 4af9d8168..9e1ded337 100644 --- a/tests/integration/test_arctic_multithreading.py +++ b/tests/integration/test_arctic_multithreading.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import os import time from multiprocessing import Process diff --git a/tests/integration/test_async_arctic.py b/tests/integration/test_async_arctic.py index 0e233e924..495a6b789 100644 --- a/tests/integration/test_async_arctic.py +++ b/tests/integration/test_async_arctic.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import arctic.asynchronous as aasync diff --git a/tests/integration/test_compress_integration.py b/tests/integration/test_compress_integration.py index 72e58f367..b81db0f03 100644 --- a/tests/integration/test_compress_integration.py +++ b/tests/integration/test_compress_integration.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function import random diff --git a/tests/integration/test_concurrent_append.py b/tests/integration/test_concurrent_append.py index 50728d6aa..ab6252642 100644 --- a/tests/integration/test_concurrent_append.py +++ b/tests/integration/test_concurrent_append.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import random import time from datetime import datetime, timedelta diff --git a/tests/integration/test_decorators.py b/tests/integration/test_decorators.py index fd3e3f487..431d6de8c 100644 --- a/tests/integration/test_decorators.py +++ b/tests/integration/test_decorators.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from arctic.decorators import _get_host diff --git a/tests/integration/test_howtos.py b/tests/integration/test_howtos.py index 1b8f088f0..0c8700db7 100644 --- a/tests/integration/test_howtos.py +++ b/tests/integration/test_howtos.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import glob import os diff --git a/tests/integration/tickstore/conftest.py b/tests/integration/tickstore/conftest.py index 389c2467d..b5850222c 100644 --- a/tests/integration/tickstore/conftest.py +++ b/tests/integration/tickstore/conftest.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest from arctic.tickstore import tickstore diff --git a/tests/integration/tickstore/test_toplevel.py b/tests/integration/tickstore/test_toplevel.py index efbdaa999..cc54dfba7 100644 --- a/tests/integration/tickstore/test_toplevel.py +++ b/tests/integration/tickstore/test_toplevel.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt, timedelta as dtd import numpy as np diff --git a/tests/integration/tickstore/test_ts_delete.py b/tests/integration/tickstore/test_ts_delete.py index 92a29e6c5..02c8aa8ec 100644 --- a/tests/integration/tickstore/test_ts_delete.py +++ b/tests/integration/tickstore/test_ts_delete.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt import numpy as np diff --git a/tests/integration/tickstore/test_ts_read.py b/tests/integration/tickstore/test_ts_read.py index 566e88e37..103fd0a9b 100644 --- a/tests/integration/tickstore/test_ts_read.py +++ b/tests/integration/tickstore/test_ts_read.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" # -*- coding: utf-8 -*- from datetime import datetime as dt diff --git a/tests/integration/tickstore/test_ts_write.py b/tests/integration/tickstore/test_ts_write.py index 67aa1bdb1..ba93031a4 100644 --- a/tests/integration/tickstore/test_ts_write.py +++ b/tests/integration/tickstore/test_ts_write.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt import pytest diff --git a/tests/unit/chunkstore/test_date_chunker.py b/tests/unit/chunkstore/test_date_chunker.py index e9cbecbd9..51b39938a 100644 --- a/tests/unit/chunkstore/test_date_chunker.py +++ b/tests/unit/chunkstore/test_date_chunker.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt import pandas as pd diff --git a/tests/unit/chunkstore/test_passthrough_chunker.py b/tests/unit/chunkstore/test_passthrough_chunker.py index 3ef065c3f..3983a4ffb 100644 --- a/tests/unit/chunkstore/test_passthrough_chunker.py +++ b/tests/unit/chunkstore/test_passthrough_chunker.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest import six from pandas import DataFrame, Series diff --git a/tests/unit/date/test_daterange.py b/tests/unit/date/test_daterange.py index 1836fe6ae..bc38f3b0c 100644 --- a/tests/unit/date/test_daterange.py +++ b/tests/unit/date/test_daterange.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import itertools import operator from datetime import datetime as dt diff --git a/tests/unit/date/test_datetime_to_ms_roundtrip.py b/tests/unit/date/test_datetime_to_ms_roundtrip.py index 55114ffb7..da60c422c 100644 --- a/tests/unit/date/test_datetime_to_ms_roundtrip.py +++ b/tests/unit/date/test_datetime_to_ms_roundtrip.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import datetime import pytest diff --git a/tests/unit/date/test_mktz.py b/tests/unit/date/test_mktz.py index 1f7a44d5a..aa3e78e59 100644 --- a/tests/unit/date/test_mktz.py +++ b/tests/unit/date/test_mktz.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt import tzlocal diff --git a/tests/unit/date/test_util.py b/tests/unit/date/test_util.py index b4a7d3d25..1e753971b 100644 --- a/tests/unit/date/test_util.py +++ b/tests/unit/date/test_util.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt import pytest diff --git a/tests/unit/scripts/test_arctic_create_user.py b/tests/unit/scripts/test_arctic_create_user.py index 84e8ec793..e40c51f40 100644 --- a/tests/unit/scripts/test_arctic_create_user.py +++ b/tests/unit/scripts/test_arctic_create_user.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import patch, call, ANY from arctic.scripts.arctic_create_user import main diff --git a/tests/unit/scripts/test_arctic_fsck.py b/tests/unit/scripts/test_arctic_fsck.py index 73ab01a61..4445e4222 100644 --- a/tests/unit/scripts/test_arctic_fsck.py +++ b/tests/unit/scripts/test_arctic_fsck.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import patch, sentinel, call from arctic.scripts.arctic_fsck import main diff --git a/tests/unit/scripts/test_initialize_library.py b/tests/unit/scripts/test_initialize_library.py index 1d6633cf1..66048111b 100644 --- a/tests/unit/scripts/test_initialize_library.py +++ b/tests/unit/scripts/test_initialize_library.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest from mock import patch diff --git a/tests/unit/scripts/test_utils.py b/tests/unit/scripts/test_utils.py index ae04cb492..d237839ce 100644 --- a/tests/unit/scripts/test_utils.py +++ b/tests/unit/scripts/test_utils.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import patch, Mock, call, MagicMock from arctic.scripts.utils import do_db_auth diff --git a/tests/unit/serialization/serialization_test_data.py b/tests/unit/serialization/serialization_test_data.py index 885181557..0a51304fa 100644 --- a/tests/unit/serialization/serialization_test_data.py +++ b/tests/unit/serialization/serialization_test_data.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import numpy as np import pandas as pd diff --git a/tests/unit/serialization/test_incremental.py b/tests/unit/serialization/test_incremental.py index f26288358..b90e064fd 100644 --- a/tests/unit/serialization/test_incremental.py +++ b/tests/unit/serialization/test_incremental.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import itertools import pytest diff --git a/tests/unit/serialization/test_numpy_arrays.py b/tests/unit/serialization/test_numpy_arrays.py index 9492712b0..0789f68cd 100644 --- a/tests/unit/serialization/test_numpy_arrays.py +++ b/tests/unit/serialization/test_numpy_arrays.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import numpy as np import pandas as pd import pytest diff --git a/tests/unit/serialization/test_numpy_records.py b/tests/unit/serialization/test_numpy_records.py index 2997c6c7c..f753d7dbe 100644 --- a/tests/unit/serialization/test_numpy_records.py +++ b/tests/unit/serialization/test_numpy_records.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import numpy as np import pandas as pd import pytest diff --git a/tests/unit/serialization/test_pandas_is_serializable.py b/tests/unit/serialization/test_pandas_is_serializable.py index 7de6ef257..fc64122ab 100644 --- a/tests/unit/serialization/test_pandas_is_serializable.py +++ b/tests/unit/serialization/test_pandas_is_serializable.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest import arctic.serialization.numpy_records as anr diff --git a/tests/unit/store/test_bitemporal_store.py b/tests/unit/store/test_bitemporal_store.py index 22a7f9cf5..a0eb210db 100644 --- a/tests/unit/store/test_bitemporal_store.py +++ b/tests/unit/store/test_bitemporal_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt from mock import create_autospec diff --git a/tests/unit/store/test_bson_store.py b/tests/unit/store/test_bson_store.py index 9e7643470..91bec9336 100644 --- a/tests/unit/store/test_bson_store.py +++ b/tests/unit/store/test_bson_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import sentinel, create_autospec, patch, call, Mock from pymongo.collection import Collection diff --git a/tests/unit/store/test_metadata_store.py b/tests/unit/store/test_metadata_store.py index 7fcea86f3..e7b9e6f26 100644 --- a/tests/unit/store/test_metadata_store.py +++ b/tests/unit/store/test_metadata_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import datetime as dt from mock import create_autospec, call diff --git a/tests/unit/store/test_ndarray_store.py b/tests/unit/store/test_ndarray_store.py index eec7a04e5..e2adff0c1 100644 --- a/tests/unit/store/test_ndarray_store.py +++ b/tests/unit/store/test_ndarray_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import numpy as np import pytest from mock import create_autospec, sentinel, call diff --git a/tests/unit/store/test_pandas_ndarray_store.py b/tests/unit/store/test_pandas_ndarray_store.py index 2d3ee8b60..a0ed21032 100644 --- a/tests/unit/store/test_pandas_ndarray_store.py +++ b/tests/unit/store/test_pandas_ndarray_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import numpy as np from mock import Mock, sentinel, patch from pytest import raises diff --git a/tests/unit/store/test_pickle_store.py b/tests/unit/store/test_pickle_store.py index 3f9760843..ca20c5a7f 100644 --- a/tests/unit/store/test_pickle_store.py +++ b/tests/unit/store/test_pickle_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import sys from distutils.version import LooseVersion from os import path diff --git a/tests/unit/store/test_version_item.py b/tests/unit/store/test_version_item.py index 523884745..cef39f639 100644 --- a/tests/unit/store/test_version_item.py +++ b/tests/unit/store/test_version_item.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pandas as pd from arctic.store.versioned_item import VersionedItem diff --git a/tests/unit/store/test_version_store.py b/tests/unit/store/test_version_store.py index 93fc346e3..0331b520e 100644 --- a/tests/unit/store/test_version_store.py +++ b/tests/unit/store/test_version_store.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import datetime from datetime import datetime as dt, timedelta as dtd diff --git a/tests/unit/store/test_version_store_audit.py b/tests/unit/store/test_version_store_audit.py index 6ecadc731..1870fd16d 100644 --- a/tests/unit/store/test_version_store_audit.py +++ b/tests/unit/store/test_version_store_audit.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pandas as pd import pytest from mock import Mock, sentinel, ANY, call diff --git a/tests/unit/store/test_version_store_utils.py b/tests/unit/store/test_version_store_utils.py index a8d39a8bb..02ffd0cfb 100644 --- a/tests/unit/store/test_version_store_utils.py +++ b/tests/unit/store/test_version_store_utils.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import binascii import numpy as np diff --git a/tests/unit/test_arctic.py b/tests/unit/test_arctic.py index 3fe8c6625..0c0e96f4b 100644 --- a/tests/unit/test_arctic.py +++ b/tests/unit/test_arctic.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" try: import cPickle as pickle except ImportError: diff --git a/tests/unit/test_auth.py b/tests/unit/test_auth.py index d10b078ec..9617dbad6 100644 --- a/tests/unit/test_auth.py +++ b/tests/unit/test_auth.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest from mock import create_autospec, sentinel from pymongo.database import Database diff --git a/tests/unit/test_compress.py b/tests/unit/test_compress.py index 09ed5438f..5e6140c08 100644 --- a/tests/unit/test_compress.py +++ b/tests/unit/test_compress.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import random import string diff --git a/tests/unit/test_compression.py b/tests/unit/test_compression.py index 64c36db17..c2dabc14f 100644 --- a/tests/unit/test_compression.py +++ b/tests/unit/test_compression.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import patch, Mock from arctic._compression import compress, compress_array, decompress, decompress_array, enable_parallel_lz4 diff --git a/tests/unit/test_decorators_unit.py b/tests/unit/test_decorators_unit.py index ad5b11a4a..f5bee3071 100644 --- a/tests/unit/test_decorators_unit.py +++ b/tests/unit/test_decorators_unit.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest from mock import patch, sentinel, Mock, MagicMock from pymongo.errors import AutoReconnect, OperationFailure, DuplicateKeyError, ServerSelectionTimeoutError diff --git a/tests/unit/test_fixtures.py b/tests/unit/test_fixtures.py index 6502ccb93..0acabedaf 100644 --- a/tests/unit/test_fixtures.py +++ b/tests/unit/test_fixtures.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import Mock import arctic.fixtures.arctic as fix diff --git a/tests/unit/test_hooks.py b/tests/unit/test_hooks.py index 92d000818..15b2c4196 100644 --- a/tests/unit/test_hooks.py +++ b/tests/unit/test_hooks.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import sentinel, call, Mock from arctic.auth import get_auth diff --git a/tests/unit/test_hosts.py b/tests/unit/test_hosts.py index fd7261fb8..3183b8981 100644 --- a/tests/unit/test_hosts.py +++ b/tests/unit/test_hosts.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import pytest from mock import patch, call diff --git a/tests/unit/test_multi_index.py b/tests/unit/test_multi_index.py index 563220173..6c69e3a23 100644 --- a/tests/unit/test_multi_index.py +++ b/tests/unit/test_multi_index.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" import itertools from datetime import timedelta diff --git a/tests/unit/test_util.py b/tests/unit/test_util.py index e37ff8f46..fe65ec4cf 100644 --- a/tests/unit/test_util.py +++ b/tests/unit/test_util.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from mock import MagicMock, ANY from arctic._util import are_equals, enable_sharding diff --git a/tests/unit/tickstore/test_tickstore.py b/tests/unit/tickstore/test_tickstore.py index 9df0aab70..f43e1e1fa 100644 --- a/tests/unit/tickstore/test_tickstore.py +++ b/tests/unit/tickstore/test_tickstore.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from datetime import datetime as dt import numpy as np diff --git a/tests/unit/tickstore/test_toplevel.py b/tests/unit/tickstore/test_toplevel.py index 0a21470a0..71ebf6f71 100644 --- a/tests/unit/tickstore/test_toplevel.py +++ b/tests/unit/tickstore/test_toplevel.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" try: from unittest.mock import Mock, patch, MagicMock, create_autospec, sentinel, call except: diff --git a/tests/util.py b/tests/util.py index accb63f49..5eb503682 100644 --- a/tests/util.py +++ b/tests/util.py @@ -1,3 +1,7 @@ +""" +Copyright (C) 2020 Man Group +For a list of authors, see README.md; for the license, see file LICENSE in project root directory. +""" from __future__ import print_function try: import cStringIO as stringio