Skip to content

Commit a62bc49

Browse files
committed
Merge branch 'main' into JOSS
2 parents 6c8bc47 + 62e18a8 commit a62bc49

37 files changed

Lines changed: 1752 additions & 230 deletions
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug Report
3+
about: Report a reproducible bug
4+
labels: bug
5+
---
6+
7+
## Description
8+
9+
A clear description of what the bug is.
10+
11+
## Steps to Reproduce
12+
13+
```python
14+
# Minimal reproducible example
15+
```
16+
17+
## Expected Behavior
18+
19+
What you expected to happen.
20+
21+
## Actual Behavior
22+
23+
What actually happened. Include the full traceback if applicable.
24+
25+
## Environment
26+
27+
- OS:
28+
- Python version:
29+
- JAX version (`python -c "import jax; print(jax.__version__)"`):
30+
- BordAX version / commit:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature Request
3+
about: Propose a new feature or improvement
4+
labels: enhancement
5+
---
6+
7+
## Problem
8+
9+
What problem does this solve? What are you trying to do that is currently difficult or impossible?
10+
11+
## Proposed Solution
12+
13+
Describe what you'd like to see added or changed.
14+
15+
## Alternatives Considered
16+
17+
Any alternative approaches you've thought about.
18+
19+
## Additional Context
20+
21+
Any other context, references, or examples that might help.

.github/pull_request_template.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Summary
2+
3+
Brief description of what this PR does.
4+
5+
Closes #<!-- issue number -->
6+
7+
## Changes
8+
9+
-
10+
11+
## Checklist
12+
13+
- [ ] Tests added or updated for new behavior
14+
- [ ] All fast tests pass: `uv run pytest tests/ -m "not slow" -v`
15+
- [ ] Code formatted with `black`
16+
- [ ] Documentation updated if needed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: astral-sh/setup-uv@v5
16+
with:
17+
python-version: "3.11"
18+
19+
- name: Install dependencies
20+
run: uv sync --extra dev
21+
22+
- name: Run tests
23+
run: uv run pytest tests/ -m "not slow" --cov=bordax --cov-report=xml
24+
25+
- name: Upload coverage to Codecov
26+
uses: codecov/codecov-action@v4
27+
with:
28+
files: ./coverage.xml
29+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/docs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: astral-sh/setup-uv@v5
16+
with:
17+
python-version: "3.11"
18+
19+
- name: Install dependencies
20+
run: uv sync --extra docs
21+
22+
- name: Deploy to GitHub Pages
23+
run: uv run mkdocs gh-deploy --force

.github/workflows/draft-pdf.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
name: Draft PDF
2-
on: [push]
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- paper.md
8+
- paper.bib
9+
pull_request:
10+
paths:
11+
- paper.md
12+
- paper.bib
313

414
jobs:
515
paper:
616
runs-on: ubuntu-latest
717
name: Paper Draft
818
steps:
9-
- name: Checkout
10-
uses: actions/checkout@v4
19+
- uses: actions/checkout@v4
20+
1121
- name: Build draft PDF
1222
uses: openjournals/openjournals-draft-action@master
1323
with:
1424
journal: joss
15-
# This should be the path to the paper within your repo.
1625
paper-path: paper.md
26+
1727
- name: Upload
1828
uses: actions/upload-artifact@v4
1929
with:
2030
name: paper
21-
# This is the output path where Pandoc will write the compiled
22-
# PDF. Note, this should be the same directory as the input
23-
# paper.md
2431
path: paper.pdf

CODE_OF_CONDUCT.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
7+
8+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
9+
10+
## Our Standards
11+
12+
Examples of behavior that contributes to a positive environment for our community include:
13+
14+
* Demonstrating empathy and kindness toward other people
15+
* Being respectful of differing opinions, viewpoints, and experiences
16+
* Giving and gracefully accepting constructive feedback
17+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
18+
* Focusing on what is best not just for us as individuals, but for the overall community
19+
20+
Examples of unacceptable behavior include:
21+
22+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
23+
* Trolling, insulting or derogatory comments, and personal or political attacks
24+
* Public or private harassment
25+
* Publishing others' private information, such as a physical or email address, without their explicit permission
26+
* Other conduct which could reasonably be considered inappropriate in a professional setting
27+
28+
## Enforcement Responsibilities
29+
30+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
31+
32+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
33+
34+
## Scope
35+
36+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
37+
38+
## Enforcement
39+
40+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly.
41+
42+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
43+
44+
## Enforcement Guidelines
45+
46+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
47+
48+
### 1. Correction
49+
50+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
51+
52+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
53+
54+
### 2. Warning
55+
56+
**Community Impact**: A violation through a single incident or series of actions.
57+
58+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
59+
60+
### 3. Temporary Ban
61+
62+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
63+
64+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
65+
66+
### 4. Permanent Ban
67+
68+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
69+
70+
**Consequence**: A permanent ban from any sort of public interaction within the community.
71+
72+
## Attribution
73+
74+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
75+
76+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
77+
78+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
79+
80+
[homepage]: https://www.contributor-covenant.org
81+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
82+
[Mozilla CoC]: https://github.com/mozilla/diversity
83+
[FAQ]: https://www.contributor-covenant.org/faq
84+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Contributing to BordAX
2+
3+
Thank you for your interest in contributing to BordAX!
4+
5+
## Reporting Bugs
6+
7+
Please [open a GitHub Issue](https://github.com/SynthesisLab/bordax/issues/new/choose) using the **Bug Report** template. Include:
8+
9+
- A minimal reproducible example
10+
- Your environment (OS, Python version, JAX version)
11+
- The full error traceback
12+
13+
## Asking Questions
14+
15+
Open a [GitHub Issue](https://github.com/SynthesisLab/bordax/issues/new/choose) using the **Question** label.
16+
17+
## Proposing Changes
18+
19+
For non-trivial changes, open an Issue to discuss the idea before writing code. For small fixes (typos, documentation), you can go straight to a pull request.
20+
21+
## Development Setup
22+
23+
**Requirements**: Python 3.11+, [uv](https://docs.astral.sh/uv/)
24+
25+
```bash
26+
git clone https://github.com/SynthesisLab/bordax.git
27+
cd bordax
28+
uv sync
29+
```
30+
31+
Verify the setup:
32+
33+
```bash
34+
uv run pytest tests/ -m "not slow" -v
35+
```
36+
37+
## Code Style
38+
39+
- Format with [black](https://github.com/psf/black): `uv run black .`
40+
- Use type hints throughout
41+
42+
## Running Tests
43+
44+
```bash
45+
# Fast tests (run before every commit)
46+
uv run pytest tests/ -m "not slow" -v
47+
48+
# Full suite including slow learning tests
49+
uv run pytest tests/ -v
50+
```
51+
52+
New code should come with tests.
53+
54+
## Submitting a Pull Request
55+
56+
1. Fork the repository and create a branch from `main`
57+
2. Make your changes with tests
58+
3. Ensure all fast tests pass: `uv run pytest tests/ -m "not slow"`
59+
4. Open a pull request against `main` — fill out the PR template
60+
61+
## Code of Conduct
62+
63+
This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you agree to uphold it.

0 commit comments

Comments
 (0)