Skip to content

Commit

Permalink
Merge pull request #98 from sandialabs/move-copyright-and-license-tex…
Browse files Browse the repository at this point in the history
…t-to-comments

docs: Move copyright/license text to comments
  • Loading branch information
jmgate authored Mar 4, 2024
2 parents 602ad49 + b355341 commit ead994f
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 71 deletions.
13 changes: 6 additions & 7 deletions example/basic.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 6 additions & 7 deletions example/default_values.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 6 additions & 7 deletions example/post_processing.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 6 additions & 7 deletions example/pretty_printing.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 6 additions & 7 deletions example/relative_references.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 6 additions & 7 deletions example/subparsers.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 6 additions & 7 deletions example/test_examples.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions reverse_argparse/reverse_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
10 changes: 5 additions & 5 deletions test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 5 additions & 7 deletions test/test_reverse_argparse.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ead994f

Please sign in to comment.