diff --git a/example/basic.py b/example/basic.py index 88f8220..5750861 100755 --- a/example/basic.py +++ b/example/basic.py @@ -1,13 +1,12 @@ #!/usr/bin/env python3 -""" -Basic ``reverse_argparse`` functionality. +"""Basic ``reverse_argparse`` functionality.""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. + +# SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: BSD-3-Clause -""" from argparse import ArgumentParser from reverse_argparse import ReverseArgumentParser diff --git a/example/default_values.py b/example/default_values.py index 210bc0b..550994f 100755 --- a/example/default_values.py +++ b/example/default_values.py @@ -1,13 +1,12 @@ #!/usr/bin/env python3 -""" -How ``reverse_argparse`` handles default values. +"""How ``reverse_argparse`` handles default values.""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. + +# SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: BSD-3-Clause -""" from argparse import ArgumentParser from reverse_argparse import ReverseArgumentParser diff --git a/example/post_processing.py b/example/post_processing.py index fe1282d..3d6ce64 100755 --- a/example/post_processing.py +++ b/example/post_processing.py @@ -1,13 +1,12 @@ #!/usr/bin/env python3 -""" -How ``reverse_argparse`` handles post-processing of arguments. +"""How ``reverse_argparse`` handles post-processing of arguments.""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. + +# SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: BSD-3-Clause -""" import os from argparse import ArgumentParser diff --git a/example/pretty_printing.py b/example/pretty_printing.py index 132619c..3082c52 100755 --- a/example/pretty_printing.py +++ b/example/pretty_printing.py @@ -1,13 +1,12 @@ #!/usr/bin/env python3 -""" -``reverse_argparse`` pretty-printing functionality. +"""``reverse_argparse`` pretty-printing functionality.""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. + +# SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: BSD-3-Clause -""" import os from argparse import ArgumentParser diff --git a/example/relative_references.py b/example/relative_references.py index 8406308..d00f1c8 100755 --- a/example/relative_references.py +++ b/example/relative_references.py @@ -1,13 +1,12 @@ #!/usr/bin/env python3 -""" -How ``reverse_argparse`` handles relative references. +"""How ``reverse_argparse`` handles relative references.""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. + +# SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: BSD-3-Clause -""" import os from argparse import ArgumentParser diff --git a/example/subparsers.py b/example/subparsers.py index c4a666b..d811bc1 100755 --- a/example/subparsers.py +++ b/example/subparsers.py @@ -1,13 +1,12 @@ #!/usr/bin/env python3 -""" -How ``reverse_argparse`` handles subparsers. +"""How ``reverse_argparse`` handles subparsers.""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. + +# SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: BSD-3-Clause -""" import os from argparse import ArgumentParser diff --git a/example/test_examples.py b/example/test_examples.py index 12b5177..d2c46dd 100755 --- a/example/test_examples.py +++ b/example/test_examples.py @@ -1,13 +1,12 @@ #!/usr/bin/env python3 -""" -Run all the examples and ensure their output is correct. +"""Run all the examples and ensure their output is correct.""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. + +# SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: BSD-3-Clause -""" import re import shlex import subprocess # nosec B404 diff --git a/reverse_argparse/reverse_argparse.py b/reverse_argparse/reverse_argparse.py index afa6d83..62f00dd 100644 --- a/reverse_argparse/reverse_argparse.py +++ b/reverse_argparse/reverse_argparse.py @@ -6,13 +6,13 @@ that were already parsed via :mod:`argparse`, and the :func:`quote_arg_if_necessary` helper function to surround any arguments with spaces in them with quotes. +""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. -SPDX-License-Identifier: BSD-3-Clause -""" +# SPDX-License-Identifier: BSD-3-Clause import re import sys diff --git a/setup.py b/setup.py index b232d96..1e683a0 100644 --- a/setup.py +++ b/setup.py @@ -3,13 +3,14 @@ Setup file for the ``reverse_argparse`` package. To install, simply ``python3 -m pip install .`` in the repository root. +""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. + +# SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: BSD-3-Clause -""" import setuptools if __name__ == "__main__": diff --git a/test/__init__.py b/test/__init__.py index 8754c11..fe0af36 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -4,10 +4,10 @@ This ``__init__.py`` file creates the ``test`` package, such that tests can relative-import from modules in the sibling ``reverse_argparse`` directory. +""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. -SPDX-License-Identifier: BSD-3-Clause -""" +# SPDX-License-Identifier: BSD-3-Clause diff --git a/test/test_reverse_argparse.py b/test/test_reverse_argparse.py index 619eb7e..494fffd 100644 --- a/test/test_reverse_argparse.py +++ b/test/test_reverse_argparse.py @@ -1,13 +1,11 @@ #!/usr/bin/env python3 -""" -The unit test suite for the ``reverse_argparse`` package. +"""The unit test suite for the ``reverse_argparse`` package.""" -© 2024 National Technology & Engineering Solutions of Sandia, LLC -(NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. -Government retains certain rights in this software. +# © 2024 National Technology & Engineering Solutions of Sandia, LLC +# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +# U.S. Government retains certain rights in this software. -SPDX-License-Identifier: BSD-3-Clause -""" +# SPDX-License-Identifier: BSD-3-Clause import shlex import sys