autoimmune 0.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.
@@ -0,0 +1,46 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ lint:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.11"
21
+ - run: pip install ruff
22
+ - run: ruff check src/ tests/
23
+ - run: ruff format --check src/ tests/
24
+
25
+ test:
26
+ runs-on: ubuntu-latest
27
+ strategy:
28
+ matrix:
29
+ python-version: ["3.11", "3.12", "3.13"]
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+ - uses: actions/setup-python@v5
33
+ with:
34
+ python-version: ${{ matrix.python-version }}
35
+ - run: pip install -e ".[dev]"
36
+ - run: pytest --tb=short -q
37
+
38
+ typecheck:
39
+ runs-on: ubuntu-latest
40
+ steps:
41
+ - uses: actions/checkout@v4
42
+ - uses: actions/setup-python@v5
43
+ with:
44
+ python-version: "3.11"
45
+ - run: pip install -e ".[dev]"
46
+ - run: mypy src/
@@ -0,0 +1,21 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ id-token: write
9
+
10
+ jobs:
11
+ publish:
12
+ runs-on: ubuntu-latest
13
+ environment: pypi
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.11"
19
+ - run: pip install build
20
+ - run: python -m build
21
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,210 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
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
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
208
+
209
+ # macOS
210
+ .DS_Store
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,28 @@
1
+ # Agent Instructions for autoimmune
2
+
3
+ ## Architecture
4
+
5
+ This is a Python package using a `src/` layout with `hatchling` as the build backend.
6
+ Source code lives in `src/autoimmune/`, tests in `tests/`.
7
+
8
+ ## Code Style
9
+
10
+ - Python 3.11+. Use modern typing syntax (`X | Y`, `type` aliases, `Self`).
11
+ - All tools configured in `pyproject.toml` — no separate config files.
12
+ - Ruff for linting and formatting. Run `ruff check` and `ruff format` before committing.
13
+ - Type hints required on all public function signatures.
14
+ - Google-style docstrings on public classes and functions.
15
+
16
+ ## Testing
17
+
18
+ - Use pytest. Test files mirror source layout: `src/autoimmune/foo.py` -> `tests/test_foo.py`.
19
+ - Run `pytest` to verify changes. All tests must pass before committing.
20
+ - Mark slow tests with `@pytest.mark.slow`.
21
+
22
+ ## What Not To Do
23
+
24
+ - Do not add `setup.py`, `setup.cfg`, or `requirements.txt`.
25
+ - Do not use `print()` in library code — use `logging`.
26
+ - Do not commit generated files, model weights, or large data.
27
+ - Do not add `# type: ignore` without a specific error code and justification.
28
+ - Do not use bare `except:` clauses.
@@ -0,0 +1,39 @@
1
+ # autoimmune
2
+
3
+ ## Quick Reference
4
+
5
+ ```bash
6
+ # Install (editable, with dev extras)
7
+ pip install -e ".[dev]"
8
+
9
+ # Run tests
10
+ pytest
11
+
12
+ # Lint & format
13
+ ruff check src/ tests/
14
+ ruff format src/ tests/
15
+
16
+ # Type check
17
+ mypy src/
18
+ ```
19
+
20
+ ## Project Structure
21
+
22
+ ```
23
+ autoimmune/
24
+ ├── src/
25
+ │ └── autoimmune/ # importable package
26
+ ├── tests/ # pytest tests mirror src/ layout
27
+ ├── pyproject.toml # single source of truth for config
28
+ └── CLAUDE.md # this file
29
+ ```
30
+
31
+ ## Conventions
32
+
33
+ - **Python 3.11+** with modern syntax (`match`, `X | Y` unions, `type` aliases).
34
+ - **src layout** — always import from `autoimmune`, never relative to the repo root.
35
+ - **Ruff** for linting and formatting. All config in `pyproject.toml`.
36
+ - **pytest** for testing. Mark slow tests with `@pytest.mark.slow`.
37
+ - Type hints on all public function signatures.
38
+ - Google-style docstrings on public APIs.
39
+ - Max line length: 100 characters.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bryan Briney
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.
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: autoimmune
3
+ Version: 0.0.1
4
+ Summary: Autoimmune
5
+ Project-URL: Homepage, https://github.com/briney/autoimmune
6
+ Project-URL: Repository, https://github.com/briney/autoimmune
7
+ Project-URL: Issues, https://github.com/briney/autoimmune/issues
8
+ Author-email: Bryan Briney <briney@scripps.edu>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Classifier: Development Status :: 2 - Pre-Alpha
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
19
+ Requires-Python: >=3.11
20
+ Provides-Extra: dev
21
+ Requires-Dist: mypy>=1.10; extra == 'dev'
22
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
23
+ Requires-Dist: pytest>=8.0; extra == 'dev'
24
+ Requires-Dist: ruff>=0.4; extra == 'dev'
25
+ Description-Content-Type: text/markdown
26
+
27
+ # autoimmune
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ pip install autoimmune
33
+ ```
34
+
35
+ ### Development
36
+
37
+ ```bash
38
+ git clone https://github.com/briney/autoimmune.git
39
+ cd autoimmune
40
+ python -m venv .venv
41
+ source .venv/bin/activate
42
+ pip install -e ".[dev]"
43
+ ```
44
+
45
+ ## Testing
46
+
47
+ ```bash
48
+ pytest
49
+ ```
@@ -0,0 +1,23 @@
1
+ # autoimmune
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ pip install autoimmune
7
+ ```
8
+
9
+ ### Development
10
+
11
+ ```bash
12
+ git clone https://github.com/briney/autoimmune.git
13
+ cd autoimmune
14
+ python -m venv .venv
15
+ source .venv/bin/activate
16
+ pip install -e ".[dev]"
17
+ ```
18
+
19
+ ## Testing
20
+
21
+ ```bash
22
+ pytest
23
+ ```
@@ -0,0 +1,74 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "autoimmune"
7
+ version = "0.0.1"
8
+ description = "Autoimmune"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.11"
12
+ authors = [{ name = "Bryan Briney", email = "briney@scripps.edu" }]
13
+ classifiers = [
14
+ "Development Status :: 2 - Pre-Alpha",
15
+ "Intended Audience :: Science/Research",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
20
+ "Programming Language :: Python :: 3.13",
21
+ "Topic :: Scientific/Engineering :: Bio-Informatics",
22
+ ]
23
+ dependencies = []
24
+
25
+ [project.optional-dependencies]
26
+ dev = [
27
+ "pytest>=8.0",
28
+ "pytest-cov>=5.0",
29
+ "ruff>=0.4",
30
+ "mypy>=1.10",
31
+ ]
32
+
33
+ [project.urls]
34
+ Homepage = "https://github.com/briney/autoimmune"
35
+ Repository = "https://github.com/briney/autoimmune"
36
+ Issues = "https://github.com/briney/autoimmune/issues"
37
+
38
+ # -- Ruff ------------------------------------------------------------------
39
+
40
+ [tool.ruff]
41
+ line-length = 100
42
+ target-version = "py311"
43
+
44
+ [tool.ruff.lint]
45
+ select = [
46
+ "E", # pycodestyle errors
47
+ "W", # pycodestyle warnings
48
+ "F", # pyflakes
49
+ "I", # isort
50
+ "N", # pep8-naming
51
+ "UP", # pyupgrade
52
+ "B", # flake8-bugbear
53
+ "SIM", # flake8-simplify
54
+ "TCH", # flake8-type-checking
55
+ ]
56
+
57
+ [tool.ruff.lint.isort]
58
+ known-first-party = ["autoimmune"]
59
+
60
+ # -- Pytest -----------------------------------------------------------------
61
+
62
+ [tool.pytest.ini_options]
63
+ testpaths = ["tests"]
64
+ markers = [
65
+ "slow: marks tests as slow (deselect with '-m \"not slow\"')",
66
+ ]
67
+
68
+ # -- Mypy -------------------------------------------------------------------
69
+
70
+ [tool.mypy]
71
+ python_version = "3.11"
72
+ strict = true
73
+ warn_return_any = true
74
+ warn_unused_configs = true
@@ -0,0 +1,3 @@
1
+ """autoimmune."""
2
+
3
+ __version__ = "0.0.1"
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ import autoimmune
4
+
5
+
6
+ def test_version():
7
+ assert autoimmune.__version__ == "0.0.1"