probdiffeq 0.9.2__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 (137) hide show
  1. probdiffeq-0.9.2/.github/release.yaml +13 -0
  2. probdiffeq-0.9.2/.github/workflows/ci.yaml +96 -0
  3. probdiffeq-0.9.2/.github/workflows/doc-publish.yaml +34 -0
  4. probdiffeq-0.9.2/.github/workflows/pypi-publish.yaml +45 -0
  5. probdiffeq-0.9.2/.gitignore +177 -0
  6. probdiffeq-0.9.2/.pre-commit-config.yaml +27 -0
  7. probdiffeq-0.9.2/LICENSE +21 -0
  8. probdiffeq-0.9.2/PKG-INFO +570 -0
  9. probdiffeq-0.9.2/README.md +520 -0
  10. probdiffeq-0.9.2/benchmarks/A0_work-precision-lotka-volterra.py +213 -0
  11. probdiffeq-0.9.2/benchmarks/A1_work-precision-pleiades.py +280 -0
  12. probdiffeq-0.9.2/benchmarks/A2_work-precision-hires.py +232 -0
  13. probdiffeq-0.9.2/benchmarks/A3_work-precision-vanderpol.py +166 -0
  14. probdiffeq-0.9.2/benchmarks/A4_work-precision-linear-high-dimensional.py +216 -0
  15. probdiffeq-0.9.2/benchmarks/A5_work-precision-burgers-pde.py +287 -0
  16. probdiffeq-0.9.2/benchmarks/B0_work-precision-dae-robertson.py +297 -0
  17. probdiffeq-0.9.2/benchmarks/C0_taylor-init-fitzhughnagumo.py +141 -0
  18. probdiffeq-0.9.2/benchmarks/C1_taylor-init-node.py +152 -0
  19. probdiffeq-0.9.2/benchmarks/C2_taylor-init-pleiades.py +146 -0
  20. probdiffeq-0.9.2/benchmarks/D0_convergence-rates-lotka-volterra.py +216 -0
  21. probdiffeq-0.9.2/docs/_javascripts/mathjax.js +18 -0
  22. probdiffeq-0.9.2/docs/_stylesheets/extra.css +68 -0
  23. probdiffeq-0.9.2/examples/A0_quickstart.py +55 -0
  24. probdiffeq-0.9.2/examples/A1_taylorcoefficients.py +100 -0
  25. probdiffeq-0.9.2/examples/B0_collocation.py +131 -0
  26. probdiffeq-0.9.2/examples/B1_uncertainties.py +94 -0
  27. probdiffeq-0.9.2/examples/B2_PDEs.py +118 -0
  28. probdiffeq-0.9.2/examples/B3_DAEs.py +94 -0
  29. probdiffeq-0.9.2/examples/C0_priors.py +82 -0
  30. probdiffeq-0.9.2/examples/C1_calibration.py +119 -0
  31. probdiffeq-0.9.2/examples/C2_secondorder.py +92 -0
  32. probdiffeq-0.9.2/examples/C3_customconstraints.py +141 -0
  33. probdiffeq-0.9.2/examples/C4_stability.py +100 -0
  34. probdiffeq-0.9.2/examples/D0_equinox_while_loop.py +83 -0
  35. probdiffeq-0.9.2/examples/E0_neural_ode.py +186 -0
  36. probdiffeq-0.9.2/examples/E1_parameter_estimation_blackjax.py +167 -0
  37. probdiffeq-0.9.2/examples/E2_parameter_estimation_optax.py +148 -0
  38. probdiffeq-0.9.2/examples/E3_learn_DAEs.py +217 -0
  39. probdiffeq-0.9.2/makefile +38 -0
  40. probdiffeq-0.9.2/mkdocs.yml +80 -0
  41. probdiffeq-0.9.2/probdiffeq/__init__.py +3 -0
  42. probdiffeq-0.9.2/probdiffeq/_ivpsolve/__init__.py +0 -0
  43. probdiffeq-0.9.2/probdiffeq/_ivpsolve/controllers.py +84 -0
  44. probdiffeq-0.9.2/probdiffeq/_ivpsolve/solver_protocols.py +53 -0
  45. probdiffeq-0.9.2/probdiffeq/_ivpsolve/solvers_via_adaptive_steps.py +371 -0
  46. probdiffeq-0.9.2/probdiffeq/_ivpsolve/solvers_via_fixed_steps.py +27 -0
  47. probdiffeq-0.9.2/probdiffeq/_ivpsolve/stepsize_initialisers.py +57 -0
  48. probdiffeq-0.9.2/probdiffeq/_probdiffeq/__init__.py +0 -0
  49. probdiffeq-0.9.2/probdiffeq/_probdiffeq/estimators_and_losses.py +729 -0
  50. probdiffeq-0.9.2/probdiffeq/_probdiffeq/jacobians.py +271 -0
  51. probdiffeq-0.9.2/probdiffeq/_probdiffeq/jet_expansion_algorithms.py +414 -0
  52. probdiffeq-0.9.2/probdiffeq/_probdiffeq/problems.py +411 -0
  53. probdiffeq-0.9.2/probdiffeq/_probdiffeq/solvers.py +1037 -0
  54. probdiffeq-0.9.2/probdiffeq/_probdiffeq/ssm_impl_api.py +506 -0
  55. probdiffeq-0.9.2/probdiffeq/_probdiffeq/ssm_impl_blockdiag.py +627 -0
  56. probdiffeq-0.9.2/probdiffeq/_probdiffeq/ssm_impl_dense.py +721 -0
  57. probdiffeq-0.9.2/probdiffeq/_probdiffeq/ssm_impl_isotropic.py +576 -0
  58. probdiffeq-0.9.2/probdiffeq/_probdiffeq/ssm_impl_matfree.py +411 -0
  59. probdiffeq-0.9.2/probdiffeq/_probdiffeq/taylor_points.py +175 -0
  60. probdiffeq-0.9.2/probdiffeq/_probdiffeq/utilities.py +160 -0
  61. probdiffeq-0.9.2/probdiffeq/_version.py +24 -0
  62. probdiffeq-0.9.2/probdiffeq/backend/__init__.py +4 -0
  63. probdiffeq-0.9.2/probdiffeq/backend/abc.py +11 -0
  64. probdiffeq-0.9.2/probdiffeq/backend/flow.py +23 -0
  65. probdiffeq-0.9.2/probdiffeq/backend/func.py +60 -0
  66. probdiffeq-0.9.2/probdiffeq/backend/inspect.py +10 -0
  67. probdiffeq-0.9.2/probdiffeq/backend/linalg.py +107 -0
  68. probdiffeq-0.9.2/probdiffeq/backend/np.py +260 -0
  69. probdiffeq-0.9.2/probdiffeq/backend/ode.py +73 -0
  70. probdiffeq-0.9.2/probdiffeq/backend/random.py +24 -0
  71. probdiffeq-0.9.2/probdiffeq/backend/structs.py +17 -0
  72. probdiffeq-0.9.2/probdiffeq/backend/testing.py +111 -0
  73. probdiffeq-0.9.2/probdiffeq/backend/timing.py +12 -0
  74. probdiffeq-0.9.2/probdiffeq/backend/tree.py +100 -0
  75. probdiffeq-0.9.2/probdiffeq/backend/typing.py +6 -0
  76. probdiffeq-0.9.2/probdiffeq/backend/warnings.py +11 -0
  77. probdiffeq-0.9.2/probdiffeq/ivpsolve.py +14 -0
  78. probdiffeq-0.9.2/probdiffeq/probdiffeq.py +17 -0
  79. probdiffeq-0.9.2/probdiffeq/util/__init__.py +1 -0
  80. probdiffeq-0.9.2/probdiffeq/util/benchmark_util.py +118 -0
  81. probdiffeq-0.9.2/probdiffeq/util/cholesky_util.py +176 -0
  82. probdiffeq-0.9.2/probdiffeq/util/gram_util.py +432 -0
  83. probdiffeq-0.9.2/probdiffeq/util/test_util.py +78 -0
  84. probdiffeq-0.9.2/probdiffeq.egg-info/PKG-INFO +570 -0
  85. probdiffeq-0.9.2/probdiffeq.egg-info/SOURCES.txt +135 -0
  86. probdiffeq-0.9.2/probdiffeq.egg-info/dependency_links.txt +1 -0
  87. probdiffeq-0.9.2/probdiffeq.egg-info/requires.txt +35 -0
  88. probdiffeq-0.9.2/probdiffeq.egg-info/top_level.txt +1 -0
  89. probdiffeq-0.9.2/pyproject.toml +178 -0
  90. probdiffeq-0.9.2/scripts/examples_and_benchmarks_to_py_light.py +131 -0
  91. probdiffeq-0.9.2/scripts/generate_api_docs.py +85 -0
  92. probdiffeq-0.9.2/scripts/readme_to_dev_docs.py +88 -0
  93. probdiffeq-0.9.2/setup.cfg +4 -0
  94. probdiffeq-0.9.2/tests/__init__.py +1 -0
  95. probdiffeq-0.9.2/tests/test_ivpsolve/__init__.py +5 -0
  96. probdiffeq-0.9.2/tests/test_ivpsolve/test_controllers.py +26 -0
  97. probdiffeq-0.9.2/tests/test_ivpsolve/test_pytree_output_structure.py +49 -0
  98. probdiffeq-0.9.2/tests/test_ivpsolve/test_solve_adaptive_save_at_ode.py +246 -0
  99. probdiffeq-0.9.2/tests/test_ivpsolve/test_solve_adaptive_terminal_values.py +51 -0
  100. probdiffeq-0.9.2/tests/test_ivpsolve/test_solve_fixed_grid_matches_adaptive_grid.py +54 -0
  101. probdiffeq-0.9.2/tests/test_probdiffeq/__init__.py +1 -0
  102. probdiffeq-0.9.2/tests/test_probdiffeq/test_calibration/__init__.py +1 -0
  103. probdiffeq-0.9.2/tests/test_probdiffeq/test_calibration/test_dynamic_vs_mle.py +47 -0
  104. probdiffeq-0.9.2/tests/test_probdiffeq/test_calibration/test_mle.py +106 -0
  105. probdiffeq-0.9.2/tests/test_probdiffeq/test_constraints/__init__.py +1 -0
  106. probdiffeq-0.9.2/tests/test_probdiffeq/test_constraints/test_dae.py +86 -0
  107. probdiffeq-0.9.2/tests/test_probdiffeq/test_constraints/test_jet_lift_residual.py +174 -0
  108. probdiffeq-0.9.2/tests/test_probdiffeq/test_constraints/test_ode_second_order.py +44 -0
  109. probdiffeq-0.9.2/tests/test_probdiffeq/test_constraints/test_ts1_vs_residual.py +46 -0
  110. probdiffeq-0.9.2/tests/test_probdiffeq/test_jacobian_handling.py +74 -0
  111. probdiffeq-0.9.2/tests/test_probdiffeq/test_jetexpand/__init__.py +1 -0
  112. probdiffeq-0.9.2/tests/test_probdiffeq/test_jetexpand/data/generate_reference_solutions.py +34 -0
  113. probdiffeq-0.9.2/tests/test_probdiffeq/test_jetexpand/data/three_body_first_solution.npy +0 -0
  114. probdiffeq-0.9.2/tests/test_probdiffeq/test_jetexpand/data/van_der_pol_second_solution.npy +0 -0
  115. probdiffeq-0.9.2/tests/test_probdiffeq/test_jetexpand/test_ode.py +78 -0
  116. probdiffeq-0.9.2/tests/test_probdiffeq/test_jetexpand/test_ode_higher_order.py +45 -0
  117. probdiffeq-0.9.2/tests/test_probdiffeq/test_jetexpand/test_residual.py +67 -0
  118. probdiffeq-0.9.2/tests/test_probdiffeq/test_logpdf.py +67 -0
  119. probdiffeq-0.9.2/tests/test_probdiffeq/test_losses/__init__.py +1 -0
  120. probdiffeq-0.9.2/tests/test_probdiffeq/test_losses/test_lml_terminal_values.py +78 -0
  121. probdiffeq-0.9.2/tests/test_probdiffeq/test_losses/test_lml_timeseries.py +79 -0
  122. probdiffeq-0.9.2/tests/test_probdiffeq/test_matfree_ts1.py +42 -0
  123. probdiffeq-0.9.2/tests/test_probdiffeq/test_offgrid_marginals.py +139 -0
  124. probdiffeq-0.9.2/tests/test_probdiffeq/test_priors/__init__.py +1 -0
  125. probdiffeq-0.9.2/tests/test_probdiffeq/test_priors/test_exponential.py +134 -0
  126. probdiffeq-0.9.2/tests/test_probdiffeq/test_priors/test_init_variable.py +68 -0
  127. probdiffeq-0.9.2/tests/test_probdiffeq/test_priors/test_output_scales.py +177 -0
  128. probdiffeq-0.9.2/tests/test_probdiffeq/test_priors/test_wiener_integrated.py +66 -0
  129. probdiffeq-0.9.2/tests/test_probdiffeq/test_sample.py +45 -0
  130. probdiffeq-0.9.2/tests/test_probdiffeq/test_solver_uses_constraint_init.py +77 -0
  131. probdiffeq-0.9.2/tests/test_probdiffeq/test_strategies/__init__.py +1 -0
  132. probdiffeq-0.9.2/tests/test_probdiffeq/test_strategies/test_filter_vs_smoother.py +82 -0
  133. probdiffeq-0.9.2/tests/test_probdiffeq/test_strategies/test_smoother_fixedinterval_vs_fixedpoint.py +134 -0
  134. probdiffeq-0.9.2/tests/test_probdiffeq/test_strategies/test_warnings_for_wrong_strategies.py +50 -0
  135. probdiffeq-0.9.2/tests/test_util/__init__.py +1 -0
  136. probdiffeq-0.9.2/tests/test_util/test_cholesky_util.py +99 -0
  137. probdiffeq-0.9.2/tests/test_util/test_gram_util.py +67 -0
@@ -0,0 +1,13 @@
1
+ ---
2
+ changelog:
3
+ categories:
4
+ - title: Breaking changes
5
+ labels: [breaking]
6
+ - title: New features
7
+ labels: [enhancement]
8
+ - title: Improvements to the documentation
9
+ labels: [documentation]
10
+ - title: Internals
11
+ labels: [internals]
12
+ - title: Other Changes
13
+ labels: ['*']
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: ci
3
+ # We test as follows:
4
+ # - Execute tests on Python 3.11, 3.12, 3.13
5
+ # - Lint, dry-run benchmarks, build docs on Python 3.12.
6
+ on:
7
+ push:
8
+ branches: [main]
9
+ pull_request:
10
+ branches: [main]
11
+ jobs:
12
+ lint:
13
+ name: Lint with ${{ matrix.python-version }} on ${{ matrix.os }}
14
+ runs-on: ${{ matrix.os }}
15
+ timeout-minutes: 5
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ['3.12']
20
+ os: [ubuntu-latest]
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v4
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+ - name: Install dependencies
28
+ run: |
29
+ pip install --upgrade pip
30
+ pip install .[cpu,format-and-lint]
31
+ - name: Apply linter
32
+ run: make format-and-lint
33
+ quickstart:
34
+ name: Run the quickstart with ${{ matrix.python-version }} on ${{ matrix.os }}
35
+ runs-on: ${{ matrix.os }}
36
+ timeout-minutes: 10
37
+ strategy:
38
+ fail-fast: false
39
+ matrix:
40
+ python-version: ['3.11', '3.12', '3.13']
41
+ os: [ubuntu-latest]
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+ - name: Set up Python ${{ matrix.python-version }}
45
+ uses: actions/setup-python@v4
46
+ with:
47
+ python-version: ${{ matrix.python-version }}
48
+ - name: Install dependencies
49
+ run: |
50
+ pip install --upgrade pip
51
+ pip install .[cpu]
52
+ - name: Run tests
53
+ run: make quickstart # explanation for this workflow -> makefile
54
+ test:
55
+ name: Test with ${{ matrix.python-version }} on ${{ matrix.os }}
56
+ runs-on: ${{ matrix.os }}
57
+ timeout-minutes: 20
58
+ strategy:
59
+ fail-fast: false
60
+ matrix:
61
+ python-version: ['3.11', '3.12', '3.13']
62
+ os: [ubuntu-latest]
63
+ steps:
64
+ - uses: actions/checkout@v4
65
+ - name: Set up Python ${{ matrix.python-version }}
66
+ uses: actions/setup-python@v4
67
+ with:
68
+ python-version: ${{ matrix.python-version }}
69
+ - name: Install dependencies
70
+ run: |
71
+ pip install --upgrade pip
72
+ pip install .[cpu,test]
73
+ - name: Run tests
74
+ run: make test
75
+ doc:
76
+ name: Build docs with ${{ matrix.python-version }} on ${{ matrix.os }} (runs examples
77
+ and benchmarks)
78
+ runs-on: ${{ matrix.os }}
79
+ timeout-minutes: 20
80
+ strategy:
81
+ fail-fast: false
82
+ matrix:
83
+ python-version: ['3.11', '3.12', '3.13']
84
+ os: [ubuntu-latest]
85
+ steps:
86
+ - uses: actions/checkout@v4
87
+ - name: Set up Python ${{ matrix.python-version }}
88
+ uses: actions/setup-python@v4
89
+ with:
90
+ python-version: ${{ matrix.python-version }}
91
+ - name: Install dependencies
92
+ run: |
93
+ pip install --upgrade pip
94
+ pip install .[cpu,doc]
95
+ - name: Build the HTML docs
96
+ run: make doc
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: doc-publish
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ # Allows you to run this workflow manually from the Actions tab
8
+ workflow_dispatch:
9
+ permissions:
10
+ contents: write
11
+ jobs:
12
+ doc:
13
+ name: Build docs (with ${{ matrix.python-version }} on ${{ matrix.os }})
14
+ runs-on: ${{ matrix.os }}
15
+ timeout-minutes: 20
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ['3.12']
20
+ os: [ubuntu-latest]
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v4
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+ - name: Install dependencies
28
+ run: |
29
+ pip install --upgrade pip
30
+ pip install .[cpu,doc]
31
+ - name: Build the HTML docs
32
+ run: make doc
33
+ - name: Publish the HTML docs
34
+ run: mkdocs gh-deploy --force --clean --verbose
@@ -0,0 +1,45 @@
1
+ ---
2
+ ### Source:
3
+ ### https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#
4
+ name: Build and publish to PyPI
5
+ on: push
6
+ jobs:
7
+ build:
8
+ name: Build distribution
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v7
12
+ with:
13
+ fetch-depth: 0
14
+ persist-credentials: false
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v6
17
+ with:
18
+ python-version: 3.x
19
+ - name: Install pypa/build
20
+ run: python3 -m pip install build
21
+ - name: Build a binary wheel and a source tarball
22
+ run: python3 -m build
23
+ - name: Store the distribution packages
24
+ uses: actions/upload-artifact@v7
25
+ with:
26
+ name: python-package-distributions
27
+ path: dist/
28
+ publish-to-pypi:
29
+ name: Publish to PyPI
30
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
31
+ needs: [build]
32
+ runs-on: ubuntu-latest
33
+ environment:
34
+ name: pypi
35
+ url: https://pypi.org/p/probdiffeq
36
+ permissions:
37
+ id-token: write # IMPORTANT: mandatory for trusted publishing
38
+ steps:
39
+ - name: Download all the dists
40
+ uses: actions/download-artifact@v8
41
+ with:
42
+ name: python-package-distributions
43
+ path: dist/
44
+ - name: Publish distribution to PyPI
45
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,177 @@
1
+ # Version number
2
+ probdiffeq/_version.py
3
+
4
+ # Don't version jupyter notebooks. Track synced markdown files.
5
+ *.ipynb
6
+
7
+ # Most of the docs are automatically generated
8
+ docs/*.md
9
+ docs/API*/
10
+ docs/Examples*/
11
+ docs/Extended_Benchmarks*/
12
+
13
+
14
+ # IDE stuff
15
+ .idea/
16
+ .vscode/
17
+
18
+ # Byte-compiled / optimized / DLL files
19
+ __pycache__/
20
+ *.py[cod]
21
+ *$py.class
22
+
23
+ # C extensions
24
+ *.so
25
+
26
+ # Distribution / packaging
27
+ .Python
28
+ build/
29
+ develop-eggs/
30
+ dist/
31
+ downloads/
32
+ eggs/
33
+ .eggs/
34
+ lib/
35
+ lib64/
36
+ parts/
37
+ sdist/
38
+ var/
39
+ wheels/
40
+ share/python-wheels/
41
+ *.egg-info/
42
+ .installed.cfg
43
+ *.egg
44
+ MANIFEST
45
+
46
+ # PyInstaller
47
+ # Usually these files are written by a python script from a template
48
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
49
+ *.manifest
50
+ *.spec
51
+
52
+ # Installer logs
53
+ pip-log.txt
54
+ pip-delete-this-directory.txt
55
+
56
+ # Unit test / coverage reports
57
+ htmlcov/
58
+ .tox/
59
+ .nox/
60
+ .coverage
61
+ .coverage.*
62
+ .cache
63
+ nosetests.xml
64
+ coverage.xml
65
+ *.cover
66
+ *.py,cover
67
+ .hypothesis/
68
+ .pytest_cache/
69
+ cover/
70
+
71
+ # Translations
72
+ *.mo
73
+ *.pot
74
+
75
+ # Django stuff:
76
+ *.log
77
+ local_settings.py
78
+ db.sqlite3
79
+ db.sqlite3-journal
80
+
81
+ # Flask stuff:
82
+ instance/
83
+ .webassets-cache
84
+
85
+ # Scrapy stuff:
86
+ .scrapy
87
+
88
+ # Sphinx documentation
89
+ docs/_build/
90
+
91
+ # PyBuilder
92
+ .pybuilder/
93
+ target/
94
+
95
+ # Jupyter Notebook
96
+ .ipynb_checkpoints
97
+
98
+ # IPython
99
+ profile_default/
100
+ ipython_config.py
101
+
102
+ # pyenv
103
+ # For a library or package, you might want to ignore these files since the code is
104
+ # intended to run in multiple environments; otherwise, check them in:
105
+ # .python-version
106
+
107
+ # pipenv
108
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
109
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
110
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
111
+ # install all needed dependencies.
112
+ #Pipfile.lock
113
+
114
+ # poetry
115
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
116
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
117
+ # commonly ignored for libraries.
118
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
119
+ #poetry.lock
120
+
121
+ # pdm
122
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
123
+ #pdm.lock
124
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
125
+ # in version control.
126
+ # https://pdm.fming.dev/#use-with-ide
127
+ .pdm.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule
134
+ celerybeat.pid
135
+
136
+ # SageMath parsed files
137
+ *.sage.py
138
+
139
+ # Environments
140
+ .env
141
+ .venv
142
+ env/
143
+ venv/
144
+ ENV/
145
+ env.bak/
146
+ venv.bak/
147
+
148
+ # Spyder project settings
149
+ .spyderproject
150
+ .spyproject
151
+
152
+ # Rope project settings
153
+ .ropeproject
154
+
155
+ # mkdocs documentation
156
+ /site
157
+
158
+ # mypy
159
+ .mypy_cache/
160
+ .dmypy.json
161
+ dmypy.json
162
+
163
+ # Pyre type checker
164
+ .pyre/
165
+
166
+ # pytype static type analyzer
167
+ .pytype/
168
+
169
+ # Cython debug symbols
170
+ cython_debug/
171
+
172
+ # PyCharm
173
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
174
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
175
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
176
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
177
+ #.idea/
@@ -0,0 +1,27 @@
1
+ ---
2
+ default_language_version:
3
+ python: python3
4
+ repos:
5
+ - repo: https://github.com/pre-commit/pre-commit-hooks
6
+ rev: v6.0.0
7
+ hooks:
8
+ - id: end-of-file-fixer
9
+ - id: check-merge-conflict
10
+ - repo: https://github.com/lyz-code/yamlfix/
11
+ rev: 1.19.1
12
+ hooks:
13
+ - id: yamlfix
14
+ - repo: https://github.com/astral-sh/ruff-pre-commit
15
+ # Ruff version.
16
+ rev: v0.15.16
17
+ hooks:
18
+ # Run the linter.
19
+ - id: ruff-check
20
+ args: [--fix]
21
+ # Run the formatter.
22
+ - id: ruff-format
23
+ - repo: https://github.com/pre-commit/mirrors-mypy
24
+ rev: v2.1.0
25
+ hooks:
26
+ - id: mypy
27
+ args: [--ignore-missing-imports, --check-untyped-defs]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Nicholas Krämer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.