diff --git a/caput/scripts/runner.py b/caput/scripts/runner.py index 30a08722..16ff0983 100755 --- a/caput/scripts/runner.py +++ b/caput/scripts/runner.py @@ -484,7 +484,7 @@ def queue( if sfile != dfile: shutil.copyfile(sfile, dfile) - if "modules" in rconf and rconf["modules"]: + if rconf.get("modules"): modules = rconf["modules"] modules = (modules,) if isinstance(modules, str) else modules modstr = "module purge\nmodule load " diff --git a/pyproject.toml b/pyproject.toml index 56897760..e4b312dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,10 +19,10 @@ requires = [ # flake8-blind-except ('BLE') # flake8-comprehensions ('C4') # flake8-return ('RET') -select = ["E", "D", "F", "I", "UP", "NPY", "RUF", "BLE", "C4", "RET"] +lint.select = ["E", "D", "F", "I", "UP", "NPY", "RUF", "BLE", "C4", "RET"] # E203, W503 -ignore = [ +lint.ignore = [ "E501", # E501: line length violations. Enforce these with `black` "E741", # E741: Ambiguous variable name "D105", # D105: Missing docstring in magic method