From 51a4c848158aa952a220ff8fb5f1d5e5ce06b45f Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Wed, 4 Sep 2024 01:12:07 +0530 Subject: T0000: check --- .github/workflows/darker-lint.yml | 2 +- ruff.toml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 ruff.toml 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 -- cgit v1.2.3