diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 006673b9..42ade435 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,7 +51,7 @@ repos: # Formatting with "black" coding style - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: # Format Python files - id: black diff --git a/Snakefile b/Snakefile index 0e783beb..bc77b0df 100644 --- a/Snakefile +++ b/Snakefile @@ -66,6 +66,12 @@ if config["foresight"] == "myopic": include: "rules/solve_myopic.smk" +rule all: + input: + RESULTS + "graphs/costs.pdf", + default_target: True + + rule purge: message: "Purging generated resources, results and docs. Downloads are kept." diff --git a/rules/collect.smk b/rules/collect.smk index 74f26ccb..0c713e5a 100644 --- a/rules/collect.smk +++ b/rules/collect.smk @@ -14,12 +14,6 @@ localrules: plot_networks, -rule all: - input: - RESULTS + "graphs/costs.pdf", - default_target: True - - rule cluster_networks: input: expand(RESOURCES + "networks/elec_s{simpl}_{clusters}.nc", **config["scenario"]),