Skip to content

Commit eabe47c

Browse files
authored
Merge pull request #117 from djarecka/contribute
adding a simple instuctions for developers
2 parents 115bae1 + 44bc4c6 commit eabe47c

3 files changed

Lines changed: 49 additions & 8 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest] # For demonstration, other OSes are commented out: macos-latest, windows-latest
16-
python-version: ['3.12', '3.11', '3.10']
16+
python-version: ['3.13', '3.12', '3.11', '3.10']
1717
steps:
1818
- uses: actions/checkout@v4
1919
with: # no need for the history

CONTRIBUTING.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# pipepal pull request guidelines
1+
# Contributing to StructSense
22

3-
Pull requests are always welcome, and we appreciate any help you give. Note that a code of conduct applies to all spaces managed by the pipepal project, including issues and pull requests. Please see the [Code of Conduct](CODE_OF_CONDUCT.md) for details.
3+
Pull requests are always welcome, and we appreciate any help you give. Note that a code of conduct applies to all spaces managed by the StructSense project, including issues and pull requests. Please see the [Code of Conduct](CODE_OF_CONDUCT.md) for details.
44

55
When submitting a pull request, we ask you to check the following:
66

77
1. **Unit tests**, **documentation**, and **code style** are in order.
8-
See the Continuous Integration for up to date information on the current code style, tests, and any other requirements.
8+
See the [Developer Guide](DEVELOPER.md) for setup instructions and testing.
99

10-
It is also OK to submit work in progress if you're unsure of what this exactly means, in which case you'll likely be asked to make some further changes.
11-
12-
2. The contributed code will be **licensed under the same [license](LICENSE) as the rest of the repository**, If you did not write the code yourself, you must ensure the existing license is compatible and include the license information in the contributed files, or obtain permission from the original author to relicense the contributed code.
10+
2. The contributed code will be **licensed under the same [license](LICENSE.txt) as the rest of the repository**. If you did not write the code yourself, you must ensure the existing license is compatible and include the license information in the contributed files, or obtain permission from the original author to relicense the contributed code.

DEVELOPER.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,47 @@
1-
# StructSense Information for Developer
1+
# StructSense Developer Guide
2+
3+
## Development Setup
4+
5+
### Requirements
6+
7+
- Python 3.10-3.13
8+
- [Poetry](https://python-poetry.org/) >= 2.0
9+
10+
### Install
11+
12+
```bash
13+
git clone https://github.com/sensein/structsense.git
14+
cd structsense
15+
poetry install --with dev
16+
```
17+
18+
### Environment Variables
19+
20+
Create a `.env` file in the project root:
21+
22+
```bash
23+
# required for LLM calls
24+
OPENROUTER_API_KEY=your-key-here
25+
# optional, only for BioPortal concept mapping
26+
BIOPORTAL_API_KEY=your-key-here
27+
```
28+
29+
### Pre-commit Hooks
30+
31+
```bash
32+
poetry run pre-commit install
33+
```
34+
35+
### Running Tests
36+
37+
```bash
38+
poetry run pytest # all tests (requires OPENROUTER_API_KEY)
39+
poetry run pytest -m "not requires_openrouter" # unit tests only
40+
```
41+
42+
---
43+
44+
## Architecture Overview
245

346
This document provides the overview of the major **StructSense** component and flow.
447

0 commit comments

Comments
 (0)