Skip to content

Commit

Permalink
v0.2 (#2)
Browse files Browse the repository at this point in the history
* init

* v0.2

* halving and scraper module

* history

* formatting and linting

* prices and metrics

* _founded

* artists

* TODO

* comments

* halvings

* fiexed conda

* fresh start

* before the artist

* kwargs and some docstrings

* progressLabels

* before minimal testing

* kinda test driven

* yes but not quite

* fixed and works

* formatted and tested

* new action

* added predicted date

* fixed conflicts
  • Loading branch information
giocaizzi authored Apr 23, 2024
1 parent 3f300e8 commit 5692cac
Show file tree
Hide file tree
Showing 23 changed files with 3,035 additions and 552 deletions.
30 changes: 30 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[flake8]
exclude =
tests,
.github,
.vscode,
docs,
docsrc,
temp,
./build
require-plugins =
flake8-rst-docstrings
# flake8 and black compatibility
max-line-length = 88
# rst plugin
rst-roles =
class,
func,
ref,
obj,
rst-directives =
envvar,
exception,
rst-substitutions =
version,
# Google Python style is not RST until after processed by Napoleon
# See https://github.com/peterjc/flake8-rst-docstrings/issues/17
# E203: flake8 and black compatibility
# d107: missing docstring in init
extend-ignore =
RST307,RST201,RST203,RST301,E203
15 changes: 9 additions & 6 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Update chart
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *"
- cron: "0 5 * * *"

permissions:
contents: write
Expand All @@ -19,20 +19,23 @@ jobs:
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.10"

- name: Install dependencies
run: pip install -r requirements.txt
run: |
pip install .
pip install jupyter nbconvert
- name: Run notebook
run: jupyter nbconvert --to notebook --execute --inplace bitcoin.ipynb


- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time

- name: Commit and push changes
uses: giocaizzi/python-dev-actions/.github/actions/commit@main
with:
message: "Update chart:${{ steps.current-time.outputs.readableTime }}"
github-token: ${{ secrets.GITHUB_TOKEN }}
message: "Update chart:${{ steps.current-time.outputs.readableTime }}"
github-token: ${{ secrets.GITHUB_TOKEN }}
161 changes: 161 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
.vscode
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
Loading

0 comments on commit 5692cac

Please sign in to comment.