From d85244e9efdbaf4a907aa3e7cdc0a474b06f2b7e Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 7 May 2025 16:28:26 -0600 Subject: [PATCH] try with sourcery config file --- .github/config/sourcery.yaml | 42 ++++++++++++++++++++++++++++++++++ .github/workflows/sourcery.yml | 1 + 2 files changed, 43 insertions(+) create mode 100644 .github/config/sourcery.yaml diff --git a/.github/config/sourcery.yaml b/.github/config/sourcery.yaml new file mode 100644 index 00000000..d9cc735d --- /dev/null +++ b/.github/config/sourcery.yaml @@ -0,0 +1,42 @@ +ignore: + - .git + - venv + - .venv + - env + - .env + - .tox + - node_modules + - vendor + +rule_settings: + enable: [default] + disable: + - dict-literal + - list-literal + - replace-interpolation-with-fstring + - use-fstring-for-concatenation + rule_types: + - refactoring + - suggestion + - comment + python_version: "3.6" + +rules: [] + +metrics: + quality_threshold: 25.0 + +github: + labels: [] + ignore_labels: + - sourcery-ignore + request_review: author + sourcery_branch: sourcery/{base_branch} + +clone_detection: + min_lines: 3 + min_duplicates: 2 + identical_clones_only: false + +proxy: + no_ssl_verify: false diff --git a/.github/workflows/sourcery.yml b/.github/workflows/sourcery.yml index f1cf2763..59b40f74 100644 --- a/.github/workflows/sourcery.yml +++ b/.github/workflows/sourcery.yml @@ -27,3 +27,4 @@ jobs: - uses: sourcery-ai/action@v1 with: token: ${{ secrets.SOURCERY_TOKEN }} + config: .github/config/sourcery.yaml