diff options
-rw-r--r-- | .github/workflows/darker-lint.yml | 2 | ||||
-rw-r--r-- | ruff.toml | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml index ec7d12a..deeabd4 100644 --- a/.github/workflows/darker-lint.yml +++ b/.github/workflows/darker-lint.yml @@ -50,6 +50,6 @@ jobs: - name: Analyze Code run: | cd repo - cp origin/base/ruff.toml . + git checkout origin/base -- ruff.toml cat ruff.toml darker -r origin/base --check --diff --lint "ruff check" --color .
\ No newline at end of file diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..2aaac4a --- /dev/null +++ b/ruff.toml @@ -0,0 +1,18 @@ +# Same as Black.
+line-length = 100
+indent-width = 4
+
+# Assume Python 3.11
+target-version = "py311"
+
+[format]
+quote-style = "single"
+
+# Like Black, indent with spaces, rather than tabs.
+indent-style = "space"
+
+# Like Black, respect magic trailing commas.
+skip-magic-trailing-comma = false
+
+# Like Black, automatically detect the appropriate line ending.
+line-ending = "auto"
\ No newline at end of file |