Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
30c1761
Started wip_types
Jun 10, 2023
016403a
fix type issues
Jun 10, 2023
621fd0b
fix
Jun 10, 2023
35ea06f
black
Jun 10, 2023
0edd490
fix bayes
Jun 10, 2023
4087d6c
update README
Jun 10, 2023
9e8337a
more fun with types
Jun 11, 2023
81ad84a
fix normal distribution
Jun 11, 2023
1ef2de3
simplify get_percentiles return type
Jun 11, 2023
9695802
fun with types III
Jun 11, 2023
4b69d0f
up Python support to 3.9
Jun 11, 2023
94f1429
black reformat
Jun 11, 2023
0c07539
Started wip_types
Jun 10, 2023
8de7c50
fix type issues
Jun 10, 2023
2e6d818
more fun with types
Jun 11, 2023
feae115
simplify get_percentiles return type
Jun 11, 2023
d174e9e
fun with types III
Jun 11, 2023
9091f1f
fix
Jun 11, 2023
7c0a4a9
fix III
Jun 11, 2023
cac2c69
ruff check fix
Jun 11, 2023
11edb85
I'm too lazy to write a commit message.
Jun 14, 2023
446fec5
I'm too lazy to write a commit message.
Jun 14, 2023
7762116
bugfixes
Jun 14, 2023
b883ff7
black reformat
Jun 14, 2023
7e8e4ed
label breaking changes in CHANGES
Jun 15, 2023
02783bc
label breaking changes in CHANGES II
Jun 15, 2023
865ffb3
ci: add pyright to checks
agucova Aug 28, 2023
41ed2ec
Merge branch 'main' into wip_types
agucova Aug 28, 2023
2536846
chore: use standard python package structure
agucova Aug 28, 2023
6013dcb
chore: update gitignore for python/vscode
agucova Aug 28, 2023
4cf5360
fix: make plot part of OperableDistribution
agucova Aug 28, 2023
bbbbed5
fix: minor type fixes on distributions
agucova Aug 28, 2023
d085bc2
feat(types): fully type distributions, reimplement dist_fn
agucova Aug 28, 2023
1b55b9b
fix: remove dependency on Self
agucova Aug 28, 2023
4a27289
fix: more manual type fixes
agucova Aug 29, 2023
1f4072c
fix: simplify and other dynamic types
agucova Aug 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
- uses: psf/black@stable

typecheck-python:
name: "Typecheck (pyright)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout repository

- name: Install poetry
run: pipx install poetry

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'poetry'

- name: Install dependencies
run: |
poetry install

- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH

- uses: jakebailey/pyright-action@v1
171 changes: 165 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,165 @@
build/*
dist/*
*.egg-info
__pycache__
.ruff_cache
.pytest-runtimes
# 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/

.ruff_cache/

.vscode/
monkeytype.sqlite3
Loading