Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
unmade committed May 17, 2019
0 parents commit 7cb4d19
Show file tree
Hide file tree
Showing 17 changed files with 817 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[paths]
source =
src
*/site-packages

[run]
branch = true
source =
thriftpyi
tests
parallel = true

[report]
show_missing = true
precision = 2
omit = *__main__*
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.tox

__pycache__
.cache
.pytest_cache
.mypy_cache

.coverage
test-reports
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
default_language_version:
python: python3.7
repos:
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
- repo: https://github.com/humitos/mirrors-autoflake
rev: v1.2
hooks:
- id: autoflake
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.15
hooks:
- id: isort
additional_dependencies:
- toml
- repo: local
hooks:
- id: pylint
name: pylint
entry: python3 -m pylint
language: system
types: [python]
- id: mypy
name: mypy
entry: python3 -m mypy
args: ["--junit-xml", "test-reports/mypy-junit.xml"]
language: system
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: flake8
Loading

0 comments on commit 7cb4d19

Please sign in to comment.