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

@@ -325,7 +325,9 @@ class LoadControllersDoc:
"""Gets all controllers"""
for trailmap, module in self._get_modules().items():
for name, obj in getmembers(module):
if name != "TerminalController" and "BaseController" not in name:
if ( # noqa: SIM102
name != "TerminalController" and "BaseController" not in name
): # noqa: SIM102
if isclass(obj) and issubclass(obj, BaseController):
if trailmap not in self.controller_docs:
ctrl = ControllerDoc(obj, trailmap)