Browse Source

chore: replace flake8 config file and add autoformatting

master
Robert Kaussow 8 months ago
parent
commit
c93328aba2
Signed by: xoxys GPG Key ID: 4E692A2EAECC03C0
  1. 1
      setup.cfg
  2. 5
      {{cookiecutter.author}}.{{cookiecutter.role_name}}/.flake8
  3. 6
      {{cookiecutter.author}}.{{cookiecutter.role_name}}/molecule/{{cookiecutter.molecule_scenario|replace('-', '')}}/tests/test_default.py
  4. 12
      {{cookiecutter.author}}.{{cookiecutter.role_name}}/setup.cfg

1
setup.cfg

@ -0,0 +1 @@
{{cookiecutter.author}}.{{cookiecutter.role_name}}/setup.cfg

5
{{cookiecutter.author}}.{{cookiecutter.role_name}}/.flake8

@ -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*

6
{{cookiecutter.author}}.{{cookiecutter.role_name}}/molecule/{{cookiecutter.molecule_scenario|replace('-', '')}}/tests/test_default.py

@ -1,9 +1,7 @@
import os
import warnings
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")

12
{{cookiecutter.author}}.{{cookiecutter.role_name}}/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
Loading…
Cancel
Save