From a8e05aa0bcdca8e05274e3e3d9f32d4ae00d6ba2 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 16 Oct 2019 00:37:39 +0200 Subject: [PATCH] fix flake8 issues --- ansiblelater/data/standards.py | 2 +- ansiblelater/tests/config/standards.py | 40 ++++++++++++-------------- setup.cfg | 3 +- setup.py | 3 +- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/ansiblelater/data/standards.py b/ansiblelater/data/standards.py index e99fb27..a36aeeb 100644 --- a/ansiblelater/data/standards.py +++ b/ansiblelater/data/standards.py @@ -18,13 +18,13 @@ from ansiblelater.rules.rolefiles import check_scm_in_src from ansiblelater.rules.taskfiles import check_line_between_tasks from ansiblelater.rules.yamlfiles import check_native_yaml from ansiblelater.rules.yamlfiles import check_yaml_colons +from ansiblelater.rules.yamlfiles import check_yaml_document_end from ansiblelater.rules.yamlfiles import check_yaml_document_start from ansiblelater.rules.yamlfiles import check_yaml_empty_lines from ansiblelater.rules.yamlfiles import check_yaml_file from ansiblelater.rules.yamlfiles import check_yaml_has_content from ansiblelater.rules.yamlfiles import check_yaml_hyphens from ansiblelater.rules.yamlfiles import check_yaml_indent -from ansiblelater.rules.yamlfiles import check_yaml_document_end from ansiblelater.standard import Standard tasks_should_be_separated = Standard(dict( diff --git a/ansiblelater/tests/config/standards.py b/ansiblelater/tests/config/standards.py index 455a015..c433a39 100644 --- a/ansiblelater/tests/config/standards.py +++ b/ansiblelater/tests/config/standards.py @@ -1,27 +1,25 @@ from ansiblelater import Standard - -from ansiblelater.rules.yamlfiles import check_yaml_empty_lines -from ansiblelater.rules.yamlfiles import check_yaml_indent -from ansiblelater.rules.yamlfiles import check_yaml_hyphens -from ansiblelater.rules.yamlfiles import check_yaml_document_start -from ansiblelater.rules.yamlfiles import check_yaml_colons -from ansiblelater.rules.yamlfiles import check_yaml_file -from ansiblelater.rules.yamlfiles import check_yaml_has_content -from ansiblelater.rules.yamlfiles import check_native_yaml -from ansiblelater.rules.taskfiles import check_line_between_tasks +from ansiblelater.rules.ansiblefiles import check_braces_spaces +from ansiblelater.rules.ansiblefiles import check_command_has_changes +from ansiblelater.rules.ansiblefiles import check_command_instead_of_module +from ansiblelater.rules.ansiblefiles import check_compare_to_literal_bool +from ansiblelater.rules.ansiblefiles import check_empty_string_compare +from ansiblelater.rules.ansiblefiles import check_install_use_latest +from ansiblelater.rules.ansiblefiles import check_name_format +from ansiblelater.rules.ansiblefiles import check_named_task +from ansiblelater.rules.ansiblefiles import check_shell_instead_command +from ansiblelater.rules.ansiblefiles import check_unique_named_task from ansiblelater.rules.rolefiles import check_meta_main from ansiblelater.rules.rolefiles import check_scm_in_src -from ansiblelater.rules.ansiblefiles import check_unique_named_task -from ansiblelater.rules.ansiblefiles import check_named_task -from ansiblelater.rules.ansiblefiles import check_name_format -from ansiblelater.rules.ansiblefiles import check_braces_spaces -from ansiblelater.rules.ansiblefiles import check_command_instead_of_module -from ansiblelater.rules.ansiblefiles import check_install_use_latest -from ansiblelater.rules.ansiblefiles import check_shell_instead_command -from ansiblelater.rules.ansiblefiles import check_command_has_changes -from ansiblelater.rules.ansiblefiles import check_empty_string_compare -from ansiblelater.rules.ansiblefiles import check_compare_to_literal_bool - +from ansiblelater.rules.taskfiles import check_line_between_tasks +from ansiblelater.rules.yamlfiles import check_native_yaml +from ansiblelater.rules.yamlfiles import check_yaml_colons +from ansiblelater.rules.yamlfiles import check_yaml_document_start +from ansiblelater.rules.yamlfiles import check_yaml_empty_lines +from ansiblelater.rules.yamlfiles import check_yaml_file +from ansiblelater.rules.yamlfiles import check_yaml_has_content +from ansiblelater.rules.yamlfiles import check_yaml_hyphens +from ansiblelater.rules.yamlfiles import check_yaml_indent tasks_should_be_separated = Standard(dict( id="ANSIBLE0001", diff --git a/setup.cfg b/setup.cfg index ffacb1b..ae10688 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,7 +10,8 @@ default_section = THIRDPARTY known_first_party = ansiblelater sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER force_single_line = true -line_length = 100 +line_length = 110 +skip_glob = **/.env/* [tool:pytest] filterwarnings = diff --git a/setup.py b/setup.py index 6b03bd2..a17e886 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,8 @@ import io import os import re -from setuptools import find_packages, setup +from setuptools import find_packages +from setuptools import setup PACKAGE_NAME = "ansiblelater"