-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
104 changed files
with
1,522 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[run] | ||
omit = zvt/recorders/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
language: python | ||
cache: pip | ||
python: | ||
- '3.6' | ||
- '3.6' | ||
install: | ||
- git fetch --tags --depth=500 | ||
- pip install 'pytest>=3.6' --force-reinstall | ||
- pip install pytest-cov codecov | ||
- pip install -r ./requirements.txt | ||
script: | ||
- pytest tests/ --cov-report term --cov=./zvt --ignore=tests/recorders/ | ||
- pytest ./tests --cov-config=.coveragerc --cov-report term --cov=./zvt --ignore=tests/recorders/ | ||
after_success: | ||
- codecov | ||
deploy: | ||
|
@@ -21,7 +21,4 @@ deploy: | |
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
env: | ||
matrix: | ||
- secure: G9oTTNGXdfP3QFJPZrSvp7zWV/DC3JJn3N8FZ+SgKuair0ThHHCG5bfBQkkgn8/HbF+AEMnEUKrQwBy1iXbOPaqBRBOG25sL9Gx6LjvUY9hnM+5zYQ/TsIthSXDNQFQhWH58tJP/1M12SkOvRcsjSurhD/As/cT8jiSgjBi0qtdtVFWBiiaVePhBch0MR9FiNnUKfOkkadMUr87H2OsklYNdiDWRPBZUjDMg9Im1UKT0BYAKCZHvg5Rgk8LC83YMf8HDLtzyNwrPVdwI4+p2i784gqk+rcWj8pePydP7abxcg9HhzJEpgwKibgbWWaV1ICML5bgcb8lgRI4eo3Qa8PUmOZG0KwwhBT8tIzxV6aNzWY61uV17PozWIwCAFTygQakQsVqpfrXrgU8h+gQYPFQ821Kf1MO9Ce6faFx0JRfCiNRTQ0jr1b8LESct1xZalWOuOJ1+w+k0OxpDCYfjVlsX13hwbVuZKBv8eKfYt+9iSjF/7sQnEA57jCUBqZBqAHCTySRGMRZBusumMDkvOxfa4exf3mVCD2uREkk0H8JlC511SpWpYlIFvhMZ52DEht0tH6lDHfI8z9ud4JLR3qRz6yH1ptZelN3nwT20/LV3k045gswC2UNNujwHxvlcaYcY0PWbCRQUxXkCkDL48PbsiKKD+26u+Y+uaYB20Vo= | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
include README.md | ||
include LICENSE | ||
include *.md | ||
include *.txt | ||
include zvt/samples/data.zip | ||
include zvt/samples/config.json | ||
include zvt/accounts/*.json | ||
include zvt/assets/*.css | ||
include LICENSE | ||
recursive-include zvt/* * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ marshmallow == 3.2.2 | |
plotly==4.7.1 | ||
dash==1.1.1 | ||
simplejson==3.16.0 | ||
jqdatapy>=0.0.8 | ||
#jqdatapy>=0.0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
from zvt.autocode.generator import _remove_start_end | ||
|
||
|
||
def test_remove_start_end(): | ||
cls = _remove_start_end("class A(object)", "class ", "(") | ||
assert cls == "A" | ||
|
||
func = _remove_start_end("def aaa(arg1, arg2)", "def ", "(") | ||
assert func == "aaa" | ||
|
||
var = _remove_start_end("zvt_env = ", "", " =") | ||
assert var == "zvt_env" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
import enum | ||
|
||
# the __all__ is generated | ||
__all__ = [] | ||
|
||
class AdjustType(enum.Enum): | ||
# 这里用拼音,因为英文不直观 split-adjusted?wtf? | ||
# 不复权 | ||
bfq = 'bfq' | ||
# 前复权 | ||
qfq = 'qfq' | ||
# 后复权 | ||
hfq = 'hfq' | ||
|
||
# __init__.py structure: | ||
# common code of the package | ||
# export interface in __all__ which contains __all__ of its sub modules | ||
|
||
# import all from submodule quote | ||
from .quote import * | ||
from .quote import __all__ as _quote_all | ||
__all__ += _quote_all | ||
|
||
# import all from submodule business | ||
from .business import * | ||
from .business import __all__ as _business_all | ||
__all__ += _business_all | ||
|
||
# import all from submodule business_reader | ||
from .business_reader import * | ||
from .business_reader import __all__ as _business_reader_all | ||
__all__ += _business_reader_all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.