Skip to content

Commit

Permalink
chore: add sourcery workflow to CI checks (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Nov 16, 2023
1 parent 96110a0 commit 8b445f2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/sourcery.yml
@@ -0,0 +1,20 @@
name: Check PR using Sourcery

on: pull_request

jobs:
review-with-sourcery:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-python@v4
with:
python-version: 3.11

- uses: sourcery-ai/action@v1
with:
token: ${{ secrets.SOURCERY_TOKEN }}
diff_ref: ${{ github.event.pull_request.base.sha }}
24 changes: 24 additions & 0 deletions .sourcery.yaml
@@ -0,0 +1,24 @@
# Sourcery configuration file.
# 📚 For a complete reference to this file, see the documentation at
# https://docs.sourcery.ai/Configuration/Project-Settings/


version: '1'

ignore:
- src/dsp_tools/commands/project/models
- src/dsp_tools/commands/xmlupload/models
- src/dsp_tools/models

rule_settings:
enable:
- default
disable: [
inline-immediately-returned-variable,
max-min-default,
]
rule_types:
- refactoring
- suggestion
- comment
python_version: '3.11'

0 comments on commit 8b445f2

Please sign in to comment.