diff --git a/helloansible/BUILD.pants b/helloansible/BUILD.pants index 7573bf8..9f5fc20 100644 --- a/helloansible/BUILD.pants +++ b/helloansible/BUILD.pants @@ -1,13 +1,13 @@ -ansible_sources( - name="libansible", - sources=["**/*"], -) +#ansible_sources( +# name="libansible", +# sources=["**/*"], +#) -ansible_deployment( - name="helloansible", - dependencies=[":libansible"], - playbook="playbook.yml", - # inventory="", # TODO: Could this be setup like the Docker registries? in pants.toml - # tags="", # TODO: Might need a different name to not overlap - # timeout="", -) +#ansible_deployment( +# name="helloansible", +# dependencies=[":libansible"], +# playbook="playbook.yml", +# # inventory="", # TODO: Could this be setup like the Docker registries? in pants.toml +# # tags="", # TODO: Might need a different name to not overlap +# # timeout="", +#) diff --git a/pants-plugins/experimental/ansible/goals/tailor_test.py b/pants-plugins/experimental/ansible/goals/tailor_test.py index dc76234..9444bac 100644 --- a/pants-plugins/experimental/ansible/goals/tailor_test.py +++ b/pants-plugins/experimental/ansible/goals/tailor_test.py @@ -107,7 +107,8 @@ def test_find_extended_name() -> None: def test_find_alternate_extension() -> None: - """the `.ansible` extension helps with syntax highlighters as `.yml` often isn't picked up""" + """the `.ansible` extension helps with syntax highlighters as `.yml` often + isn't picked up.""" files = (("src/ansible", "playbook.ansible"),) pts = run_tailor(files, tuple()) assert pts == ( diff --git a/pants-plugins/experimental/ansible/lint/ansible_lint/register.py b/pants-plugins/experimental/ansible/lint/ansible_lint/register.py index db4dddd..5a91477 100644 --- a/pants-plugins/experimental/ansible/lint/ansible_lint/register.py +++ b/pants-plugins/experimental/ansible/lint/ansible_lint/register.py @@ -2,7 +2,9 @@ # Licensed under the Apache License, Version 2.0 (see LICENSE). """A formatter and linter forAnsible playbooks, roles and collections. -See https://ansible-lint.readthedocs.io/en/latest/ for details""" + +See https://ansible-lint.readthedocs.io/en/latest/ for details +""" from __future__ import annotations diff --git a/pants-plugins/experimental/ansible/lint/ansible_lint/subsystem.py b/pants-plugins/experimental/ansible/lint/ansible_lint/subsystem.py index b8648bc..81b2c44 100644 --- a/pants-plugins/experimental/ansible/lint/ansible_lint/subsystem.py +++ b/pants-plugins/experimental/ansible/lint/ansible_lint/subsystem.py @@ -41,7 +41,9 @@ class AnsibleLint(PythonToolBase): # default_lockfile_url = git_url(default_lockfile_path) def config_request(self, dirs: Iterable[str]) -> ConfigFilesRequest: - """Refer to https://ansible-lint.readthedocs.io/en/latest/configuring/#configuration-file for how Ansible Lint discovers configurations""" + """Refer to https://ansible- + lint.readthedocs.io/en/latest/configuring/#configuration-file for how + Ansible Lint discovers configurations.""" config_files = ( ".ansible-lint", ".config/ansible-lint.yml", diff --git a/pants-plugins/experimental/swift/goals/tailor.py b/pants-plugins/experimental/swift/goals/tailor.py index bc24ebd..d0c8039 100644 --- a/pants-plugins/experimental/swift/goals/tailor.py +++ b/pants-plugins/experimental/swift/goals/tailor.py @@ -31,7 +31,8 @@ class PutativeSwiftTargetsRequest(PutativeTargetsRequest): def classify_source_files(paths: Iterable[str]) -> dict[type[Target], set[str]]: - """Returns a dict of target type -> files that belong to targets of that type.""" + """Returns a dict of target type -> files that belong to targets of that + type.""" sources_files = set(paths) return {SwiftSourcesGeneratorTarget: sources_files} diff --git a/pants.toml b/pants.toml index 6cdb106..f420ed3 100644 --- a/pants.toml +++ b/pants.toml @@ -14,9 +14,10 @@ backend_packages = [ "pants.backend.python", "pants.backend.python.lint.bandit", "pants.backend.python.lint.black", + "pants.backend.python.lint.docformatter", "pants.backend.python.lint.flake8", "pants.backend.python.lint.isort", - #"pants.backend.python.typecheck.mypy", + "pants.backend.python.typecheck.mypy", "pants.backend.experimental.python.lint.autoflake", "pants.backend.experimental.python.lint.pyupgrade", "pants.backend.experimental.python.packaging.pyoxidizer", @@ -27,7 +28,7 @@ backend_packages = [ #"experimental.mypyc", #"experimental.ansible", #"experimental.ansible.lint.ansible_lint", - #"experimental.swift", + "experimental.swift", ] [source]