Added flake8-simplify (#4227)

* Added flake8-simplify

* Update linting.yml

* update.  left 1 for you colin

* Fix that one

* Missed

* Fix

* mypy

---------

Co-authored-by: james <jmaslek11@gmail.com>
This commit is contained in:
Colin Delahunty
2023-02-20 19:27:34 -05:00
committed by GitHub
parent 1c84da9f16
commit cebf454cdf
93 changed files with 1164 additions and 1289 deletions

View File

@@ -32,14 +32,8 @@ def main(ignore_files: Optional[str], ignore_commands: Optional[str]):
Commands that should not be checked
"""
if ignore_files:
ignore_file_list = ignore_files.split(",")
else:
ignore_file_list = []
if ignore_commands:
ignore_cmds_list = ignore_commands.split(",")
else:
ignore_cmds_list = []
ignore_file_list = ignore_files.split(",") if ignore_files else []
ignore_cmds_list = ignore_commands.split(",") if ignore_commands else []
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
gst_path = os.path.join(path, "openbb_terminal/")
main_yaml_filename = os.path.join(path, "website/data/menu/main.yml")