Skip to content

Commit

Permalink
Fix #1713, 1714: deprecate redundant copyright notice (PR #1718)
Browse files Browse the repository at this point in the history
Fix:
- #1713 copyright notice *per file* is redundant, so deprecate
- #1714 copyright on PRs is redundant, so remove
  • Loading branch information
trentmc authored Jan 25, 2025
1 parent f3281be commit 991c817
Show file tree
Hide file tree
Showing 373 changed files with 4 additions and 1,489 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
##
## Copyright 2024 Ocean Protocol Foundation
## SPDX-License-Identifier: Apache-2.0
##
FROM python:3.11-slim
WORKDIR /app
ADD . /app
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
<!--
Copyright 2024 Ocean Protocol Foundation
SPDX-License-Identifier: Apache-2.0
-->

# pdr-backend

## Run bots (agents)
Expand Down
4 changes: 0 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/bash
##
## Copyright 2024 Ocean Protocol Foundation
## SPDX-License-Identifier: Apache-2.0
##

if [ "${WAIT_FOR_CONTRACTS}" = "true" ]
# Development only
Expand Down
4 changes: 0 additions & 4 deletions logging.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
##
## Copyright 2024 Ocean Protocol Foundation
## SPDX-License-Identifier: Apache-2.0
##
version: 1
disable_existing_loggers: False
formatters:
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/accuracy/test/test_app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List
from unittest.mock import patch

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/aimodel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import Optional

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/aimodel_data_factory.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import logging
import sys
from typing import List, Optional, Tuple
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/aimodel_factory.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import copy
import logging
from typing import Optional
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/aimodel_plotdata.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List, Optional

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/aimodel_plotter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import numpy as np
import plotly.graph_objects as go
from plotly.subplots import make_subplots
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from enforce_typing import enforce_types
import polars as pl
import pytest
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/test/test_aimodel_data_factory_main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from enforce_typing import enforce_types
import numpy as np
from numpy.testing import assert_array_equal
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/test/test_aimodel_data_factory_reldiff.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from enforce_typing import enforce_types
import numpy as np
from numpy.testing import assert_array_equal, assert_allclose
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/test/test_aimodel_factory_general.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from unittest.mock import Mock
import os
import numpy as np
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/test/test_aimodel_factory_pricedata.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import os

from enforce_typing import enforce_types
Expand Down
5 changes: 0 additions & 5 deletions pdr_backend/aimodel/test/test_aiplotdata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#

# nothing here, see testing in test_aimodel_general.py
5 changes: 0 additions & 5 deletions pdr_backend/aimodel/test/test_aiplotter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#

# nothing here, see testing in test_aimodel_general.py
4 changes: 0 additions & 4 deletions pdr_backend/aimodel/test/test_ycont_to_ytrue.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from enforce_typing import enforce_types
import numpy as np
from numpy.testing import assert_array_equal
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/check_network.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import logging
import math
from typing import Union
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/get_predictions_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import logging
from typing import List

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/predictoor_stats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import logging
import os
from typing import Set, Tuple, TypedDict
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import polars as pl
import pytest

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/test/test_check_network.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from datetime import datetime, UTC
from unittest.mock import Mock, patch

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/test/test_get_predictions_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from unittest.mock import patch

import polars as pl
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/test/test_get_predictoors_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from unittest.mock import patch

import polars as pl
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/test/test_get_traction_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from unittest.mock import patch

import polars as pl
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/analytics/test/test_predictoor_stats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from unittest.mock import patch

import polars as pl
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/arg_exchange.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List, Union

import ccxt
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/arg_feed.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from collections import defaultdict
from typing import List, Optional, Union

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/arg_feeds.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import Dict, List, Optional, Set, Union

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/arg_pair.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import re
from typing import List, Optional, Tuple, Union

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/arg_signal.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List, Set, Union

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/arg_timeframe.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List, Union

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/cli_arguments.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import argparse
import logging
import sys
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/cli_arguments_lake.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import logging
import os
from argparse import ArgumentParser
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/cli_module.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import logging
import sys

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/cli_module_lake.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import logging

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/nested_arg_parser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import argparse
import ast

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/parse_feed_obj.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List, Union

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/predict_train_feedset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List, Dict

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/predict_train_feedsets.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List

from enforce_typing import enforce_types
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_arg_exchange.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import pytest
from enforce_typing import enforce_types

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_arg_feed.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import pytest
from enforce_typing import enforce_types

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_arg_feeds.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import pytest
from enforce_typing import enforce_types

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_arg_pair.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import pytest
from enforce_typing import enforce_types

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_arg_signal.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import pytest
from enforce_typing import enforce_types

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_arg_threshold.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import pytest
from enforce_typing import enforce_types

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_cli_arguments.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import pytest

from pdr_backend.cli.cli_arguments import (
Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_cli_arguments_lake.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import os
from unittest.mock import patch

Expand Down
4 changes: 0 additions & 4 deletions pdr_backend/cli/test/test_cli_module.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# Copyright 2024 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import os
from argparse import Namespace
from unittest.mock import Mock, patch
Expand Down
Loading

0 comments on commit 991c817

Please sign in to comment.