Skip to content

Commit

Permalink
Update precommit with mypy (scverse#200)
Browse files Browse the repository at this point in the history
* Start mypy

* Add mypy static checks

* Update setup.py, add .bumpversion.cfg

* Update tox.ini

* Fix typo, add small mypy info to README.rst

* Update mypy
  • Loading branch information
michalk8 authored Jan 1, 2021
1 parent e154b43 commit 0a9fd7e
Show file tree
Hide file tree
Showing 46 changed files with 885 additions and 758 deletions.
8 changes: 8 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[bumpversion]
current_version = 0.0.0
commit = True
tag = True
files = setup.py squidpy/__init__.py
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
serialize =
{major}.{minor}.{patch}
78 changes: 39 additions & 39 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
codecov:
require_ci_to_pass: true
branch: master
strict_yaml_branch: master
require_ci_to_pass: true
branch: master
strict_yaml_branch: master

coverage:
precision: 2
round: down
range: "80...100"
status:
project:
default:
target: auto
threshold: 1%
if_ci_failed: error
only_pulls: true
graph:
paths:
- squidpy/gr/
image:
paths:
- squidpy/im/
plotting:
paths:
- squidpy/pl/
patch:
default:
target: auto
threshold: 0%
if_ci_failed: error
only_pulls: false
precision: 2
round: down
range: 80...100
status:
project:
default:
target: auto
threshold: 1%
if_ci_failed: error
only_pulls: true
graph:
paths:
- squidpy/gr/
image:
paths:
- squidpy/im/
plotting:
paths:
- squidpy/pl/
patch:
default:
target: auto
threshold: 0%
if_ci_failed: error
only_pulls: false

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach, diff, files"
behavior: default
require_changes: true
branches:
- master
layout: reach, diff, files
behavior: default
require_changes: true
branches:
- master
Loading

0 comments on commit 0a9fd7e

Please sign in to comment.