ellalgo 0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. ellalgo-0.1/.coveragerc +28 -0
  2. ellalgo-0.1/.flake8 +3 -0
  3. ellalgo-0.1/.github/workflows/ci.yml +125 -0
  4. ellalgo-0.1/.github/workflows/jekyll-gh-pages.yml +51 -0
  5. ellalgo-0.1/.github/workflows/multi-platforms.yml +37 -0
  6. ellalgo-0.1/.github/workflows/python-app.yml +46 -0
  7. ellalgo-0.1/.github/workflows/python-publish.yml +70 -0
  8. ellalgo-0.1/.github/workflows/pythonapp.yml +42 -0
  9. ellalgo-0.1/.gitignore +178 -0
  10. ellalgo-0.1/.isort.cfg +3 -0
  11. ellalgo-0.1/.markdownlint.yaml +10 -0
  12. ellalgo-0.1/.pre-commit-config.yaml +65 -0
  13. ellalgo-0.1/.readthedocs.yml +32 -0
  14. ellalgo-0.1/AUTHORS.md +3 -0
  15. ellalgo-0.1/CHANGELOG.md +7 -0
  16. ellalgo-0.1/CONTRIBUTING.md +374 -0
  17. ellalgo-0.1/LICENSE +21 -0
  18. ellalgo-0.1/LICENSE.txt +21 -0
  19. ellalgo-0.1/PKG-INFO +71 -0
  20. ellalgo-0.1/README.md +49 -0
  21. ellalgo-0.1/_config.yml +1 -0
  22. ellalgo-0.1/benches/test_bm_example1.py +122 -0
  23. ellalgo-0.1/benches/test_bm_lmi.py +108 -0
  24. ellalgo-0.1/benches/test_bm_lowpass.py +50 -0
  25. ellalgo-0.1/benches/test_bm_profit.py +74 -0
  26. ellalgo-0.1/benches/test_bm_quasicvx.py +119 -0
  27. ellalgo-0.1/docs/Makefile +29 -0
  28. ellalgo-0.1/docs/_static/.gitignore +1 -0
  29. ellalgo-0.1/docs/authors.md +4 -0
  30. ellalgo-0.1/docs/changelog.md +4 -0
  31. ellalgo-0.1/docs/conf.py +302 -0
  32. ellalgo-0.1/docs/contributing.md +374 -0
  33. ellalgo-0.1/docs/index.md +37 -0
  34. ellalgo-0.1/docs/license.md +5 -0
  35. ellalgo-0.1/docs/readme.md +4 -0
  36. ellalgo-0.1/docs/requirements.txt +7 -0
  37. ellalgo-0.1/ellipsoid-method-for-convex-optimization.svg +142 -0
  38. ellalgo-0.1/environment.yml +9 -0
  39. ellalgo-0.1/experiment/lowpass +155 -0
  40. ellalgo-0.1/experiment/power_iteration.py +161 -0
  41. ellalgo-0.1/mypy.ini +21 -0
  42. ellalgo-0.1/notes.md +160 -0
  43. ellalgo-0.1/oryx-build-commands.txt +2 -0
  44. ellalgo-0.1/pyproject.toml +9 -0
  45. ellalgo-0.1/requirements/README.md +27 -0
  46. ellalgo-0.1/requirements/default.txt +2 -0
  47. ellalgo-0.1/requirements/doc.txt +6 -0
  48. ellalgo-0.1/requirements/extras.txt +2 -0
  49. ellalgo-0.1/requirements/test.txt +5 -0
  50. ellalgo-0.1/requirements.txt +19 -0
  51. ellalgo-0.1/setup.cfg +73 -0
  52. ellalgo-0.1/setup.py +22 -0
  53. ellalgo-0.1/src/ellalgo/__init__.py +16 -0
  54. ellalgo-0.1/src/ellalgo/conjugate_gradient.py +49 -0
  55. ellalgo-0.1/src/ellalgo/cutting_plane.py +350 -0
  56. ellalgo-0.1/src/ellalgo/ell.py +192 -0
  57. ellalgo-0.1/src/ellalgo/ell1d.tpy +107 -0
  58. ellalgo-0.1/src/ellalgo/ell_calc.py +284 -0
  59. ellalgo-0.1/src/ellalgo/ell_calc.tpy +486 -0
  60. ellalgo-0.1/src/ellalgo/ell_calc_core.py +620 -0
  61. ellalgo-0.1/src/ellalgo/ell_config.py +23 -0
  62. ellalgo-0.1/src/ellalgo/ell_stable.py +220 -0
  63. ellalgo-0.1/src/ellalgo/ell_typing.py +188 -0
  64. ellalgo-0.1/src/ellalgo/oracles/ldlt_mgr.py +272 -0
  65. ellalgo-0.1/src/ellalgo/oracles/lmi0_oracle.py +45 -0
  66. ellalgo-0.1/src/ellalgo/oracles/lmi2_oracle.tpy +51 -0
  67. ellalgo-0.1/src/ellalgo/oracles/lmi3_oracle.tpy +40 -0
  68. ellalgo-0.1/src/ellalgo/oracles/lmi_old_oracle.py +48 -0
  69. ellalgo-0.1/src/ellalgo/oracles/lmi_oracle.py +69 -0
  70. ellalgo-0.1/src/ellalgo/oracles/lowpass_oracle.py +236 -0
  71. ellalgo-0.1/src/ellalgo/oracles/profit_oracle.py +325 -0
  72. ellalgo-0.1/src/ellalgo/skeleton.py +149 -0
  73. ellalgo-0.1/src/ellalgo.egg-info/PKG-INFO +71 -0
  74. ellalgo-0.1/src/ellalgo.egg-info/SOURCES.txt +95 -0
  75. ellalgo-0.1/src/ellalgo.egg-info/dependency_links.txt +1 -0
  76. ellalgo-0.1/src/ellalgo.egg-info/not-zip-safe +1 -0
  77. ellalgo-0.1/src/ellalgo.egg-info/requires.txt +9 -0
  78. ellalgo-0.1/src/ellalgo.egg-info/top_level.txt +1 -0
  79. ellalgo-0.1/tests/conftest.py +10 -0
  80. ellalgo-0.1/tests/test_chol.py +105 -0
  81. ellalgo-0.1/tests/test_conjugate_gradient.py +55 -0
  82. ellalgo-0.1/tests/test_ell.py +78 -0
  83. ellalgo-0.1/tests/test_ell_calc.py +135 -0
  84. ellalgo-0.1/tests/test_ell_calc_core.py +112 -0
  85. ellalgo-0.1/tests/test_ell_stable.py +63 -0
  86. ellalgo-0.1/tests/test_example1.py +97 -0
  87. ellalgo-0.1/tests/test_example2.py +76 -0
  88. ellalgo-0.1/tests/test_example3.py +83 -0
  89. ellalgo-0.1/tests/test_lmi.py +132 -0
  90. ellalgo-0.1/tests/test_lowpass.py +44 -0
  91. ellalgo-0.1/tests/test_profit.py +128 -0
  92. ellalgo-0.1/tests/test_quasicvx.py +180 -0
  93. ellalgo-0.1/tests/test_quasicvx2.py +99 -0
  94. ellalgo-0.1/tests/test_quasicvx_stable.tpy +67 -0
  95. ellalgo-0.1/tests/test_skeleton.py +25 -0
  96. ellalgo-0.1/tox.ini +93 -0
@@ -0,0 +1,28 @@
1
+ # .coveragerc to control coverage.py
2
+ [run]
3
+ branch = True
4
+ source = ellalgo
5
+ # omit = bad_file.py
6
+
7
+ [paths]
8
+ source =
9
+ src/
10
+ */site-packages/
11
+
12
+ [report]
13
+ # Regexes for lines to exclude from consideration
14
+ exclude_lines =
15
+ # Have to re-enable the standard pragma
16
+ pragma: no cover
17
+
18
+ # Don't complain about missing debug-only code:
19
+ def __repr__
20
+ if self\.debug
21
+
22
+ # Don't complain if tests don't hit defensive assertion code:
23
+ raise AssertionError
24
+ raise NotImplementedError
25
+
26
+ # Don't complain if non-runnable code isn't run:
27
+ if 0:
28
+ if __name__ == .__main__.:
ellalgo-0.1/.flake8 ADDED
@@ -0,0 +1,3 @@
1
+ # Autoformatter friendly flake8 config (all formatting rules disabled)
2
+ [flake8]
3
+ extend-ignore = E1, E2, E3, E501, W1, W2, W3, W5
@@ -0,0 +1,125 @@
1
+ # GitHub Actions configuration **EXAMPLE**,
2
+ # MODIFY IT ACCORDING TO YOUR NEEDS!
3
+ # Reference: https://docs.github.com/en/actions
4
+
5
+ name: tests
6
+
7
+ on:
8
+ push:
9
+ # Avoid using all the resources/limits available by checking only
10
+ # relevant branches and tags. Other branches can be checked via PRs.
11
+ branches: [main]
12
+ tags: ["v[0-9]*", "[0-9]+.[0-9]+*"] # Match tags that resemble a version
13
+ pull_request: # Run in every PR
14
+ workflow_dispatch: # Allow manually triggering the workflow
15
+ schedule:
16
+ # Run roughly every 15 days at 00:00 UTC
17
+ # (useful to check if updates on dependencies break the package)
18
+ - cron: "0 0 1,16 * *"
19
+
20
+ permissions:
21
+ contents: read
22
+
23
+ concurrency:
24
+ group: >-
25
+ ${{ github.workflow }}-${{ github.ref_type }}-
26
+ ${{ github.event.pull_request.number || github.sha }}
27
+ cancel-in-progress: true
28
+
29
+ jobs:
30
+ prepare:
31
+ runs-on: ubuntu-latest
32
+ outputs:
33
+ wheel-distribution: ${{ steps.wheel-distribution.outputs.path }}
34
+ steps:
35
+ - uses: actions/checkout@v3
36
+ with: { fetch-depth: 0 } # deep clone for setuptools-scm
37
+ - uses: actions/setup-python@v4
38
+ id: setup-python
39
+ with: { python-version: "3.11" }
40
+ # - name: Run static analysis and format checkers
41
+ # run: pipx run pre-commit run --all-files --show-diff-on-failure
42
+ - name: Build package distribution files
43
+ run: >-
44
+ pipx run --python '${{ steps.setup-python.outputs.python-path }}'
45
+ tox -e clean,build
46
+ - name: Record the path of wheel distribution
47
+ id: wheel-distribution
48
+ run: echo "path=$(ls dist/*.whl)" >> $GITHUB_OUTPUT
49
+ - name: Store the distribution files for use in other stages
50
+ # `tests` and `publish` will use the same pre-built distributions,
51
+ # so we make sure to release the exact same package that was tested
52
+ uses: actions/upload-artifact@v4
53
+ with:
54
+ name: python-distribution-files
55
+ path: dist/
56
+ retention-days: 1
57
+
58
+ test:
59
+ needs: prepare
60
+ strategy:
61
+ matrix:
62
+ python:
63
+ - "3.9" # oldest Python supported by PSF
64
+ - "3.11" # newest Python that is stable
65
+ platform:
66
+ - ubuntu-latest
67
+ - macos-latest
68
+ - windows-latest
69
+ runs-on: ${{ matrix.platform }}
70
+ steps:
71
+ - uses: actions/checkout@v3
72
+ - uses: actions/setup-python@v4
73
+ id: setup-python
74
+ with:
75
+ python-version: ${{ matrix.python }}
76
+ - name: Retrieve pre-built distribution files
77
+ uses: actions/download-artifact@v4
78
+ with: { name: python-distribution-files, path: dist/ }
79
+ - name: Run tests
80
+ run: >-
81
+ pipx run --python '${{ steps.setup-python.outputs.python-path }}'
82
+ tox --installpkg '${{ needs.prepare.outputs.wheel-distribution }}'
83
+ -- -rFEx --durations 10 --color yes # pytest args
84
+ # - name: Generate coverage report
85
+ # run: pipx run coverage lcov -o coverage.lcov
86
+ # - name: Upload partial coverage report
87
+ # uses: coverallsapp/github-action@master
88
+ # with:
89
+ # path-to-lcov: coverage.lcov
90
+ # github-token: ${{ secrets.GITHUB_TOKEN }}
91
+ # flag-name: ${{ matrix.platform }} - py${{ matrix.python }}
92
+ # parallel: true
93
+ #
94
+ # finalize:
95
+ # needs: test
96
+ # runs-on: ubuntu-latest
97
+ # steps:
98
+ # - name: Finalize coverage report
99
+ # uses: coverallsapp/github-action@master
100
+ # with:
101
+ # github-token: ${{ secrets.GITHUB_TOKEN }}
102
+ # parallel-finished: true
103
+ #
104
+ # publish:
105
+ # needs: finalize
106
+ # if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
107
+ # runs-on: ubuntu-latest
108
+ # permissions:
109
+ # contents: write
110
+ # steps:
111
+ # - uses: actions/checkout@v3
112
+ # - uses: actions/setup-python@v4
113
+ # with: { python-version: "3.11" }
114
+ # - name: Retrieve pre-built distribution files
115
+ # uses: actions/download-artifact@v4
116
+ # with: { name: python-distribution-files, path: dist/ }
117
+ # - name: Publish Package
118
+ # env:
119
+ # # TODO: Set your PYPI_TOKEN as a secret using GitHub UI
120
+ # # - https://pypi.org/help/#apitoken
121
+ # # - https://docs.github.com/en/actions/security-guides/encrypted-secrets
122
+ # TWINE_REPOSITORY: pypi
123
+ # TWINE_USERNAME: __token__
124
+ # TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
125
+ # run: pipx run tox -e publish
@@ -0,0 +1,51 @@
1
+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2
+ name: Deploy Jekyll with GitHub Pages dependencies preinstalled
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches: ["main"]
8
+
9
+ # Allows you to run this workflow manually from the Actions tab
10
+ workflow_dispatch:
11
+
12
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
+ permissions:
14
+ contents: read
15
+ pages: write
16
+ id-token: write
17
+
18
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20
+ concurrency:
21
+ group: "pages"
22
+ cancel-in-progress: false
23
+
24
+ jobs:
25
+ # Build job
26
+ build:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - name: Checkout
30
+ uses: actions/checkout@v4
31
+ - name: Setup Pages
32
+ uses: actions/configure-pages@v4
33
+ - name: Build with Jekyll
34
+ uses: actions/jekyll-build-pages@v1
35
+ with:
36
+ source: ./
37
+ destination: ./_site
38
+ - name: Upload artifact
39
+ uses: actions/upload-pages-artifact@v3
40
+
41
+ # Deployment job
42
+ deploy:
43
+ environment:
44
+ name: github-pages
45
+ url: ${{ steps.deployment.outputs.page_url }}
46
+ runs-on: ubuntu-latest
47
+ needs: build
48
+ steps:
49
+ - name: Deploy to GitHub Pages
50
+ id: deployment
51
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,37 @@
1
+ name: Multi-Platforms
2
+ on: [push]
3
+
4
+ jobs:
5
+ miniconda:
6
+ name: Miniconda ${{ matrix.os }} for Python ${{ matrix.version }}
7
+ runs-on: ${{ matrix.os }}
8
+ strategy:
9
+ matrix:
10
+ os: ["ubuntu-latest", "windows-latest"]
11
+ version: ["3.9", "3.12"]
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: conda-incubator/setup-miniconda@v2
15
+ with:
16
+ activate-environment: test
17
+ environment-file: environment.yml
18
+ python-version: ${{ matrix.version }}
19
+ auto-activate-base: false
20
+ - shell: bash -l {0}
21
+ run: |
22
+ conda info
23
+ conda list
24
+ - name: Lint
25
+ shell: bash -l {0}
26
+ run: |
27
+ conda install flake8
28
+ python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29
+ python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30
+ - name: Run pytest
31
+ shell: bash -l {0}
32
+ run: |
33
+ conda install pytest
34
+ python -m pip install --upgrade pip
35
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
36
+ python setup.py develop
37
+ pytest
@@ -0,0 +1,46 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name: Python application (new)
5
+
6
+ on:
7
+ push:
8
+ branches: [main]
9
+ pull_request:
10
+ branches: [main]
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Python 3.10
19
+ uses: actions/setup-python@v2
20
+ with:
21
+ python-version: "3.10"
22
+ - name: Install dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install flake8 pytest
26
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27
+ python setup.py develop
28
+
29
+ - name: Lint with flake8
30
+ run: |
31
+ # stop the build if there are Python syntax errors or undefined names
32
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
33
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35
+ - name: Test with pytest
36
+ run: |
37
+ pytest --cov=src/
38
+ - name: Codecov
39
+ # You may pin to the exact commit or the version.
40
+ # uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192
41
+ uses: codecov/codecov-action@v1.5.2
42
+ with:
43
+ # Repository upload token - get it from codecov.io. Required only for private repositories
44
+ token: ${{ secrets.CODECOV_TOKEN }}
45
+ # Comma-separated list of files to upload
46
+ fail_ci_if_error: true
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ # url: https://pypi.org/p/YOURPROJECT
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,42 @@
1
+ name: Python application
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - uses: actions/checkout@v1
11
+ - name: Set up Python 3.9
12
+ uses: actions/setup-python@v1
13
+ with:
14
+ python-version: 3.9
15
+ - name: Install dependencies
16
+ run: |
17
+ python -m pip install --upgrade pip
18
+ pip install -r requirements.txt
19
+
20
+ - name: Lint with flake8
21
+ run: |
22
+ pip install flake8
23
+ # stop the build if there are Python syntax errors or undefined names
24
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
25
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
26
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
27
+ - name: Test with pytest
28
+ run: |
29
+ pip install -U pip setuptools
30
+ pip install tox
31
+ pip install pytest
32
+ python setup.py develop
33
+ pytest --cov=src/
34
+ # - name: Codecov
35
+ # # You may pin to the exact commit or the version.
36
+ # # uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192
37
+ # uses: codecov/codecov-action@v1.5.2
38
+ # with:
39
+ # # Repository upload token - get it from codecov.io. Required only for private repositories
40
+ # token: ${{ secrets.CODECOV_TOKEN }}
41
+ # # Comma-separated list of files to upload
42
+ # fail_ci_if_error: true
ellalgo-0.1/.gitignore ADDED
@@ -0,0 +1,178 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
161
+
162
+ # Build and docs folder/files
163
+ build/*
164
+ dist/*
165
+ sdist/*
166
+ docs/api/*
167
+ docs/_rst/*
168
+ docs/_build/*
169
+ cover/*
170
+ MANIFEST
171
+
172
+ # Per-project virtualenvs
173
+ .venv*/
174
+ .conda*/
175
+ .python-version
176
+
177
+ # my stuffs
178
+ .hypothesis
ellalgo-0.1/.isort.cfg ADDED
@@ -0,0 +1,3 @@
1
+ [settings]
2
+ profile = black
3
+ known_first_party = ellalgo
@@ -0,0 +1,10 @@
1
+ # Autoformatter friendly markdownlint config (all formatting rules disabled)
2
+ default: true
3
+ blank_lines: false
4
+ bullet: false
5
+ html: false
6
+ indentation: false
7
+ line_length: false
8
+ spaces: false
9
+ url: false
10
+ whitespace: false
@@ -0,0 +1,65 @@
1
+ exclude: "^docs/conf.py"
2
+
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v4.4.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: check-added-large-files
9
+ - id: check-ast
10
+ - id: check-json
11
+ - id: check-merge-conflict
12
+ - id: check-xml
13
+ - id: check-yaml
14
+ - id: debug-statements
15
+ - id: end-of-file-fixer
16
+ - id: requirements-txt-fixer
17
+ - id: mixed-line-ending
18
+ args: ["--fix=auto"] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
19
+
20
+ ## If you want to automatically "modernize" your Python code:
21
+ # - repo: https://github.com/asottile/pyupgrade
22
+ # rev: v3.7.0
23
+ # hooks:
24
+ # - id: pyupgrade
25
+ # args: ['--py37-plus']
26
+
27
+ ## If you want to avoid flake8 errors due to unused vars or imports:
28
+ # - repo: https://github.com/PyCQA/autoflake
29
+ # rev: v2.1.1
30
+ # hooks:
31
+ # - id: autoflake
32
+ # args: [
33
+ # --in-place,
34
+ # --remove-all-unused-imports,
35
+ # --remove-unused-variables,
36
+ # ]
37
+
38
+ - repo: https://github.com/PyCQA/isort
39
+ rev: 5.12.0
40
+ hooks:
41
+ - id: isort
42
+
43
+ - repo: https://github.com/psf/black
44
+ rev: 23.7.0
45
+ hooks:
46
+ - id: black
47
+ language_version: python3
48
+
49
+ ## If like to embrace black styles even in the docs:
50
+ # - repo: https://github.com/asottile/blacken-docs
51
+ # rev: v1.13.0
52
+ # hooks:
53
+ # - id: blacken-docs
54
+ # additional_dependencies: [black]
55
+ - repo: https://github.com/PyCQA/flake8
56
+ rev: 6.1.0
57
+ hooks:
58
+ - id: flake8
59
+ ## You can add flake8 plugins via `additional_dependencies`:
60
+ # additional_dependencies: [flake8-bugbear]
61
+ ## Check for misspells in documentation files:
62
+ # - repo: https://github.com/codespell-project/codespell
63
+ # rev: v2.2.5
64
+ # hooks:
65
+ # - id: codespell
@@ -0,0 +1,32 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ # Set the OS, Python version and other tools you might need
9
+ build:
10
+ os: ubuntu-22.04
11
+ tools:
12
+ python: "3.11"
13
+ # You can also specify other tool versions:
14
+ # nodejs: "19"
15
+ # rust: "1.64"
16
+ # golang: "1.19"
17
+
18
+ # Build documentation in the "docs/" directory with Sphinx
19
+ sphinx:
20
+ configuration: docs/conf.py
21
+
22
+ # Optionally build your docs in additional formats such as PDF and ePub
23
+ formats:
24
+ - pdf
25
+
26
+ # Optional but recommended, declare the Python requirements required
27
+ # to build your documentation
28
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
29
+ python:
30
+ install:
31
+ - requirements: docs/requirements.txt
32
+ - { path: ., method: pip }