Skip to content

Commit a255d04

Browse files
committed
Lint fixes
1 parent ea9142f commit a255d04

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

src/datacustomcode/version.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright (c) 2025, Salesforce, Inc.
2+
# SPDX-License-Identifier: Apache-2
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
115
"""Version information for the Data Cloud Custom Code SDK."""
216

317
import importlib.metadata
@@ -7,7 +21,7 @@ def get_version() -> str:
721
"""Get the current version of the SDK.
822
923
Returns:
10-
str: The version string, either from package metadata.
24+
str: The version string from package metadata.
1125
"""
1226
# First try to get version from installed package metadata
1327
return importlib.metadata.version("sfdc-datacloud-customcode-sdk")

tests/test_deploy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import requests
1111

1212
from datacustomcode.credentials import Credentials
13-
from datacustomcode.version import get_version
1413

1514
# Patch get_version before importing deploy module
1615
with patch("datacustomcode.version.get_version", return_value="1.2.3"):

0 commit comments

Comments
 (0)