Skip to content

Commit 7d8b72b

Browse files
committed
Fix majority of linting issues
- Replace bare except clauses with except Exception - Remove unused imports - Fix f-strings without placeholders - Fix whitespace issues (E203: no space before colon in slicing) - Apply black formatting with 79 character line limit - Remove trailing whitespace Reduced linting errors from 206 to 100. Remaining issues are mostly line length (E501) which would require more extensive refactoring.
1 parent 4316fd1 commit 7d8b72b

File tree

8 files changed

+453
-288
lines changed

8 files changed

+453
-288
lines changed

clustrix/cli.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,18 @@ def cli():
2222
@click.option("--cores", type=int, help="Default number of cores")
2323
@click.option("--memory", help="Default memory allocation (e.g., 8GB)")
2424
@click.option("--time", help="Default time allocation (e.g., 04:00:00)")
25-
@click.option("--config-file", type=click.Path(), help="Save configuration to file")
25+
@click.option(
26+
"--config-file", type=click.Path(), help="Save configuration to file"
27+
)
2628
def config(
27-
cluster_type, cluster_host, username, api_key, cores, memory, time, config_file
29+
cluster_type,
30+
cluster_host,
31+
username,
32+
api_key,
33+
cores,
34+
memory,
35+
time,
36+
config_file,
2837
):
2938
"""Configure Clustrix settings."""
3039

0 commit comments

Comments
 (0)