Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and kenodegard committed Sep 6, 2022
1 parent a5c0db9 commit 5e95169
Show file tree
Hide file tree
Showing 110 changed files with 220 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmarks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions benchmarks/time_render.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os

from conda_build import api
Expand Down
2 changes: 2 additions & 0 deletions conda.recipe/run_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import conda_build

print('conda_build.__version__: %s' % conda_build.__version__)
2 changes: 2 additions & 0 deletions conda.recipe/test_bdist_conda_setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from setuptools import setup
import conda_build.bdist_conda

Expand Down
2 changes: 2 additions & 0 deletions conda_build/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from . import _version
__version__ = _version.get_versions()['version']

Expand Down
2 changes: 2 additions & 0 deletions conda_build/_link.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
This is code that is added to noarch Python packages. See
conda_build/noarch_python.py.
Expand Down
2 changes: 2 additions & 0 deletions conda_build/_load_setup_py_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import sys
import logging
Expand Down
2 changes: 2 additions & 0 deletions conda_build/api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
This file defines the public API for conda-build. Adding or removing functions,
or Changing arguments to anything in here should also mean changing the major
Expand Down
2 changes: 2 additions & 0 deletions conda_build/bdist_conda.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
bdist_conda
Expand Down
2 changes: 2 additions & 0 deletions conda_build/build.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
'''
Module that does most of the heavy lifting for the ``conda build`` command.
'''
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions conda_build/cli/actions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse


Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_build.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import warnings

Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_convert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from locale import getpreferredencoding
import logging
from os.path import abspath, expanduser
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_debug.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import logging
import sys
from argparse import ArgumentParser
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_develop.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import logging
import sys

Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import logging
import os
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_inspect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import logging
from os.path import expanduser
from pprint import pprint
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_metapackage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import logging
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_render.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import logging
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/main_skeleton.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import importlib
import logging
import os
Expand Down
2 changes: 2 additions & 0 deletions conda_build/cli/validators.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from __future__ import annotations

import os
Expand Down
2 changes: 2 additions & 0 deletions conda_build/conda_interface.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from functools import partial
import os
from os import lstat
Expand Down
2 changes: 2 additions & 0 deletions conda_build/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
'''
Module to store conda build settings.
'''
Expand Down
2 changes: 2 additions & 0 deletions conda_build/convert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
# (c) 2012-2017 Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
Expand Down
2 changes: 2 additions & 0 deletions conda_build/create_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
'''
Module to handle generating test files.
'''
Expand Down
2 changes: 2 additions & 0 deletions conda_build/develop.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from os.path import join, isdir, abspath, expanduser, exists
import shutil
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/environ.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import contextlib
import json
import logging
Expand Down
2 changes: 2 additions & 0 deletions conda_build/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import textwrap
SEPARATOR = "-" * 70

Expand Down
2 changes: 2 additions & 0 deletions conda_build/features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import sys

Expand Down
2 changes: 2 additions & 0 deletions conda_build/index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Anaconda, Inc
# SPDX-License-Identifier: Proprietary

Expand Down
2 changes: 2 additions & 0 deletions conda_build/inspect_pkg.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from collections import defaultdict
from itertools import groupby
import json
Expand Down
2 changes: 2 additions & 0 deletions conda_build/jinja_context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from functools import partial
from io import StringIO
import json
Expand Down
2 changes: 2 additions & 0 deletions conda_build/license_family.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import re
import string
from conda_build import exceptions
Expand Down
2 changes: 2 additions & 0 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from collections import OrderedDict
import contextlib
import copy
Expand Down
2 changes: 2 additions & 0 deletions conda_build/metapackage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from collections import defaultdict
from conda_build.config import Config
from conda_build.metadata import MetaData
Expand Down
2 changes: 2 additions & 0 deletions conda_build/noarch_python.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import json
import locale
import logging
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions conda_build/os_utils/elf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import sys
from os.path import islink, isfile

Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/external.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import stat
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/ldd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import sys
import re
import subprocess
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/liefldd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
try:
from collections.abc import Hashable
except ImportError:
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/macho.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import re
import stat
import sys
Expand Down
2 changes: 2 additions & 0 deletions conda_build/os_utils/pyldd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import glob
import os
Expand Down
2 changes: 2 additions & 0 deletions conda_build/post.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from copy import copy
from collections import defaultdict, OrderedDict
from functools import partial
Expand Down
2 changes: 2 additions & 0 deletions conda_build/render.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from collections import OrderedDict, defaultdict
from locale import getpreferredencoding
import json
Expand Down
2 changes: 2 additions & 0 deletions conda_build/skeletons/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions conda_build/skeletons/_example_skeleton.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""This file is an example of the structure that any add-on module for a new language should have.
You can have structure beyond this, but this is a minimum of what conda-build will look for."""
Expand Down
2 changes: 2 additions & 0 deletions conda_build/skeletons/cpan.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
Tools for converting CPAN packages to conda recipes.
"""
Expand Down
2 changes: 2 additions & 0 deletions conda_build/skeletons/cran.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
Tools for converting Cran packages to conda recipes.
"""
Expand Down
2 changes: 2 additions & 0 deletions conda_build/skeletons/luarocks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
Tools for converting luarocks packages to conda recipes.
"""
Expand Down
2 changes: 2 additions & 0 deletions conda_build/skeletons/pypi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
Tools for converting PyPI packages to conda recipes.
"""
Expand Down
2 changes: 2 additions & 0 deletions conda_build/skeletons/rpm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import argparse
from conda_build.conda_interface import iteritems
from conda_build.source import download_to_cache
Expand Down
2 changes: 2 additions & 0 deletions conda_build/source.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import locale
import os
from os.path import join, isdir, isfile, abspath, basename, exists, normpath, expanduser
Expand Down
2 changes: 2 additions & 0 deletions conda_build/tarcheck.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import json
from os.path import basename, normpath
import tarfile
Expand Down
2 changes: 2 additions & 0 deletions conda_build/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from collections import OrderedDict, defaultdict
import contextlib
import fnmatch
Expand Down
2 changes: 2 additions & 0 deletions conda_build/variants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""This file handles the parsing of feature specifications from files,
ending up with a configuration matrix"""

Expand Down
2 changes: 2 additions & 0 deletions conda_build/windows.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import pprint
from os.path import isdir, join, dirname, isfile
Expand Down
2 changes: 2 additions & 0 deletions docs/scrape_help.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from subprocess import check_output, PIPE, Popen, STDOUT
from os.path import join, dirname, abspath, isdir
from os import makedirs, pathsep
Expand Down
2 changes: 2 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
#
# Configuration file for the Sphinx documentation builder.
#
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from pathlib import Path
from setuptools import setup

Expand Down
2 changes: 2 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
# This is just here so that tests is a package, so that dotted relative
# imports work.
2 changes: 2 additions & 0 deletions tests/bdist-recipe/bin/test-script-setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import conda_build_test
conda_build_test

Expand Down
2 changes: 2 additions & 0 deletions tests/bdist-recipe/conda_build_test/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
conda build test package
"""
Expand Down
2 changes: 2 additions & 0 deletions tests/bdist-recipe/conda_build_test/empty.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions tests/bdist-recipe/conda_build_test/manual_entry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
def main():
import argparse

Expand Down
2 changes: 2 additions & 0 deletions tests/bdist-recipe/setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from setuptools import setup
import conda_build.bdist_conda

Expand Down
2 changes: 2 additions & 0 deletions tests/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
2 changes: 2 additions & 0 deletions tests/cli/test_main_debug.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import io
import os.path
import sys
Expand Down
Loading

0 comments on commit 5e95169

Please sign in to comment.