summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-09-04 01:12:07 +0530
committerGitHub <noreply@github.com>2024-09-04 01:12:07 +0530
commit51a4c848158aa952a220ff8fb5f1d5e5ce06b45f (patch)
tree205491ca3ccbddca428b0feab55bb8066d9ce743
parent91ff46bb98e07a0acb3ba92ac9381a5ccd39076d (diff)
downloadvyos-workflow-test-temp-51a4c848158aa952a220ff8fb5f1d5e5ce06b45f.tar.gz
vyos-workflow-test-temp-51a4c848158aa952a220ff8fb5f1d5e5ce06b45f.zip
T0000: check
-rw-r--r--.github/workflows/darker-lint.yml2
-rw-r--r--ruff.toml18
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