diff --git a/.flake8 b/.flake8 deleted file mode 100644 index b41e1fc..0000000 --- a/.flake8 +++ /dev/null @@ -1,5 +0,0 @@ -[flake8] -ignore = D101, D102, D103, D105, D107, E402, W503 -max-line-length = 99 -inline-quotes = double -exclude = .git,.tox,__pycache__,build,dist,tests,*.pyc,*.egg-info,.cache,.eggs,env* diff --git a/molecule/centos7/tests/test_default.py b/molecule/centos7/tests/test_default.py index d044157..94c2d8f 100644 --- a/molecule/centos7/tests/test_default.py +++ b/molecule/centos7/tests/test_default.py @@ -6,7 +6,8 @@ import testinfra.utils.ansible_runner warnings.filterwarnings("ignore", category=DeprecationWarning) testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( - os.environ["MOLECULE_INVENTORY_FILE"]).get_hosts("all") + os.environ["MOLECULE_INVENTORY_FILE"] +).get_hosts("all") def test_vaultwarden_running(host): @@ -22,9 +23,8 @@ def test_vaultwarden_socket(host): def test_vaultwarden_conn_error(host): code = int( - host.run( - "curl -s -w '%{http_code}' http://127.0.0.1:8080/alive -o /dev/null" - ).stdout) + host.run("curl -s -w '%{http_code}' http://127.0.0.1:8080/alive -o /dev/null").stdout + ) body = host.run("curl -sX GET http://127.0.0.1:8080/").stdout assert code == 200 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..2bb8674 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,12 @@ +[flake8] +ignore = D100, D101, D102, D103, D105, D107, E402, W503 +max-line-length = 99 +inline-quotes = double +exclude = .git,.tox,__pycache__,build,dist,tests,*.pyc,*.egg-info,.cache,.eggs,env* + +[yapf] +based_on_style = google +column_limit = 99 +dedent_closing_brackets = true +coalesce_brackets = true +split_before_logical_operator = true