Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
add DeepSource & Mergify
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 14, 2021
1 parent 8c0fa73 commit 8a5a151
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version = 1

exclude_patterns = [
".github/**",
]

test_patterns = [
"tests/**",
"test_*.py"
]

[[analyzers]]
name = "test-coverage"
enabled = true

[[analyzers]]
name = "docker"
enabled = true

[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
runtime_version = "3.x.x"
33 changes: 33 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pull_request_rules:

- name: warn on conflicts
conditions:
- conflict
- -draft # filter-out GH draft PRs
- -label="has conflicts"
actions:
# comment:
# message: This pull request is now in conflict... :(
label:
add: [ "has conflicts" ]

- name: resolved conflicts
conditions:
- -conflict
- label="has conflicts"
- -draft # filter-out GH draft PRs
- -merged # not merged yet
- -closed
actions:
label:
remove: [ "has conflicts" ]

- name: update PR
conditions:
- -conflict
- -draft # filter-out GH draft PRs
- base=master # apply only on master
- -title~=(?i)wip # skip all PR that title contains “WIP” (ignoring case)
- "#approved-reviews-by>=1" # number of review approvals
actions:
update: {}
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ include *.txt

# Exclude build configs
exclude *.yml *.yaml
exclude *.toml

prune .git
prune .github
Expand Down

0 comments on commit 8a5a151

Please sign in to comment.