Skip to content

Commit 578b43f

Browse files
authored
Core features (#2)
Includes: All source code for initial version of error-align. All source code for reproducing results from paper. Basic CI workflow. Basic documentation.
1 parent b0252fd commit 578b43f

50 files changed

Lines changed: 16113 additions & 983 deletions

Some content is hidden

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

.coveragerc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
2-
source = src
3-
omit = ./tests/*
4-
concurrency = multiprocessing
5-
parallel = true
6-
sigterm = true
2+
branch = True
3+
source = error_align
4+
5+
[report]
6+
omit = src/error_align/baselines/*

.github/CODEOWNERS

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
* @corticph/machine-learning-r-d
2-
3-
# No owners of dependencies to allow @github-actions[bot] to approve and auto-merge dependabot PRs.
4-
pyproject.toml
5-
poetry.lock
1+
* @borgholt

.github/assets/logo.svg

Lines changed: 57 additions & 0 deletions
Loading

.github/dependabot.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ Do not leave this blank.
55
This PR [adds/removes/fixes/replaces] the [feature/bug/etc] because [reason] by doing [x].
66
-->
77

8-
## Related Issue(s)
9-
10-
<!--
11-
We like to follow [Linear's guidance on linking issues to pull requests](https://linear.app/docs/github?tabs=206cad22125a#link-using-pull-requests).
12-
For example, writing "Closes RD-1234" would connect the current pull request to issue RD-1234,
13-
and when we merge the pull request, Linear will automatically close the issue.
14-
-->
15-
16-
Related to RD-XXXX
17-
<!-- OR -->
18-
Closes RD-XXXX
19-
208
<!--
219
Before submitting a Pull Request, please ensure you've done the following:
2210
- 👷‍♀️ Create small PRs. In most cases, this will be possible.

.github/workflows/dependabot_automation.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Ruff
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
16+
- name: Run Ruff
17+
uses: astral-sh/ruff-action@v3
18+
with:
19+
version: latest
20+
args: "check"
21+
src: "."

.github/workflows/template_sync.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tests and Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: [3.11, 3.12]
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install test dependencies with Poetry
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install poetry
29+
poetry install --with test
30+
31+
- name: Run tests with coverage
32+
run: poetry run pytest
33+
34+
- name: Upload coverage to Codecov
35+
if: matrix.python-version == '3.12'
36+
uses: codecov/codecov-action@v5
37+
with:
38+
files: ./coverage.xml
39+
token: ${{ secrets.CODECOV_TOKEN }}
40+
verbose: true

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,9 @@ tests/reports
146146

147147
# MacOS
148148
.DS_Store
149+
150+
# Data files generated for evaluation
151+
evaluation/transcribed_data/
152+
evaluation/primock57/
153+
evaluation/results/
154+
evaluation/visualize/

0 commit comments

Comments
 (0)