Skip to content

Commit

Permalink
Code refactor with typing and pure python3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeronimoalbi committed Jul 5, 2020
1 parent b9f0208 commit aac9cba
Show file tree
Hide file tree
Showing 168 changed files with 13,104 additions and 12,853 deletions.
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Ignore the blocks that import the modules for type checking
if TYPE_CHECKING:
5 changes: 3 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[flake8]
# Github review line length
max-line-length=119
max-line-length = 119
ignore = T499
exclude = .git,__pycache__,.venv,venv,tests,build,dist
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ venv/
*.egg
.cache/
.pytest_cache/
build/
.mypy_cache/
docs/build/

Pipfile
Pipfile.lock
pip-log.txt
pip-delete-this-directory.txt
.coverage
Expand Down
3 changes: 3 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[settings]
line_length = 119
force_single_line = true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [2.1.0] - 2020-07-05
### Changed
- Code refactor with typing and pure python3

## [2.0.0] - 2020-03-01
### Fixed
- Fixes Param type resolution when no type is given
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2019 KUSANAGI S.L. (http://kusanagi.io). All rights reserved.
Copyright (c) 2016-2020 KUSANAGI S.L. (http://kusanagi.io). All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
23 changes: 23 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
msgpack = "*"
pyzmq = "*"

[dev-packages]
pylama = "*"
pytest = "*"
v = {version = "*",editable = true}
pytest-cov = "*"
isort = "*"
"flake8" = "*"
pylint = "*"
pytest-mock = "*"
pytest-mypy = "*"
pytest-asyncio = "*"

[requires]
python_version = "3.7"
424 changes: 424 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Requirements
------------

* [KUSANAGI framework](http://kusanagi.io) 2.0+
* [Python](https://www.python.org/downloads/) 3.6+
* [Python](https://www.python.org/downloads/) 3.7+
* [libzmq](http://zeromq.org/intro:get-the-software) 4.1.5+

Installation
Expand All @@ -24,7 +24,7 @@ $ pip install kusanagi-sdk-python
Or to run all unit tests and code coverage:

```
$ python setup.py test
$ pytest
```

Getting Started
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

138 changes: 0 additions & 138 deletions docs/source/conf.py

This file was deleted.

23 changes: 0 additions & 23 deletions docs/source/index.rst

This file was deleted.

105 changes: 0 additions & 105 deletions docs/source/sdk/kusanagi.rst

This file was deleted.

Loading

0 comments on commit aac9cba

Please sign in to comment.