summaryrefslogtreecommitdiff
path: root/.precious.toml
diff options
context:
space:
mode:
Diffstat (limited to '.precious.toml')
-rw-r--r--.precious.toml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.precious.toml b/.precious.toml
new file mode 100644
index 0000000..552dcc2
--- /dev/null
+++ b/.precious.toml
@@ -0,0 +1,40 @@
+# SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev>
+#
+# SPDX-License-Identifier: AGPL-3.0-only
+
+[commands.black]
+cmd = ["black", "--quiet"]
+include = ["renew-all"]
+invoke = "once"
+ok_exit_codes = 0
+type = "tidy"
+
+[commands.gitlint]
+cmd = ["gitlint"]
+include = "*"
+invoke = "once"
+ok_exit_codes = 0
+path_args = "none"
+type = "lint"
+
+[commands.mypy]
+cmd = ["mypy", "--strict"]
+include = ["renew-all"]
+ok_exit_codes = 0
+type = "lint"
+
+[commands.reuse]
+cmd = ["reuse", "lint"]
+include = "*"
+invoke = "once"
+lint_failure_exit_codes = 1
+ok_exit_codes = 0
+path_args = "none"
+type = "lint"
+
+[commands.shellcheck]
+cmd = ["shellcheck", "--severity=style", "--enable=all"]
+include = ["install-for-prosody"]
+lint_failure_exit_codes = 1
+ok_exit_codes = 0
+type = "lint"