From 1e8f84beb2de2e65a417eb2625e21f998ad56fab Mon Sep 17 00:00:00 2001 From: Tom Tankilevitch <59158507+Tankilevitch@users.noreply.github.com> Date: Tue, 23 Aug 2022 16:48:20 +0300 Subject: [PATCH] [CI] Find new files without copyright (#2288) --- .github/workflows/ci.yaml | 8 ++++++++ .licenserc.json | 8 ++++++++ .readthedocs.yml | 14 ++++++++++++++ tests/api/api/test_docs.py | 14 ++++++++++++++ tests/run/test_context_decorator.py | 14 ++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 .licenserc.json diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b5ddb638df..a49462bfb1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -194,3 +194,11 @@ jobs: run: | cd head/mlrun MLRUN_DOCKER_CACHE_FROM_TAG=${{ steps.docker_cache.outputs.tag }} make test-backward-compatibility-dockerized + + check-copyright: + name: Check Copyright Existent + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check License Lines + uses: kt3k/license_checker@v1.0.6 diff --git a/.licenserc.json b/.licenserc.json new file mode 100644 index 0000000000..8f60f32f8f --- /dev/null +++ b/.licenserc.json @@ -0,0 +1,8 @@ +{ + "**/*.{py,yaml,yml}": "Licensed under the Apache License, Version 2.0", + "**/{Dockerfile,Makefile}": "Licensed under the Apache License, Version 2.0", + "ignore": [ + "docs/", + "vendor/" + ] +} diff --git a/.readthedocs.yml b/.readthedocs.yml index d936a1f6fc..16b63afe84 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,3 +1,17 @@ +# Copyright 2018 Iguazio +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# version: 2 # Build documentation in the docs/ directory with Sphinx diff --git a/tests/api/api/test_docs.py b/tests/api/api/test_docs.py index 7afea2f06f..d140a7d81d 100644 --- a/tests/api/api/test_docs.py +++ b/tests/api/api/test_docs.py @@ -1,3 +1,17 @@ +# Copyright 2018 Iguazio +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import http import os diff --git a/tests/run/test_context_decorator.py b/tests/run/test_context_decorator.py index b196c5cd62..9cee772e2d 100644 --- a/tests/run/test_context_decorator.py +++ b/tests/run/test_context_decorator.py @@ -1,3 +1,17 @@ +# Copyright 2018 Iguazio +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# import os import tempfile import zipfile