Skip to content

Commit

Permalink
feat: initial rye support
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Feb 19, 2024
1 parent 7484fa5 commit aaf06ae
Show file tree
Hide file tree
Showing 7 changed files with 212 additions and 3 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10.13
13 changes: 13 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"recommendations": [
"GitHub.copilot",
"charliermarsh.ruff",
"ms-python.python",
"ms-python.vscode-pylance",
"GitHub.vscode-pull-request-github",
"Graphite.gti-vscode",
"SeeLog.python-init-generator",
"tamasfe.even-better-toml",
"MichaelCurrin.auto-commit-msg"
]
}
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
"label": "Test",
"type": "shell",
"command": "inv test",
"command": "source .venv/bin/activate; inv test",
"presentation": {
"group": "pr",
"clear": true,
Expand All @@ -36,7 +36,7 @@
{
"label": "Lint",
"type": "shell",
"command": "inv lint",
"command": "source .venv/bin/activate; inv lint",
"presentation": {
"group": "pr",
"revealProblems": "onProblem",
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ homepage = "https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener"
repository = "https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener"
documentation = "https://aarhus-psychiatry-research.github.io/timeseriesflattener/"

[tool]
rye = { dev-dependencies = [
"pytest>=7.1.3, <7.3.0",
"pytest-cov>=3.0.0, <3.1.0",
"pytest-xdist>=3.0.0, <3.2.0",
"pytest-sugar>=0.9.4, <0.10.0",
"pytest-testmon==2.1.0",
"pytest-benchmark==4.0.0",
"pytest-codspeed==2.2.0",
"invoke==2.1.1",
] }

[tool.pyright]
exclude = [".*venv*/", ".venv38/", ".tox", ".benchmark_cache"]

Expand Down
113 changes: 113 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false

-e file:.
annotated-types==0.6.0
# via pydantic
attrs==23.2.0
# via pytest
catalogue==2.0.10
# via timeseriesflattener
cffi==1.15.1
# via pytest-codspeed
coloredlogs==15.0.1
# via timeseriesflattener
coverage==7.4.1
# via pytest-cov
# via pytest-testmon
exceptiongroup==1.2.0
# via pytest
execnet==2.0.2
# via pytest-xdist
filelock==3.12.4
# via pytest-codspeed
frozendict==2.4.0
# via timeseriesflattener
humanfriendly==10.0
# via coloredlogs
iniconfig==2.0.0
# via pytest
invoke==2.1.1
iterpy==1.5.1
# via timeseriesflattener
joblib==1.3.2
# via scikit-learn
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
numpy==1.26.4
# via pandas
# via pyarrow
# via scikit-learn
# via scipy
# via timeseriesflattener
packaging==23.2
# via pytest
# via pytest-sugar
pandas==2.1.3
# via timeseriesflattener
pluggy==1.4.0
# via pytest
polars==0.20.9
# via timeseriesflattener
protobuf==4.24.4
# via timeseriesflattener
py-cpuinfo==9.0.0
# via pytest-benchmark
pyarrow==15.0.0
# via timeseriesflattener
pycparser==2.21
# via cffi
pydantic==2.6.1
# via timeseriesflattener
pydantic-core==2.16.2
# via pydantic
pygments==2.17.2
# via rich
pytest==7.2.2
# via pytest-benchmark
# via pytest-codspeed
# via pytest-cov
# via pytest-sugar
# via pytest-testmon
# via pytest-xdist
pytest-benchmark==4.0.0
pytest-codspeed==2.2.0
pytest-cov==3.0.0
pytest-sugar==0.9.7
pytest-testmon==2.1.0
pytest-xdist==3.1.0
python-dateutil==2.8.2
# via pandas
pytz==2024.1
# via pandas
rich==13.7.0
# via timeseriesflattener
scikit-learn==1.4.1.post1
# via timeseriesflattener
scipy==1.12.0
# via scikit-learn
# via timeseriesflattener
six==1.16.0
# via python-dateutil
termcolor==2.4.0
# via pytest-sugar
threadpoolctl==3.3.0
# via scikit-learn
tomli==2.0.1
# via coverage
# via pytest
tqdm==4.66.2
# via timeseriesflattener
typing-extensions==4.9.0
# via pydantic
# via pydantic-core
tzdata==2024.1
# via pandas
70 changes: 70 additions & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false

-e file:.
annotated-types==0.6.0
# via pydantic
catalogue==2.0.10
# via timeseriesflattener
coloredlogs==15.0.1
# via timeseriesflattener
frozendict==2.4.0
# via timeseriesflattener
humanfriendly==10.0
# via coloredlogs
iterpy==1.5.1
# via timeseriesflattener
joblib==1.3.2
# via scikit-learn
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
numpy==1.26.4
# via pandas
# via pyarrow
# via scikit-learn
# via scipy
# via timeseriesflattener
pandas==2.1.3
# via timeseriesflattener
polars==0.20.9
# via timeseriesflattener
protobuf==4.24.4
# via timeseriesflattener
pyarrow==15.0.0
# via timeseriesflattener
pydantic==2.6.1
# via timeseriesflattener
pydantic-core==2.16.2
# via pydantic
pygments==2.17.2
# via rich
python-dateutil==2.8.2
# via pandas
pytz==2024.1
# via pandas
rich==13.7.0
# via timeseriesflattener
scikit-learn==1.4.1.post1
# via timeseriesflattener
scipy==1.12.0
# via scikit-learn
# via timeseriesflattener
six==1.16.0
# via python-dateutil
threadpoolctl==3.3.0
# via scikit-learn
tqdm==4.66.2
# via timeseriesflattener
typing-extensions==4.9.0
# via pydantic
# via pydantic-core
tzdata==2024.1
# via pandas
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from pathlib import Path
from typing import List, Optional

from invoke import Context, Result, task
from invoke import Context, Result, task # type: ignore


def echo_header(msg: str):
Expand Down

0 comments on commit aaf06ae

Please sign in to comment.