Skip to content

Commit

Permalink
🔧 Added sourcery config file and added boolean-if-exp-identity to ignore
Browse files Browse the repository at this point in the history
'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 committed Sep 11, 2021
1 parent 93223cb commit f7f3b98
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: [boolean-if-exp-identity]

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 f7f3b98

Please sign in to comment.