Unverified Commit e489ad7a authored by Russell Bryant's avatar Russell Bryant Committed by GitHub
Browse files

[Misc] Add SPDX-License-Identifier headers to python source files (#12628)

- **Add SPDX license headers to python source files**
- **Check for SPDX headers using pre-commit**

commit 9d7ef44c3cfb72ca4c32e1c677d99259d10d4745
Author: Russell Bryant <rbryant@redhat.com>
Date:   Fri Jan 31 14:18:24 2025 -0500

    Add SPDX license headers to python source files
    
This commit adds SPDX license headers to python source files as
recommended to
the project by the Linux Foundation. These headers provide a concise way
that is
both human and machine readable for communicating license information
for each
source file. It helps avoid any ambiguity about the license of the code
and can
    also be easily used by tools to help manage license compliance.
    
The Linux Foundation runs license scans against the codebase to help
ensure
    we are in compliance with the licenses of the code we use, including
dependencies. Having these headers in place helps that tool do its job.
    
    More information can be found on ...
parent f256ebe4
# SPDX-License-Identifier: Apache-2.0
from typing import List, Optional, Union from typing import List, Optional, Union
from vllm.logger import init_logger from vllm.logger import init_logger
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
import atexit import atexit
import gc import gc
......
# SPDX-License-Identifier: Apache-2.0
""" """
This file contains the command line arguments for the vLLM's This file contains the command line arguments for the vLLM's
OpenAI-compatible server. It is kept in a separate file for documentation OpenAI-compatible server. It is kept in a separate file for documentation
......
# SPDX-License-Identifier: Apache-2.0
from functools import lru_cache, partial from functools import lru_cache, partial
from typing import Dict, FrozenSet, Iterable, List, Optional, Union from typing import Dict, FrozenSet, Iterable, List, Optional, Union
......
# SPDX-License-Identifier: Apache-2.0
# Adapted from # Adapted from
# https://github.com/lm-sys/FastChat/blob/168ccc29d3f7edc50823016105c024fe2282732a/fastchat/protocol/openai_api_protocol.py # https://github.com/lm-sys/FastChat/blob/168ccc29d3f7edc50823016105c024fe2282732a/fastchat/protocol/openai_api_protocol.py
import re import re
......
# SPDX-License-Identifier: Apache-2.0
from .abs_reasoning_parsers import ReasoningParser, ReasoningParserManager from .abs_reasoning_parsers import ReasoningParser, ReasoningParserManager
from .deepseek_r1_reasoning_parser import DeepSeekR1ReasoningParser from .deepseek_r1_reasoning_parser import DeepSeekR1ReasoningParser
......
# SPDX-License-Identifier: Apache-2.0
import os import os
from functools import cached_property from functools import cached_property
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Type, Union from typing import Callable, Dict, List, Optional, Sequence, Tuple, Type, Union
......
# SPDX-License-Identifier: Apache-2.0
import re import re
from typing import Optional, Sequence, Tuple, Union from typing import Optional, Sequence, Tuple, Union
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
from http import HTTPStatus from http import HTTPStatus
from io import StringIO from io import StringIO
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
import json import json
import time import time
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
import time import time
from typing import AsyncGenerator, AsyncIterator, Dict, List, Optional from typing import AsyncGenerator, AsyncIterator, Dict, List, Optional
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
import base64 import base64
import time import time
......
# SPDX-License-Identifier: Apache-2.0
import json import json
from concurrent.futures.thread import ThreadPoolExecutor from concurrent.futures.thread import ThreadPoolExecutor
from http import HTTPStatus from http import HTTPStatus
......
# SPDX-License-Identifier: Apache-2.0
import json import json
import pathlib import pathlib
from dataclasses import dataclass from dataclasses import dataclass
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
import base64 import base64
import time import time
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
from typing import Any, AsyncGenerator, Dict, List, Optional, Union, cast from typing import Any, AsyncGenerator, Dict, List, Optional, Union, cast
......
# SPDX-License-Identifier: Apache-2.0
import asyncio import asyncio
import time import time
from typing import Any, AsyncGenerator, Dict, List, Optional, Union, cast from typing import Any, AsyncGenerator, Dict, List, Optional, Union, cast
......
# SPDX-License-Identifier: Apache-2.0
from typing import Final, List, Optional, Union from typing import Final, List, Optional, Union
from fastapi import Request from fastapi import Request
......
# SPDX-License-Identifier: Apache-2.0
from .abstract_tool_parser import ToolParser, ToolParserManager from .abstract_tool_parser import ToolParser, ToolParserManager
from .granite_20b_fc_tool_parser import Granite20bFCToolParser from .granite_20b_fc_tool_parser import Granite20bFCToolParser
from .granite_tool_parser import GraniteToolParser from .granite_tool_parser import GraniteToolParser
......
# SPDX-License-Identifier: Apache-2.0
import os import os
from functools import cached_property from functools import cached_property
from typing import Callable, Dict, List, Optional, Sequence, Type, Union from typing import Callable, Dict, List, Optional, Sequence, Type, Union
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment