Skip to content

Commit

Permalink
🔧 Added sourcery config file (#811)
Browse files Browse the repository at this point in the history
Added 'simplify-boolean-comparison' to ignore
'if something is True' prevents bugs where something is a callable, where 'if something():' would evaluate to False but 'if something:' evaluated to true since the callable object exists.
  • Loading branch information
s-weigand authored Sep 11, 2021
1 parent ae63eb4 commit 0f36985
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .sourcery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ignore: []

refactor:
skip: [simplify-boolean-comparison]

metrics:
quality_threshold: 25.0

clone_detection:
min_lines: 3
min_duplicates: 2
identical_clones_only: false

github:
labels: []
ignore_labels: [sourcery-ignore]
request_review: author
sourcery_branch: sourcery/{base_branch}

0 comments on commit 0f36985

Please sign in to comment.