spatial-aim 1.0.0__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 (100) hide show
  1. spatial_aim-1.0.0/.github/workflows/ci.yml +142 -0
  2. spatial_aim-1.0.0/.github/workflows/release.yml +63 -0
  3. spatial_aim-1.0.0/.gitignore +312 -0
  4. spatial_aim-1.0.0/.pre-commit-config.yaml +21 -0
  5. spatial_aim-1.0.0/LICENSE +674 -0
  6. spatial_aim-1.0.0/PKG-INFO +1005 -0
  7. spatial_aim-1.0.0/README.md +285 -0
  8. spatial_aim-1.0.0/docs/aim_gui.gif +0 -0
  9. spatial_aim-1.0.0/docs/figure_2_1.png +0 -0
  10. spatial_aim-1.0.0/environment.yml +34 -0
  11. spatial_aim-1.0.0/pyproject.toml +105 -0
  12. spatial_aim-1.0.0/renovate.json +34 -0
  13. spatial_aim-1.0.0/sample_dataset/ST/index.csv +2 -0
  14. spatial_aim-1.0.0/sample_dataset/ST/sample_st.h5ad +0 -0
  15. spatial_aim-1.0.0/sample_dataset/pairs.csv +2 -0
  16. spatial_aim-1.0.0/sample_dataset/scRNA/index.csv +2 -0
  17. spatial_aim-1.0.0/sample_dataset/scRNA/sample_sc.h5ad +0 -0
  18. spatial_aim-1.0.0/setup.cfg +4 -0
  19. spatial_aim-1.0.0/src/aim/__init__.py +47 -0
  20. spatial_aim-1.0.0/src/aim/__main__.py +6 -0
  21. spatial_aim-1.0.0/src/aim/adata_schema.py +80 -0
  22. spatial_aim-1.0.0/src/aim/aggregation.py +118 -0
  23. spatial_aim-1.0.0/src/aim/aim_config.py +76 -0
  24. spatial_aim-1.0.0/src/aim/analysis/__init__.py +13 -0
  25. spatial_aim-1.0.0/src/aim/analysis/analysis.py +72 -0
  26. spatial_aim-1.0.0/src/aim/analysis/biology.py +205 -0
  27. spatial_aim-1.0.0/src/aim/analysis/confidence.py +49 -0
  28. spatial_aim-1.0.0/src/aim/analysis/ksweep.py +184 -0
  29. spatial_aim-1.0.0/src/aim/analysis/loading.py +70 -0
  30. spatial_aim-1.0.0/src/aim/analysis/onehot.py +41 -0
  31. spatial_aim-1.0.0/src/aim/analysis/reconstruction.py +131 -0
  32. spatial_aim-1.0.0/src/aim/analysis/topology.py +142 -0
  33. spatial_aim-1.0.0/src/aim/analysis/utils.py +16 -0
  34. spatial_aim-1.0.0/src/aim/cli.py +371 -0
  35. spatial_aim-1.0.0/src/aim/clustering.py +242 -0
  36. spatial_aim-1.0.0/src/aim/data/__init__.py +0 -0
  37. spatial_aim-1.0.0/src/aim/data/prepare/__init__.py +0 -0
  38. spatial_aim-1.0.0/src/aim/data/prepare/build_imaging_pairs.py +397 -0
  39. spatial_aim-1.0.0/src/aim/data/prepare/build_xenium_breast_pair.py +310 -0
  40. spatial_aim-1.0.0/src/aim/data/prepare/convertTsvToCsv.py +39 -0
  41. spatial_aim-1.0.0/src/aim/data/prepare/convert_csv_to_h5ad.py +217 -0
  42. spatial_aim-1.0.0/src/aim/data/prepare/createOnlyHVGDataset.py +69 -0
  43. spatial_aim-1.0.0/src/aim/data/prepare/createSmallerDataset.py +102 -0
  44. spatial_aim-1.0.0/src/aim/data/prepare/normalize_gene_names.py +56 -0
  45. spatial_aim-1.0.0/src/aim/data/prepare/perturb_sc_noise.py +107 -0
  46. spatial_aim-1.0.0/src/aim/data/prepare/register_st_patches.py +180 -0
  47. spatial_aim-1.0.0/src/aim/data/prepare/split_st_into_islands.py +551 -0
  48. spatial_aim-1.0.0/src/aim/data/prepare/split_st_into_patches.py +240 -0
  49. spatial_aim-1.0.0/src/aim/data/prepare/subset_st_hvg.py +43 -0
  50. spatial_aim-1.0.0/src/aim/data/validate/__init__.py +35 -0
  51. spatial_aim-1.0.0/src/aim/data/validate/common.py +141 -0
  52. spatial_aim-1.0.0/src/aim/data/validate/runner.py +335 -0
  53. spatial_aim-1.0.0/src/aim/data/validate/validate_pair.py +53 -0
  54. spatial_aim-1.0.0/src/aim/data/validate/validate_sc.py +103 -0
  55. spatial_aim-1.0.0/src/aim/data/validate/validate_st.py +74 -0
  56. spatial_aim-1.0.0/src/aim/gui/__init__.py +8 -0
  57. spatial_aim-1.0.0/src/aim/gui/__main__.py +77 -0
  58. spatial_aim-1.0.0/src/aim/gui/app.py +1784 -0
  59. spatial_aim-1.0.0/src/aim/gui/compute.py +106 -0
  60. spatial_aim-1.0.0/src/aim/gui/data_access.py +292 -0
  61. spatial_aim-1.0.0/src/aim/gui/render.py +1679 -0
  62. spatial_aim-1.0.0/src/aim/gui/scaffold.py +129 -0
  63. spatial_aim-1.0.0/src/aim/gui/widgets.py +675 -0
  64. spatial_aim-1.0.0/src/aim/io.py +196 -0
  65. spatial_aim-1.0.0/src/aim/mapping/__init__.py +14 -0
  66. spatial_aim-1.0.0/src/aim/mapping/base.py +67 -0
  67. spatial_aim-1.0.0/src/aim/mapping/confidence.py +51 -0
  68. spatial_aim-1.0.0/src/aim/mapping/nearest_centroid.py +33 -0
  69. spatial_aim-1.0.0/src/aim/mapping/reference.py +156 -0
  70. spatial_aim-1.0.0/src/aim/mapping/wann.py +208 -0
  71. spatial_aim-1.0.0/src/aim/metrics/__init__.py +26 -0
  72. spatial_aim-1.0.0/src/aim/metrics/biology.py +69 -0
  73. spatial_aim-1.0.0/src/aim/metrics/cossim.py +127 -0
  74. spatial_aim-1.0.0/src/aim/metrics/kselection.py +272 -0
  75. spatial_aim-1.0.0/src/aim/metrics/onehot.py +54 -0
  76. spatial_aim-1.0.0/src/aim/metrics/reconstruction.py +73 -0
  77. spatial_aim-1.0.0/src/aim/metrics/topology.py +62 -0
  78. spatial_aim-1.0.0/src/aim/reference_aligners/__init__.py +0 -0
  79. spatial_aim-1.0.0/src/aim/reference_aligners/environment_dot.yml +23 -0
  80. spatial_aim-1.0.0/src/aim/reference_aligners/environment_tacco.yml +28 -0
  81. spatial_aim-1.0.0/src/aim/reference_aligners/environment_tangram.yml +16 -0
  82. spatial_aim-1.0.0/src/aim/reference_aligners/registry.py +350 -0
  83. spatial_aim-1.0.0/src/aim/reference_aligners/run_dot.R +172 -0
  84. spatial_aim-1.0.0/src/aim/reference_aligners/run_dot.py +116 -0
  85. spatial_aim-1.0.0/src/aim/reference_aligners/run_tacco.py +143 -0
  86. spatial_aim-1.0.0/src/aim/reference_aligners/run_tangram.py +210 -0
  87. spatial_aim-1.0.0/src/aim/sweep.py +261 -0
  88. spatial_aim-1.0.0/src/aim/tree.py +86 -0
  89. spatial_aim-1.0.0/src/spatial_aim.egg-info/PKG-INFO +1005 -0
  90. spatial_aim-1.0.0/src/spatial_aim.egg-info/SOURCES.txt +98 -0
  91. spatial_aim-1.0.0/src/spatial_aim.egg-info/dependency_links.txt +1 -0
  92. spatial_aim-1.0.0/src/spatial_aim.egg-info/entry_points.txt +2 -0
  93. spatial_aim-1.0.0/src/spatial_aim.egg-info/requires.txt +26 -0
  94. spatial_aim-1.0.0/src/spatial_aim.egg-info/scm_file_list.json +94 -0
  95. spatial_aim-1.0.0/src/spatial_aim.egg-info/scm_version.json +8 -0
  96. spatial_aim-1.0.0/src/spatial_aim.egg-info/top_level.txt +1 -0
  97. spatial_aim-1.0.0/tests/test_cli.py +141 -0
  98. spatial_aim-1.0.0/tests/test_gui_imports.py +27 -0
  99. spatial_aim-1.0.0/tests/test_registry.py +147 -0
  100. spatial_aim-1.0.0/tests/test_sweep_sample.py +124 -0
@@ -0,0 +1,142 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
14
+ with:
15
+ fetch-depth: 0 # setuptools-scm needs history for the version
16
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
17
+ with:
18
+ python-version: "3.13"
19
+ - name: Install lint tools
20
+ run: pip install black mypy types-PyYAML
21
+ - name: Install package without deps so `aim` is importable for mypy
22
+ run: pip install -e . --no-deps
23
+ - name: black
24
+ run: black --check .
25
+ - name: mypy
26
+ run: mypy src
27
+
28
+ unit-tests:
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
32
+ with:
33
+ fetch-depth: 0
34
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
35
+ with:
36
+ python-version: "3.13"
37
+ - name: Install package + dev deps
38
+ run: pip install -e .[dev]
39
+ - name: Run fast tests
40
+ run: pytest -m "not slow"
41
+
42
+ build:
43
+ runs-on: ubuntu-latest
44
+ steps:
45
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
46
+ with:
47
+ fetch-depth: 0
48
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
49
+ with:
50
+ python-version: "3.13"
51
+ - name: Build sdist + wheel
52
+ run: |
53
+ pip install build twine
54
+ python -m build
55
+ twine check dist/*
56
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
57
+ with:
58
+ name: dist
59
+ path: dist/*
60
+
61
+ integration-aim:
62
+ # End-to-end AIM sweep on the sample dataset in aim_env.
63
+ runs-on: ubuntu-latest
64
+ defaults:
65
+ run:
66
+ shell: bash -el {0}
67
+ steps:
68
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
69
+ with:
70
+ fetch-depth: 0
71
+ - uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4
72
+ with:
73
+ activate-environment: aim_env
74
+ environment-file: environment.yml
75
+ auto-activate-base: false
76
+ miniforge-version: latest
77
+ cache-environment: true
78
+ - name: Install package (no deps; env already has them)
79
+ run: pip install -e . --no-deps
80
+ - name: aim run — single pair (nearest_centroid)
81
+ run: |
82
+ aim run \
83
+ --scdata sample_dataset/scRNA/sample_sc.h5ad \
84
+ --stdata sample_dataset/ST/sample_st.h5ad \
85
+ --output_dir sample_output/novel/nearest_centroid \
86
+ --mapping nearest_centroid --leiden_resolution 3.0
87
+ - name: aim run — single pair (wann)
88
+ run: |
89
+ aim run \
90
+ --scdata sample_dataset/scRNA/sample_sc.h5ad \
91
+ --stdata sample_dataset/ST/sample_st.h5ad \
92
+ --output_dir sample_output/novel/wann \
93
+ --mapping wann --leiden_resolution 3.0
94
+ - name: aim run — batch (all pairs)
95
+ run: |
96
+ aim run \
97
+ --pairs_csv sample_dataset/pairs.csv \
98
+ --sc_dir sample_dataset/scRNA \
99
+ --st_dir sample_dataset/ST \
100
+ --output_dir sample_output/novel/sample_batch \
101
+ --mapping nearest_centroid --leiden_resolution 3.0
102
+ - name: Slow / integration tests (sample data)
103
+ run: pytest -m slow
104
+
105
+ integration-reference:
106
+ # Reference-aligner path: aim_env orchestrates the sweep (single + batch) with
107
+ # `--mapping tangram`, so ReferenceMapper drives an AlignerWorker and
108
+ # tangram_env runs the aligner via `conda run`, once per K.
109
+ runs-on: ubuntu-latest
110
+ defaults:
111
+ run:
112
+ shell: bash -el {0}
113
+ steps:
114
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
115
+ with:
116
+ fetch-depth: 0
117
+ - uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4
118
+ with:
119
+ activate-environment: aim_env
120
+ environment-file: environment.yml
121
+ auto-activate-base: false
122
+ miniforge-version: latest
123
+ cache-environment: true
124
+ - name: Create tangram_env
125
+ run: conda env create -f src/aim/reference_aligners/environment_tangram.yml
126
+ - name: Install package into both envs (no deps)
127
+ run: |
128
+ pip install -e . --no-deps
129
+ conda run -n tangram_env pip install -e . --no-deps
130
+ - name: aim run — single pair (tangram)
131
+ run: |
132
+ aim run --mapping tangram \
133
+ --scdata sample_dataset/scRNA/sample_sc.h5ad \
134
+ --stdata sample_dataset/ST/sample_st.h5ad \
135
+ --output_dir sample_output/tangram/sample
136
+ - name: aim run — batch (tangram)
137
+ run: |
138
+ aim run --mapping tangram \
139
+ --pairs_csv sample_dataset/pairs.csv \
140
+ --sc_dir sample_dataset/scRNA \
141
+ --st_dir sample_dataset/ST \
142
+ --output_dir sample_output/tangram/sample_batch
@@ -0,0 +1,63 @@
1
+ name: Release
2
+
3
+ # A vX.Y.Z tag publishes to TestPyPI. A published GitHub Release publishes to
4
+ # PyPI. Both use PyPI trusted publishing (OIDC); configure the trusted publisher
5
+ # for this repo and workflow on (Test)PyPI before use.
6
+
7
+ on:
8
+ push:
9
+ tags: ["v*"]
10
+ release:
11
+ types: [published]
12
+
13
+ jobs:
14
+ build:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
18
+ with:
19
+ fetch-depth: 0 # setuptools-scm derives the version from the tag
20
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
21
+ with:
22
+ python-version: "3.13"
23
+ - name: Build sdist + wheel
24
+ run: |
25
+ pip install build twine
26
+ python -m build
27
+ twine check dist/*
28
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
29
+ with:
30
+ name: dist
31
+ path: dist/*
32
+
33
+ publish-testpypi:
34
+ # On a tag push.
35
+ if: github.event_name == 'push'
36
+ needs: build
37
+ runs-on: ubuntu-latest
38
+ environment: testpypi
39
+ permissions:
40
+ id-token: write # OIDC — required for trusted publishing
41
+ steps:
42
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
43
+ with:
44
+ name: dist
45
+ path: dist
46
+ - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
47
+ with:
48
+ repository-url: https://test.pypi.org/legacy/
49
+
50
+ publish-pypi:
51
+ # On a published GitHub Release.
52
+ if: github.event_name == 'release'
53
+ needs: build
54
+ runs-on: ubuntu-latest
55
+ environment: pypi
56
+ permissions:
57
+ id-token: write
58
+ steps:
59
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
60
+ with:
61
+ name: dist
62
+ path: dist
63
+ - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
@@ -0,0 +1,312 @@
1
+
2
+ # Playground
3
+ 00_Playground/
4
+ **/.DS_Store
5
+ CLAUDE.md
6
+ .claude/
7
+ sample_output/
8
+
9
+ # Byte-compiled / optimized / DLL files
10
+ __pycache__/
11
+ *.py[codz]
12
+ *$py.class
13
+
14
+ # C extensions
15
+ *.so
16
+
17
+ # Distribution / packaging
18
+ .Python
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ share/python-wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+ MANIFEST
36
+
37
+ # PyInstaller
38
+ # Usually these files are written by a python script from a template
39
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
40
+ *.manifest
41
+ *.spec
42
+
43
+ # Installer logs
44
+ pip-log.txt
45
+ pip-delete-this-directory.txt
46
+
47
+ # Unit test / coverage reports
48
+ htmlcov/
49
+ .tox/
50
+ .nox/
51
+ .coverage
52
+ .coverage.*
53
+ .cache
54
+ nosetests.xml
55
+ coverage.xml
56
+ *.cover
57
+ *.py.cover
58
+ .hypothesis/
59
+ .pytest_cache/
60
+ cover/
61
+
62
+ # Translations
63
+ *.mo
64
+ *.pot
65
+
66
+ # Django stuff:
67
+ *.log
68
+ local_settings.py
69
+ db.sqlite3
70
+ db.sqlite3-journal
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+
82
+ # PyBuilder
83
+ .pybuilder/
84
+ target/
85
+
86
+ # Jupyter Notebook
87
+ .ipynb_checkpoints
88
+
89
+ # IPython
90
+ profile_default/
91
+ ipython_config.py
92
+
93
+ # pyenv
94
+ # For a library or package, you might want to ignore these files since the code is
95
+ # intended to run in multiple environments; otherwise, check them in:
96
+ # .python-version
97
+
98
+ # pipenv
99
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
100
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
101
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
102
+ # install all needed dependencies.
103
+ # Pipfile.lock
104
+
105
+ # UV
106
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
107
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
108
+ # commonly ignored for libraries.
109
+ # uv.lock
110
+
111
+ # poetry
112
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
113
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
114
+ # commonly ignored for libraries.
115
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
116
+ # poetry.lock
117
+ # poetry.toml
118
+
119
+ # pdm
120
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
121
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
122
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
123
+ # pdm.lock
124
+ # pdm.toml
125
+ .pdm-python
126
+ .pdm-build/
127
+
128
+ # pixi
129
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
130
+ # pixi.lock
131
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
132
+ # in the .venv directory. It is recommended not to include this directory in version control.
133
+ .pixi
134
+
135
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
136
+ __pypackages__/
137
+
138
+ # Celery stuff
139
+ celerybeat-schedule
140
+ celerybeat.pid
141
+
142
+ # Redis
143
+ *.rdb
144
+ *.aof
145
+ *.pid
146
+
147
+ # RabbitMQ
148
+ mnesia/
149
+ rabbitmq/
150
+ rabbitmq-data/
151
+
152
+ # ActiveMQ
153
+ activemq-data/
154
+
155
+ # SageMath parsed files
156
+ *.sage.py
157
+
158
+ # Environments
159
+ .env
160
+ .envrc
161
+ .venv
162
+ env/
163
+ venv/
164
+ ENV/
165
+ env.bak/
166
+ venv.bak/
167
+
168
+ # Spyder project settings
169
+ .spyderproject
170
+ .spyproject
171
+
172
+ # Rope project settings
173
+ .ropeproject
174
+
175
+ # mkdocs documentation
176
+ /site
177
+
178
+ # mypy
179
+ .mypy_cache/
180
+ .dmypy.json
181
+ dmypy.json
182
+
183
+ # Pyre type checker
184
+ .pyre/
185
+
186
+ # pytype static type analyzer
187
+ .pytype/
188
+
189
+ # Cython debug symbols
190
+ cython_debug/
191
+
192
+ # PyCharm
193
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
194
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
195
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
196
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
197
+ .idea/
198
+ # Covers JetBrains IDEs: IntelliJ, GoLand, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
199
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
200
+
201
+ # User-specific stuff
202
+ .idea/**/workspace.xml
203
+ .idea/**/tasks.xml
204
+ .idea/**/usage.statistics.xml
205
+ .idea/**/dictionaries
206
+ .idea/**/shelf
207
+
208
+ # AWS User-specific
209
+ .idea/**/aws.xml
210
+
211
+ # Generated files
212
+ .idea/**/contentModel.xml
213
+
214
+ # Sensitive or high-churn files
215
+ .idea/**/dataSources/
216
+ .idea/**/dataSources.ids
217
+ .idea/**/dataSources.local.xml
218
+ .idea/**/sqlDataSources.xml
219
+ .idea/**/dynamic.xml
220
+ .idea/**/uiDesigner.xml
221
+ .idea/**/dbnavigator.xml
222
+
223
+ # Gradle
224
+ .idea/**/gradle.xml
225
+ .idea/**/libraries
226
+
227
+ # Gradle and Maven with auto-import
228
+ # When using Gradle or Maven with auto-import, you should exclude module files,
229
+ # since they will be recreated, and may cause churn. Uncomment if using
230
+ # auto-import.
231
+ # .idea/artifacts
232
+ # .idea/compiler.xml
233
+ # .idea/jarRepositories.xml
234
+ # .idea/modules.xml
235
+ # .idea/*.iml
236
+ # .idea/modules
237
+ # *.iml
238
+ # *.ipr
239
+
240
+ # CMake
241
+ cmake-build-*/
242
+
243
+ # Mongo Explorer plugin
244
+ .idea/**/mongoSettings.xml
245
+
246
+ # File-based project format
247
+ *.iws
248
+
249
+ # IntelliJ
250
+ out/
251
+
252
+ # mpeltonen/sbt-idea plugin
253
+ .idea_modules/
254
+
255
+ # JIRA plugin
256
+ atlassian-ide-plugin.xml
257
+
258
+ # Cursive Clojure plugin
259
+ .idea/replstate.xml
260
+
261
+ # SonarLint plugin
262
+ .idea/sonarlint/
263
+ .idea/sonarlint.xml # see https://community.sonarsource.com/t/is-the-file-idea-idea-idea-sonarlint-xml-intended-to-be-under-source-control/121119
264
+
265
+ # Crashlytics plugin (for Android Studio and IntelliJ)
266
+ com_crashlytics_export_strings.xml
267
+ crashlytics.properties
268
+ crashlytics-build.properties
269
+ fabric.properties
270
+
271
+ # Editor-based HTTP Client
272
+ .idea/httpRequests
273
+ http-client.private.env.json
274
+
275
+ # Android studio 3.1+ serialized cache file
276
+ .idea/caches/build_file_checksums.ser
277
+
278
+ # Apifox Helper cache
279
+ .idea/.cache/.Apifox_Helper
280
+ .idea/ApifoxUploaderProjectSetting.xml
281
+
282
+ # Github Copilot persisted session migrations, see: https://github.com/microsoft/copilot-intellij-feedback/issues/712#issuecomment-3322062215
283
+ .idea/**/copilot.data.migration.*.xml
284
+
285
+
286
+
287
+ # Abstra
288
+ # Abstra is an AI-powered process automation framework.
289
+ # Ignore directories containing user credentials, local state, and settings.
290
+ # Learn more at https://abstra.io/docs
291
+ .abstra/
292
+
293
+ # Visual Studio Code
294
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
295
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
296
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
297
+ # you could uncomment the following to ignore the entire vscode folder
298
+ # .vscode/
299
+
300
+ # Ruff stuff:
301
+ .ruff_cache/
302
+
303
+ # PyPI configuration file
304
+ .pypirc
305
+
306
+ # Marimo
307
+ marimo/_static/
308
+ marimo/_lsp/
309
+ __marimo__/
310
+
311
+ # Streamlit
312
+ .streamlit/secrets.toml
@@ -0,0 +1,21 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v6.0.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+
7
+ - repo: local
8
+ hooks:
9
+ - id: black
10
+ name: black
11
+ entry: black
12
+ language: system
13
+ types: [python]
14
+
15
+ - id: mypy
16
+ name: mypy
17
+ entry: mypy
18
+ language: system
19
+ types: [python]
20
+ pass_filenames: false
21
+ args: [src]