Skip to content

Commit

Permalink
Assets are on by default
Browse files Browse the repository at this point in the history
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]
  • Loading branch information
thejcannon committed Mar 11, 2022
1 parent 209e7ef commit d588e39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ macos_big_sur_compatibility = true
resolves = { python-default = "3rdparty/python/lockfiles/user_reqs.txt" }
enable_resolves = true

[python-infer]
assets = true

[docformatter]
args = ["--wrap-summaries=100", "--wrap-descriptions=100"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class PythonInferSubsystem(Subsystem):
)
assets = BoolOption(
"--assets",
default=False,
default=True,
help=(
"Infer a target's asset dependencies based on strings that look like Posix "
"filepaths, such as those given to `open` or `pkgutil.get_data`. To ignore any "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,7 @@ def test_infer_python_assets(caplog) -> None:
)

def run_dep_inference(address: Address) -> InferredDependencies:
args = [
"--source-root-patterns=src/python",
"--python-infer-assets",
]
args = ["--source-root-patterns=src/python"]
rule_runner.set_options(args, env_inherit={"PATH", "PYENV_ROOT", "HOME"})
target = rule_runner.get_target(address)
return rule_runner.request(
Expand Down

0 comments on commit d588e39

Please sign in to comment.