Skip to content

Commit

Permalink
feat: initial setup of FitCoreModelGenerator (#26)
Browse files Browse the repository at this point in the history
* feat: add fitcore model generator

* chore(deps): add requests-mock package

* style: resolve imported but unused

* style: flake8 issues

* test(fitcore): add fitcore tests

* refactor: add plot show to zbase test

* fix: add incompatible language changes

* build: add secrets to docs and test ci/cd

* perf: cache series and validate before calling endpoint

* test: resolve mock JWT invalid. mock API call
  • Loading branch information
RDWimmers authored Jun 19, 2024
1 parent 621107c commit 272888f
Show file tree
Hide file tree
Showing 7 changed files with 478 additions and 31 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- name: Test
run: coverage run -m pytest
env:
NUCLEI_TOKEN: ${{ secrets.NUCLEI_TOKEN }}

# - name: Post coverage results
# uses: coverallsapp/github-action@v2
Expand Down Expand Up @@ -105,3 +107,5 @@ jobs:
- name: Build docs
run: sphinx-build -b html docs public
env:
NUCLEI_TOKEN: ${{ secrets.NUCLEI_TOKEN }}
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ keywords = ["API", "BAEC", "CEMS", "CRUX"]
repository = "https://github.com/cemsbv/BAEC"

[project.optional-dependencies]
test = ["coveralls", "pytest"]
test = ["coveralls", "pytest", "requests-mock"]
docs = [
"Sphinx==6.1.3",
"sphinx-autodoc-typehints==1.22",
"ipython==8.11.0",
"asteroid-sphinx-theme==0.0.3",
"sphinx_rtd_theme>1.2,<2",
"enum-tools[sphinx]>0.12,<0.13",
"enum-tools[sphinx]>=0.12,<0.13",
]
# lint dependencies from github super-linter v5
# See https://github.com/super-linter/super-linter/tree/main/dependencies/python
Expand Down Expand Up @@ -90,5 +90,6 @@ module = [
"scipy.*",
"pyproj.*",
"pandas.*",
"numpy.*",
]
ignore_missing_imports = true
46 changes: 17 additions & 29 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --extra=docs --extra=lint --extra=test --output-file=requirements.txt pyproject.toml
Expand Down Expand Up @@ -67,7 +67,6 @@ docopt==0.6.2
docutils==0.18.1
# via
# sphinx
# sphinx-prompt
# sphinx-rtd-theme
# sphinx-tabs
# sphinx-toolbox
Expand All @@ -78,12 +77,12 @@ domdf-python-tools==3.8.1
# dict2css
# sphinx-toolbox
enum-tools[sphinx]==0.12.0
# via baec (pyproject.toml)
exceptiongroup==1.2.1
# via pytest
# via
# baec (pyproject.toml)
# enum-tools
executing==2.0.1
# via stack-data
filelock==3.14.0
filelock==3.15.1
# via
# cachecontrol
# sphinx-toolbox
Expand All @@ -99,10 +98,6 @@ idna==3.7
# requests
imagesize==1.4.1
# via sphinx
importlib-metadata==7.1.0
# via sphinx
importlib-resources==6.4.0
# via matplotlib
iniconfig==2.0.0
# via pytest
ipython==8.11.0
Expand Down Expand Up @@ -137,7 +132,7 @@ mccabe==0.7.0
# via
# baec (pyproject.toml)
# flake8
more-itertools==10.2.0
more-itertools==10.3.0
# via cssutils
msgpack==1.0.8
# via cachecontrol
Expand All @@ -158,7 +153,7 @@ numpy==1.26.4
# matplotlib
# pandas
# pandas-stubs
orjson==3.10.3
orjson==3.10.5
# via cems-nuclei
packaging==23.2
# via
Expand All @@ -169,7 +164,7 @@ packaging==23.2
# sphinx
pandas==2.2.2
# via baec (pyproject.toml)
pandas-stubs==2.2.2.240514
pandas-stubs==2.2.2.240603
# via baec (pyproject.toml)
parso==0.8.4
# via jedi
Expand All @@ -190,7 +185,7 @@ platformdirs==3.5.1
# black
pluggy==1.5.0
# via pytest
prompt-toolkit==3.0.45
prompt-toolkit==3.0.47
# via ipython
ptyprocess==0.7.0
# via pexpect
Expand All @@ -217,7 +212,7 @@ pyparsing==3.1.2
# via matplotlib
pyproj==3.6.1
# via baec (pyproject.toml)
pytest==8.2.1
pytest==8.2.2
# via baec (pyproject.toml)
python-dateutil==2.9.0.post0
# via
Expand All @@ -231,7 +226,10 @@ requests==2.32.3
# cachecontrol
# cems-nuclei
# coveralls
# requests-mock
# sphinx
requests-mock==1.12.1
# via baec (pyproject.toml)
ruamel-yaml==0.18.6
# via sphinx-toolbox
ruamel-yaml-clib==0.2.8
Expand Down Expand Up @@ -265,9 +263,9 @@ sphinx-jinja2-compat==0.2.0.post1
# via
# enum-tools
# sphinx-toolbox
sphinx-prompt==1.6.0
sphinx-prompt==1.5.0
# via sphinx-toolbox
sphinx-rtd-theme==2.0.0
sphinx-rtd-theme==1.3.0
# via baec (pyproject.toml)
sphinx-tabs==3.4.5
# via sphinx-toolbox
Expand All @@ -294,12 +292,7 @@ tabulate==0.9.0
tokenize-rt==5.2.0
# via black
tomli==2.0.1
# via
# baec (pyproject.toml)
# black
# coverage
# mypy
# pytest
# via baec (pyproject.toml)
tqdm[notebook]==4.66.4
# via
# baec (pyproject.toml)
Expand All @@ -317,22 +310,17 @@ types-tqdm==4.66.0.20240417
typing-extensions==4.7.1
# via
# baec (pyproject.toml)
# black
# domdf-python-tools
# enum-tools
# mypy
# sphinx-toolbox
tzdata==2024.1
# via pandas
urllib3==2.2.1
urllib3==2.2.2
# via requests
wcwidth==0.2.13
# via prompt-toolkit
webencodings==0.5.1
# via html5lib
widgetsnbextension==4.0.11
# via ipywidgets
zipp==3.19.1
# via
# importlib-metadata
# importlib-resources
Empty file added src/baec/model/__init__.py
Empty file.
Loading

0 comments on commit 272888f

Please sign in to comment.