diff --git a/.flake8 b/.flake8 index 120ee2aa..34293f7b 100644 --- a/.flake8 +++ b/.flake8 @@ -1,2 +1,2 @@ [flake8] -ignore = E501,E402 +ignore = E501,E402,DAR101,DAR201,DAR401 diff --git a/.pylintrc b/.pylintrc index 6bee806c..efbffa5b 100644 --- a/.pylintrc +++ b/.pylintrc @@ -161,6 +161,8 @@ disable=raw-checker-failed, too-few-public-methods, useless-object-inheritance, # Remove when we no longer run on python2 systems too-many-instance-attributes, + no-name-in-module, + use-dict-literal # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/plugins/inventory/falcon_discover.py b/plugins/inventory/falcon_discover.py index 59e45712..1c0d60b0 100644 --- a/plugins/inventory/falcon_discover.py +++ b/plugins/inventory/falcon_discover.py @@ -166,14 +166,15 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): NAME = "crowdstrike.falcon.falcon_discover" def verify_file(self, path): - if super(InventoryModule, self).verify_file(path): + """Verify the inventory file.""" + if super().verify_file(path): if re.match(r".{0,}falcon_discover\.(yml|yaml)$", path): return True return False def parse(self, inventory, loader, path, cache=True): """Parse the inventory file and return JSON data structure.""" - super(InventoryModule, self).parse(inventory, loader, path) + super().parse(inventory, loader, path) self._read_config_data(path) cache_key = self.get_cache_key(path) diff --git a/plugins/modules/sensor_download.py b/plugins/modules/sensor_download.py index e7aceae5..71509ced 100644 --- a/plugins/modules/sensor_download.py +++ b/plugins/modules/sensor_download.py @@ -133,7 +133,7 @@ def main(): if not dest: dest = mkdtemp() - os.chmod(dest, 0o755) + os.chmod(dest, 0o755) # nosec tmp_dir = True # Make sure path exists and is a directory