Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Jan 31, 2024
1 parent bde61e8 commit 80f3d41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/backend/adhoc/run_system_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
from typing import Iterable, Mapping

from pants.backend.adhoc.target_types import (
SystemBinaryExtraEnvVarsField,
SystemBinaryExtraSearchPathsField,
SystemBinaryFingerprintArgsField,
SystemBinaryFingerprintDependenciesField,
SystemBinaryFingerprintPattern,
SystemBinaryExtraEnvVarsField,
SystemBinaryNameField,
)
from pants.build_graph.address import Address
Expand All @@ -29,11 +29,11 @@
SearchPath,
SystemBinariesSubsystem,
)
from pants.engine.env_vars import EnvironmentVars, EnvironmentVarsRequest
from pants.engine.internals.native_engine import EMPTY_DIGEST, Digest
from pants.engine.internals.selectors import Get, MultiGet
from pants.engine.process import FallibleProcessResult, Process
from pants.engine.rules import collect_rules, rule
from pants.engine.env_vars import EnvironmentVars, EnvironmentVarsRequest
from pants.util.logging import LogLevel

logger = logging.getLogger(__name__)
Expand Down
4 changes: 3 additions & 1 deletion src/python/pants/backend/adhoc/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ class SystemBinaryFingerprintDependenciesField(AdhocToolRunnableDependenciesFiel
"""
)


class SystemBinaryExtraEnvVarsField(StringSequenceField):
alias: ClassVar[str] = "extra_env_vars"
help = help_text(
Expand All @@ -358,6 +359,7 @@ class SystemBinaryExtraEnvVarsField(StringSequenceField):
"""
)


class SystemBinaryTarget(Target):
alias: ClassVar[str] = "system_binary"
core_fields = (
Expand All @@ -367,7 +369,7 @@ class SystemBinaryTarget(Target):
SystemBinaryFingerprintPattern,
SystemBinaryFingerprintArgsField,
SystemBinaryFingerprintDependenciesField,
SystemBinaryExtraEnvVarsField
SystemBinaryExtraEnvVarsField,
)
help = help_text(
lambda: f"""
Expand Down

0 comments on commit 80f3d41

Please sign in to comment.