From 1490a46f4728e8be6ea2c5dc897374cab51d85b5 Mon Sep 17 00:00:00 2001 From: Jiri Kucera Date: Thu, 12 Sep 2019 11:49:01 +0200 Subject: [PATCH] Add `SPDX-License-Identifier: MIT` --- .travis.yml | 1 + .travis/config.sh | 1 + .travis/fix-coverage.sh | 1 + .travis/preinstall | 1 + .travis/runtox | 1 + molecule_requirements.txt | 1 + pylintrc | 2 ++ run_pylint.py | 32 ++++++++++++++++++++------------ tox.ini | 1 + 9 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7d97d0a..14673c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: MIT --- language: python matrix: diff --git a/.travis/config.sh b/.travis/config.sh index 41caaf3..228c8ac 100644 --- a/.travis/config.sh +++ b/.travis/config.sh @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: MIT export LSR_MOLECULE_DEPS='-rmolecule_requirements.txt' case "${TRAVIS_PYTHON_VERSION}" in diff --git a/.travis/fix-coverage.sh b/.travis/fix-coverage.sh index 1b66504..9b15758 100755 --- a/.travis/fix-coverage.sh +++ b/.travis/fix-coverage.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: MIT set -ex diff --git a/.travis/preinstall b/.travis/preinstall index b69d098..cad62cf 100755 --- a/.travis/preinstall +++ b/.travis/preinstall @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: MIT set -ex diff --git a/.travis/runtox b/.travis/runtox index b37df19..1b1ec79 100755 --- a/.travis/runtox +++ b/.travis/runtox @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: MIT set -ex diff --git a/molecule_requirements.txt b/molecule_requirements.txt index 1150f75..95356a2 100644 --- a/molecule_requirements.txt +++ b/molecule_requirements.txt @@ -1,2 +1,3 @@ +# SPDX-License-Identifier: MIT jmespath selinux diff --git a/pylintrc b/pylintrc index 5ef82bd..3cd3739 100644 --- a/pylintrc +++ b/pylintrc @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: MIT + # This file was generated using `pylint --generate-rcfile > pylintrc` command. [MASTER] diff --git a/run_pylint.py b/run_pylint.py index a907b17..0e79124 100644 --- a/run_pylint.py +++ b/run_pylint.py @@ -1,21 +1,29 @@ # -*- coding: utf-8 -*- -# Probe directory tree for python files and pass them to pylint -# Copyright (C) 2019 Red Hat, Inc. +# SPDX-License-Identifier: MIT # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# Copyright (c) 2019 Red Hat, Inc. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. # """ +Probe directory tree for python files and pass them to pylint. + Usage: python run_pylint.py ARGUMENTS Run pylint with ARGUMENTS followed by the list of python files contained in the diff --git a/tox.ini b/tox.ini index c906367..39a1ad9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: MIT [tox] envlist = black, pylint, flake8,