Skip to content

Commit eeb577c

Browse files
committed
PROTON release
0 parents  commit eeb577c

File tree

94 files changed

+39954
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+39954
-0
lines changed

.Rprofile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source("renv/activate.R")

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AZURE_OPENAI_ENDPOINT=
2+
AZURE_OPENAI_API_KEY=
3+
PQA_API_KEY=

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.ipynb diff=jupyternotebook
2+
*.ipynb merge=jupyternotebook
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Setup Python Environment"
2+
description: "Set up Python environment for the given Python version"
3+
4+
inputs:
5+
python-version:
6+
description: "Python version to use"
7+
required: true
8+
default: "3.11"
9+
uv-version:
10+
description: "uv version to use"
11+
required: true
12+
default: "0.7.0"
13+
14+
runs:
15+
using: "composite"
16+
steps:
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ inputs.python-version }}
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v6
23+
with:
24+
version: ${{ inputs.uv-version }}
25+
enable-cache: 'true'
26+
cache-suffix: ${{ matrix.python-version }}
27+
28+
- name: Install Python dependencies
29+
run: make install
30+
shell: bash

.github/workflows/main.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
jobs:
11+
quality:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out
15+
uses: actions/checkout@v4
16+
17+
- uses: actions/cache@v4
18+
with:
19+
path: ~/.cache/pre-commit
20+
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
21+
22+
- name: Set up the environment
23+
uses: ./.github/actions/setup-python-env
24+
25+
- name: Run checks
26+
run: make check
27+
28+
type-check:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
python-version: ["3.9", "3.10", "3.11"]
33+
fail-fast: false
34+
defaults:
35+
run:
36+
shell: bash
37+
steps:
38+
- name: Check out
39+
uses: actions/checkout@v4
40+
41+
- name: Set up the environment
42+
uses: ./.github/actions/setup-python-env
43+
with:
44+
python-version: ${{ matrix.python-version }}
45+
46+
- name: Check typing
47+
run: uv run ty check --exclude "notebooks/**"

.gitignore

Lines changed: 303 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,303 @@
1+
# ========== MacOS ==========
2+
# General
3+
.DS_Store
4+
__MACOSX/
5+
.AppleDouble
6+
.LSOverride
7+
Icon
8+
9+
# Thumbnails
10+
._*
11+
12+
# Files that might appear in the root of a volume
13+
.DocumentRevisions-V100
14+
.fseventsd
15+
.Spotlight-V100
16+
.TemporaryItems
17+
.Trashes
18+
.VolumeIcon.icns
19+
.com.apple.timemachine.donotpresent
20+
21+
# Directories potentially created on remote AFP share
22+
.AppleDB
23+
.AppleDesktop
24+
Network Trash Folder
25+
Temporary Items
26+
.apdisk
27+
28+
29+
# ========== Windows ==========
30+
# Windows thumbnail cache files
31+
Thumbs.db
32+
Thumbs.db:encryptable
33+
ehthumbs.db
34+
ehthumbs_vista.db
35+
36+
# Dump file
37+
*.stackdump
38+
39+
# Folder config file
40+
[Dd]esktop.ini
41+
42+
# Recycle Bin used on file shares
43+
$RECYCLE.BIN/
44+
45+
# Windows Installer files
46+
*.cab
47+
*.msi
48+
*.msix
49+
*.msm
50+
*.msp
51+
52+
# Windows shortcuts
53+
*.lnk
54+
55+
56+
# ========== Python ==========
57+
# Byte-compiled / optimized / DLL files
58+
__pycache__/
59+
*.py[codz]
60+
*$py.class
61+
62+
# C extensions
63+
*.so
64+
65+
# Distribution / packaging
66+
.Python
67+
build/
68+
develop-eggs/
69+
dist/
70+
downloads/
71+
eggs/
72+
.eggs/
73+
lib/
74+
lib64/
75+
parts/
76+
sdist/
77+
var/
78+
wheels/
79+
share/python-wheels/
80+
*.egg-info/
81+
.installed.cfg
82+
*.egg
83+
MANIFEST
84+
85+
# PyInstaller
86+
# Usually these files are written by a python script from a template
87+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
88+
*.manifest
89+
*.spec
90+
91+
# Installer logs
92+
pip-log.txt
93+
pip-delete-this-directory.txt
94+
95+
# Unit test / coverage reports
96+
htmlcov/
97+
.tox/
98+
.nox/
99+
.coverage
100+
.coverage.*
101+
.cache
102+
nosetests.xml
103+
coverage.xml
104+
*.cover
105+
*.py.cover
106+
.hypothesis/
107+
.pytest_cache/
108+
cover/
109+
110+
# Translations
111+
*.mo
112+
*.pot
113+
114+
# Django stuff:
115+
*.log
116+
local_settings.py
117+
db.sqlite3
118+
db.sqlite3-journal
119+
120+
# Flask stuff:
121+
instance/
122+
.webassets-cache
123+
124+
# Scrapy stuff:
125+
.scrapy
126+
127+
# Sphinx documentation
128+
docs/_build/
129+
130+
# PyBuilder
131+
.pybuilder/
132+
target/
133+
134+
# Jupyter Notebook
135+
.ipynb_checkpoints
136+
137+
# IPython
138+
profile_default/
139+
ipython_config.py
140+
141+
# pyenv
142+
# For a library or package, you might want to ignore these files since the code is
143+
# intended to run in multiple environments; otherwise, check them in:
144+
# .python-version
145+
146+
# pipenv
147+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
148+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
149+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
150+
# install all needed dependencies.
151+
# Pipfile.lock
152+
153+
# UV
154+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
155+
# This is especially recommended for binary packages to ensure reproducibility, and is more
156+
# commonly ignored for libraries.
157+
# uv.lock
158+
159+
# poetry
160+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
161+
# This is especially recommended for binary packages to ensure reproducibility, and is more
162+
# commonly ignored for libraries.
163+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
164+
# poetry.lock
165+
# poetry.toml
166+
167+
# pdm
168+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
169+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
170+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
171+
# pdm.lock
172+
# pdm.toml
173+
.pdm-python
174+
.pdm-build/
175+
176+
# pixi
177+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
178+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
179+
# in the .venv directory. It is recommended not to include this directory in version control.
180+
.pixi
181+
182+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
183+
__pypackages__/
184+
185+
# Celery stuff
186+
celerybeat-schedule
187+
celerybeat.pid
188+
189+
# Redis
190+
*.rdb
191+
*.aof
192+
*.pid
193+
194+
# RabbitMQ
195+
mnesia/
196+
rabbitmq/
197+
rabbitmq-data/
198+
199+
# ActiveMQ
200+
activemq-data/
201+
202+
# SageMath parsed files
203+
*.sage.py
204+
205+
# Environments
206+
secrets.env
207+
.env
208+
.envrc
209+
.venv
210+
env/
211+
venv/
212+
ENV/
213+
env.bak/
214+
venv.bak/
215+
216+
# Spyder project settings
217+
.spyderproject
218+
.spyproject
219+
220+
# Rope project settings
221+
.ropeproject
222+
223+
# mkdocs documentation
224+
/site
225+
226+
# mypy
227+
.mypy_cache/
228+
.dmypy.json
229+
dmypy.json
230+
231+
# Pyre type checker
232+
.pyre/
233+
234+
# pytype static type analyzer
235+
.pytype/
236+
237+
# Cython debug symbols
238+
cython_debug/
239+
240+
# PyCharm
241+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
242+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
243+
# and can be added to the global gitignore or merged into this file. For a more nuclear
244+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
245+
# .idea/
246+
247+
# Abstra
248+
# Abstra is an AI-powered process automation framework.
249+
# Ignore directories containing user credentials, local state, and settings.
250+
# Learn more at https://abstra.io/docs
251+
.abstra/
252+
253+
# Visual Studio Code
254+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
255+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
256+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
257+
# you could uncomment the following to ignore the entire vscode folder
258+
# .vscode/
259+
260+
# Ruff stuff:
261+
.ruff_cache/
262+
263+
# PyPI configuration file
264+
.pypirc
265+
266+
# Cursor
267+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
268+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
269+
# refer to https://docs.cursor.com/context/ignore-files
270+
.cursorignore
271+
.cursorindexingignore
272+
273+
# Marimo
274+
marimo/_static/
275+
marimo/_lsp/
276+
__marimo__/
277+
278+
# Streamlit
279+
.streamlit/secrets.toml
280+
281+
282+
# ========== Template ==========
283+
docs/source
284+
285+
# Jupyter notebooks
286+
notebooks/**
287+
!notebooks/**.ipynb
288+
289+
# Data
290+
data/**
291+
292+
# Exceptions
293+
!data/.gitkeep
294+
!data/neurokg/
295+
!data/neurokg/2_enrich_kg/
296+
!data/mappings/
297+
!data/images/
298+
299+
!data/neurokg/2_enrich_kg/roi_to_label_mapping.csv
300+
!data/mappings/README.md
301+
302+
!data/images/header.png
303+
!data/images/figure_1a.png

0 commit comments

Comments
 (0)