wandas 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wandas-0.0.4/.devcontainer/Dockerfile +19 -0
- wandas-0.0.4/.devcontainer/devcontainer.json +49 -0
- wandas-0.0.4/.dockerignore +186 -0
- wandas-0.0.4/.gitattributes +3 -0
- wandas-0.0.4/.github/workflows/cd.yml +135 -0
- wandas-0.0.4/.github/workflows/ci.yml +37 -0
- wandas-0.0.4/.gitignore +162 -0
- wandas-0.0.4/.pre-commit-config.yaml +42 -0
- wandas-0.0.4/.python-version +1 -0
- wandas-0.0.4/.vscode/launch.json +29 -0
- wandas-0.0.4/.vscode/settings.json +36 -0
- wandas-0.0.4/.vscode/tasks.json +17 -0
- wandas-0.0.4/Dockerfile +29 -0
- wandas-0.0.4/LICENSE +21 -0
- wandas-0.0.4/PKG-INFO +85 -0
- wandas-0.0.4/README.md +63 -0
- wandas-0.0.4/examples/00_file_read.ipynb +282 -0
- wandas-0.0.4/examples/app/sound_explorer.ipynb +375 -0
- wandas-0.0.4/examples/basic_usage.ipynb +549 -0
- wandas-0.0.4/examples/basic_usage.py +20 -0
- wandas-0.0.4/examples/calculation.ipynb +221 -0
- wandas-0.0.4/examples/compare_signal_usage.ipynb +112 -0
- wandas-0.0.4/examples/data/summer_streets1.wav +0 -0
- wandas-0.0.4/examples/data/test_signals.csv +1001 -0
- wandas-0.0.4/examples/data/test_signals_3ch.csv +1001 -0
- wandas-0.0.4/examples/matarix_usage.ipynb +281 -0
- wandas-0.0.4/examples/multidimensional_usage.py +39 -0
- wandas-0.0.4/pyproject.toml +57 -0
- wandas-0.0.4/tests/__init__.py +0 -0
- wandas-0.0.4/tests/core/__init__.py +0 -0
- wandas-0.0.4/tests/core/test_base_channel.py +0 -0
- wandas-0.0.4/tests/core/test_channel.py +342 -0
- wandas-0.0.4/tests/core/test_channel_frame.py +594 -0
- wandas-0.0.4/tests/core/test_file_frame.py +127 -0
- wandas-0.0.4/tests/core/test_frequency_channel.py +289 -0
- wandas-0.0.4/tests/core/test_frequency_channel_frame.py +172 -0
- wandas-0.0.4/tests/core/test_matrix_frame.py +195 -0
- wandas-0.0.4/tests/core/test_time_frequency_channel.py +398 -0
- wandas-0.0.4/tests/io/__init__.py +0 -0
- wandas-0.0.4/tests/io/test_wav_io.py +52 -0
- wandas-0.0.4/tests/utils/_init__.py +0 -0
- wandas-0.0.4/tests/utils/test_generate_sample.py +41 -0
- wandas-0.0.4/uv.lock +2552 -0
- wandas-0.0.4/wandas/__init__.py +4 -0
- wandas-0.0.4/wandas/core/__init__.py +11 -0
- wandas-0.0.4/wandas/core/base_channel.py +69 -0
- wandas-0.0.4/wandas/core/channel.py +512 -0
- wandas-0.0.4/wandas/core/channel_frame.py +471 -0
- wandas-0.0.4/wandas/core/file_frame.py +127 -0
- wandas-0.0.4/wandas/core/frequency_channel.py +348 -0
- wandas-0.0.4/wandas/core/frequency_channel_frame.py +89 -0
- wandas-0.0.4/wandas/core/matrix_frame.py +416 -0
- wandas-0.0.4/wandas/core/time_frequency_channel.py +409 -0
- wandas-0.0.4/wandas/core/util.py +44 -0
- wandas-0.0.4/wandas/datasets/__init__.py +0 -0
- wandas-0.0.4/wandas/datasets/sample_data.py +23 -0
- wandas-0.0.4/wandas/io/__init__.py +3 -0
- wandas-0.0.4/wandas/io/wav_io.py +48 -0
- wandas-0.0.4/wandas/utils/generate_sample.py +53 -0
- wandas-0.0.4/wandas/utils/types.py +16 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
ARG UV_VERSION=latest
|
|
2
|
+
ARG DEBIAN_VERSION=bookworm
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
FROM ghcr.io/astral-sh/uv:$UV_VERSION AS uv
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
FROM mcr.microsoft.com/vscode/devcontainers/base:$DEBIAN_VERSION
|
|
9
|
+
|
|
10
|
+
# hadolint ignore=DL3008
|
|
11
|
+
RUN apt-get update \
|
|
12
|
+
&& apt-get install -y --no-install-recommends \
|
|
13
|
+
# For OpenCV etc...
|
|
14
|
+
libgl1 libglib2.0-0 \
|
|
15
|
+
# To remove the image size, it is recommended refresh the package cache as follows
|
|
16
|
+
&& apt-get clean \
|
|
17
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
18
|
+
|
|
19
|
+
COPY --from=uv --chown=vscode: /uv /uvx /bin/
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Python 3",
|
|
3
|
+
"build": {
|
|
4
|
+
"context": "..",
|
|
5
|
+
"dockerfile": "Dockerfile",
|
|
6
|
+
"args": {
|
|
7
|
+
"UV_VERSION": "latest",
|
|
8
|
+
"DEBIAN_VERSION": "bookworm"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"features": {
|
|
12
|
+
"ghcr.io/devcontainers/features/git:1": {},
|
|
13
|
+
"ghcr.io/dhoeric/features/hadolint:1": {}
|
|
14
|
+
// "ghcr.io/devcontainers-contrib/features/ruff:1": {}
|
|
15
|
+
},
|
|
16
|
+
"customizations": {
|
|
17
|
+
"vscode": {
|
|
18
|
+
"settings": {
|
|
19
|
+
"python.pythonPath": "~/.venv/lib/python3"
|
|
20
|
+
},
|
|
21
|
+
"extensions": [
|
|
22
|
+
"DavidAnson.vscode-markdownlint",
|
|
23
|
+
"njpwerner.autodocstring",
|
|
24
|
+
"ms-python.python",
|
|
25
|
+
"usernamehw.errorlens",
|
|
26
|
+
"ms-python.vscode-pylance",
|
|
27
|
+
"spmeesseman.vscode-taskexplorer",
|
|
28
|
+
"charliermarsh.ruff",
|
|
29
|
+
"ms-toolsai.jupyter",
|
|
30
|
+
"eamodio.gitlens",
|
|
31
|
+
"donjayamanne.githistory",
|
|
32
|
+
"Gruntfuggly.todo-tree",
|
|
33
|
+
"github.vscode-github-actions",
|
|
34
|
+
"mhutchie.git-graph",
|
|
35
|
+
"ms-python.mypy-type-checker",
|
|
36
|
+
"exiasr.hadolint",
|
|
37
|
+
"ms-azuretools.vscode-docker"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"containerEnv": {
|
|
42
|
+
"PYTHONUNBUFFERED": "True",
|
|
43
|
+
"UV_LINK_MODE": "copy",
|
|
44
|
+
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.venv"
|
|
45
|
+
},
|
|
46
|
+
"postCreateCommand": "uv sync --frozen",
|
|
47
|
+
"postStartCommand": "uv run pre-commit install",
|
|
48
|
+
"remoteUser": "vscode"
|
|
49
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
**/__pycache__/
|
|
3
|
+
**/*.py[cod]
|
|
4
|
+
**/*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
**/*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
**/.Python
|
|
11
|
+
**/build/
|
|
12
|
+
**/develop-eggs/
|
|
13
|
+
**/dist/
|
|
14
|
+
**/downloads/
|
|
15
|
+
**/eggs/
|
|
16
|
+
**/.eggs/
|
|
17
|
+
**/lib/
|
|
18
|
+
**/lib64/
|
|
19
|
+
**/parts/
|
|
20
|
+
**/sdist/
|
|
21
|
+
**/var/
|
|
22
|
+
**/wheels/
|
|
23
|
+
**/share/python-wheels/
|
|
24
|
+
**/*.egg-info/
|
|
25
|
+
**/.installed.cfg
|
|
26
|
+
**/*.egg
|
|
27
|
+
**/MANIFEST
|
|
28
|
+
|
|
29
|
+
# Docker
|
|
30
|
+
**/compose.yml
|
|
31
|
+
**/docker-compose.yml
|
|
32
|
+
**/*Dockerfile
|
|
33
|
+
.dockerignore
|
|
34
|
+
|
|
35
|
+
# Git
|
|
36
|
+
.git
|
|
37
|
+
.github
|
|
38
|
+
**/.gitignore
|
|
39
|
+
|
|
40
|
+
# PyInstaller
|
|
41
|
+
# Usually these files are written by a python script from a template
|
|
42
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
43
|
+
**/*.manifest
|
|
44
|
+
**/*.spec
|
|
45
|
+
|
|
46
|
+
# Installer logs
|
|
47
|
+
**/pip-log.txt
|
|
48
|
+
**/pip-delete-this-directory.txt
|
|
49
|
+
|
|
50
|
+
# Unit test / coverage reports
|
|
51
|
+
**/htmlcov/
|
|
52
|
+
**/.tox/
|
|
53
|
+
**/.nox/
|
|
54
|
+
**/.coverage
|
|
55
|
+
**/.coverage.*
|
|
56
|
+
**/.*cache
|
|
57
|
+
**/nosetests.xml
|
|
58
|
+
**/coverage.xml
|
|
59
|
+
**/*.cover
|
|
60
|
+
**/*.py,cover
|
|
61
|
+
**/.hypothesis/
|
|
62
|
+
**/.pytest_cache/
|
|
63
|
+
**/cover/
|
|
64
|
+
|
|
65
|
+
# Translations
|
|
66
|
+
**/*.mo
|
|
67
|
+
**/*.pot
|
|
68
|
+
|
|
69
|
+
# Django stuff:
|
|
70
|
+
**/*.log
|
|
71
|
+
**/local_settings.py
|
|
72
|
+
**/db.sqlite3
|
|
73
|
+
**/db.sqlite3-journal
|
|
74
|
+
|
|
75
|
+
# Flask stuff:
|
|
76
|
+
**/instance/
|
|
77
|
+
**/.webassets-cache
|
|
78
|
+
|
|
79
|
+
# Scrapy stuff:
|
|
80
|
+
**/.scrapy
|
|
81
|
+
|
|
82
|
+
# Sphinx documentation
|
|
83
|
+
**/docs/_build/
|
|
84
|
+
|
|
85
|
+
# PyBuilder
|
|
86
|
+
**/.pybuilder/
|
|
87
|
+
**/target/
|
|
88
|
+
|
|
89
|
+
# Jupyter Notebook
|
|
90
|
+
**/.ipynb_checkpoints
|
|
91
|
+
|
|
92
|
+
# IPython
|
|
93
|
+
**/profile_default/
|
|
94
|
+
**/ipython_config.py
|
|
95
|
+
|
|
96
|
+
# pyenv
|
|
97
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
98
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
99
|
+
# .python-version
|
|
100
|
+
|
|
101
|
+
# pipenv
|
|
102
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
103
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
104
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
105
|
+
# install all needed dependencies.
|
|
106
|
+
#Pipfile.lock
|
|
107
|
+
|
|
108
|
+
# poetry
|
|
109
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
110
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
111
|
+
# commonly ignored for libraries.
|
|
112
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
113
|
+
#poetry.lock
|
|
114
|
+
|
|
115
|
+
# pdm
|
|
116
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
117
|
+
#pdm.lock
|
|
118
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
119
|
+
# in version control.
|
|
120
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
121
|
+
.pdm.toml
|
|
122
|
+
.pdm-python
|
|
123
|
+
.pdm-build/
|
|
124
|
+
|
|
125
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
126
|
+
**/__pypackages__/
|
|
127
|
+
|
|
128
|
+
# Celery stuff
|
|
129
|
+
**/celerybeat-schedule
|
|
130
|
+
**/celerybeat.pid
|
|
131
|
+
|
|
132
|
+
# SageMath parsed files
|
|
133
|
+
**/*.sage.py
|
|
134
|
+
|
|
135
|
+
# Environments
|
|
136
|
+
**/.env
|
|
137
|
+
**/.venv
|
|
138
|
+
**/env/
|
|
139
|
+
**/venv/
|
|
140
|
+
**/ENV/
|
|
141
|
+
**/env.bak/
|
|
142
|
+
**/venv.bak/
|
|
143
|
+
|
|
144
|
+
# Spyder project settings
|
|
145
|
+
**/.spyderproject
|
|
146
|
+
**/.spyproject
|
|
147
|
+
|
|
148
|
+
# Rope project settings
|
|
149
|
+
**/.ropeproject
|
|
150
|
+
|
|
151
|
+
# mkdocs documentation
|
|
152
|
+
**/site
|
|
153
|
+
|
|
154
|
+
# mypy
|
|
155
|
+
**/.mypy_cache/
|
|
156
|
+
**/.dmypy.json
|
|
157
|
+
**/dmypy.json
|
|
158
|
+
|
|
159
|
+
# Pyre type checker
|
|
160
|
+
**/.pyre/
|
|
161
|
+
|
|
162
|
+
# pytype static type analyzer
|
|
163
|
+
**/.pytype/
|
|
164
|
+
|
|
165
|
+
# Cython debug symbols
|
|
166
|
+
**/cython_debug/
|
|
167
|
+
|
|
168
|
+
# PyCharm
|
|
169
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
170
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
171
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
172
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
173
|
+
#.idea/
|
|
174
|
+
|
|
175
|
+
# VS Code
|
|
176
|
+
.vscode
|
|
177
|
+
.devcontainer
|
|
178
|
+
|
|
179
|
+
# Custom
|
|
180
|
+
.pre-commit-config.yaml
|
|
181
|
+
assets
|
|
182
|
+
LICENSE
|
|
183
|
+
pyrightconfig.json
|
|
184
|
+
README.md
|
|
185
|
+
ruff.toml
|
|
186
|
+
tests
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
name: Deploy on Tag
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*.*.*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
name: Build distribution
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
timeout-minutes: 10
|
|
13
|
+
steps:
|
|
14
|
+
- name: リポジトリをチェックアウト
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: uv をインストール
|
|
18
|
+
uses: astral-sh/setup-uv@v5
|
|
19
|
+
with:
|
|
20
|
+
version: "latest"
|
|
21
|
+
|
|
22
|
+
- name: Python をセットアップ
|
|
23
|
+
run: uv python install
|
|
24
|
+
|
|
25
|
+
- name: 依存関係をインストール
|
|
26
|
+
run: uv sync --all-extras --dev
|
|
27
|
+
|
|
28
|
+
- name: コード品質チェック (ruff)
|
|
29
|
+
run: uv run ruff check .
|
|
30
|
+
|
|
31
|
+
- name: 型チェック (mypy)
|
|
32
|
+
run: uv run mypy wandas tests
|
|
33
|
+
|
|
34
|
+
- name: テスト実行 (pytest)
|
|
35
|
+
run: uv run pytest
|
|
36
|
+
|
|
37
|
+
- name: Build a binary wheel and a source tarball
|
|
38
|
+
run: uv build
|
|
39
|
+
|
|
40
|
+
- name: Store the distribution packages
|
|
41
|
+
uses: actions/upload-artifact@v4
|
|
42
|
+
with:
|
|
43
|
+
name: python-package-distributions
|
|
44
|
+
path: dist/
|
|
45
|
+
|
|
46
|
+
publish-to-pypi:
|
|
47
|
+
name: >-
|
|
48
|
+
Publish Python distribution to PyPI
|
|
49
|
+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
|
|
50
|
+
needs:
|
|
51
|
+
- build
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
environment:
|
|
54
|
+
name: pypi
|
|
55
|
+
url: https://pypi.org/project/wandas/ # Replace <package-name> with your PyPI project name
|
|
56
|
+
permissions:
|
|
57
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
58
|
+
|
|
59
|
+
steps:
|
|
60
|
+
- name: Download all the dists
|
|
61
|
+
uses: actions/download-artifact@v4
|
|
62
|
+
with:
|
|
63
|
+
name: python-package-distributions
|
|
64
|
+
path: dist/
|
|
65
|
+
- name: Publish distribution to PyPI
|
|
66
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
67
|
+
with:
|
|
68
|
+
password: ${{secrets.PYPI_API_TOKEN}}
|
|
69
|
+
# github-release:
|
|
70
|
+
# name: >-
|
|
71
|
+
# Sign the Python distribution with Sigstore
|
|
72
|
+
# and upload them to GitHub Release
|
|
73
|
+
# needs:
|
|
74
|
+
# - publish-to-pypi
|
|
75
|
+
# runs-on: ubuntu-latest
|
|
76
|
+
|
|
77
|
+
# permissions:
|
|
78
|
+
# contents: write # IMPORTANT: mandatory for making GitHub Releases
|
|
79
|
+
# id-token: write # IMPORTANT: mandatory for sigstore
|
|
80
|
+
|
|
81
|
+
# steps:
|
|
82
|
+
# - name: Download all the dists
|
|
83
|
+
# uses: actions/download-artifact@v4
|
|
84
|
+
# with:
|
|
85
|
+
# name: python-package-distributions
|
|
86
|
+
# path: dist/
|
|
87
|
+
# - name: Sign the dists with Sigstore
|
|
88
|
+
# uses: sigstore/gh-action-sigstore-python@v3.0.0
|
|
89
|
+
# with:
|
|
90
|
+
# inputs: >-
|
|
91
|
+
# ./dist/*.tar.gz
|
|
92
|
+
# ./dist/*.whl
|
|
93
|
+
# - name: Create GitHub Release
|
|
94
|
+
# env:
|
|
95
|
+
# GITHUB_TOKEN: ${{ github.token }}
|
|
96
|
+
# run: >-
|
|
97
|
+
# gh release create
|
|
98
|
+
# "$GITHUB_REF_NAME"
|
|
99
|
+
# --repo "$GITHUB_REPOSITORY"
|
|
100
|
+
# --notes ""
|
|
101
|
+
# - name: Upload artifact signatures to GitHub Release
|
|
102
|
+
# env:
|
|
103
|
+
# GITHUB_TOKEN: ${{ github.token }}
|
|
104
|
+
# # Upload to GitHub Release using the `gh` CLI.
|
|
105
|
+
# # `dist/` contains the built packages, and the
|
|
106
|
+
# # sigstore-produced signatures and certificates.
|
|
107
|
+
# run: >-
|
|
108
|
+
# gh release upload
|
|
109
|
+
# "$GITHUB_REF_NAME" dist/**
|
|
110
|
+
# --repo "$GITHUB_REPOSITORY"
|
|
111
|
+
|
|
112
|
+
# publish-to-testpypi:
|
|
113
|
+
# name: Publish Python distribution to TestPyPI
|
|
114
|
+
# needs:
|
|
115
|
+
# - build
|
|
116
|
+
# runs-on: ubuntu-latest
|
|
117
|
+
|
|
118
|
+
# environment:
|
|
119
|
+
# name: testpypi
|
|
120
|
+
# url: https://test.pypi.org/project/wandas/
|
|
121
|
+
|
|
122
|
+
# permissions:
|
|
123
|
+
# id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
124
|
+
|
|
125
|
+
# steps:
|
|
126
|
+
# - name: Download all the dists
|
|
127
|
+
# uses: actions/download-artifact@v4
|
|
128
|
+
# with:
|
|
129
|
+
# name: python-package-distributions
|
|
130
|
+
# path: dist/
|
|
131
|
+
# - name: Publish distribution to TestPyPI
|
|
132
|
+
# uses: pypa/gh-action-pypi-publish@release/v1
|
|
133
|
+
# with:
|
|
134
|
+
# password: ${{secrets.TEST_PYPI_API_TOKEN}}
|
|
135
|
+
# repository-url: https://test.pypi.org/legacy/
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
timeout-minutes: 10
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
|
16
|
+
steps:
|
|
17
|
+
- name: チェックアウト
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: uv をインストール
|
|
21
|
+
uses: astral-sh/setup-uv@v5
|
|
22
|
+
with:
|
|
23
|
+
version: "latest"
|
|
24
|
+
python-version: ${{ matrix.python-version }}
|
|
25
|
+
enable-cache: true
|
|
26
|
+
|
|
27
|
+
- name: 依存関係をインストール
|
|
28
|
+
run: uv sync --all-extras --dev
|
|
29
|
+
|
|
30
|
+
- name: フォーマットチェック (ruff)
|
|
31
|
+
run: uv run ruff check .
|
|
32
|
+
|
|
33
|
+
- name: 型チェック (mypy)
|
|
34
|
+
run: uv run mypy wandas tests
|
|
35
|
+
|
|
36
|
+
- name: テスト実行 (pytest)
|
|
37
|
+
run: uv run pytest tests
|
wandas-0.0.4/.gitignore
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
110
|
+
.pdm.toml
|
|
111
|
+
.pdm-python
|
|
112
|
+
.pdm-build/
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# PyCharm
|
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
|
+
#.idea/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
default_stages: [pre-commit]
|
|
2
|
+
|
|
3
|
+
repos:
|
|
4
|
+
# Ruff
|
|
5
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
6
|
+
rev: v0.9.2
|
|
7
|
+
hooks:
|
|
8
|
+
- id: ruff
|
|
9
|
+
name: Ruff check
|
|
10
|
+
description: "Run 'ruff check' for extremely fast Python linting"
|
|
11
|
+
args: [--fix]
|
|
12
|
+
|
|
13
|
+
- id: ruff-format
|
|
14
|
+
name: Ruff format
|
|
15
|
+
description: "Run 'ruff format' for extremely fast Python formatting"
|
|
16
|
+
|
|
17
|
+
# hadolint
|
|
18
|
+
- repo: https://github.com/hadolint/hadolint
|
|
19
|
+
rev: v2.12.0
|
|
20
|
+
hooks:
|
|
21
|
+
- id: hadolint
|
|
22
|
+
name: Lint Dockerfiles
|
|
23
|
+
description: Runs hadolint to lint Dockerfiles
|
|
24
|
+
language: system
|
|
25
|
+
types: ["dockerfile"]
|
|
26
|
+
entry: hadolint
|
|
27
|
+
|
|
28
|
+
# mypy
|
|
29
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
30
|
+
rev: v1.7.0
|
|
31
|
+
hooks:
|
|
32
|
+
- id: mypy
|
|
33
|
+
name: mypy
|
|
34
|
+
description: "Run 'mypy' for Python linting using settings from pyproject.toml"
|
|
35
|
+
entry: mypy
|
|
36
|
+
language: python
|
|
37
|
+
args: [--strict, --ignore-missing-imports]
|
|
38
|
+
require_serial: true
|
|
39
|
+
additional_dependencies: []
|
|
40
|
+
|
|
41
|
+
ci:
|
|
42
|
+
autoupdate_schedule: weekly
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.10
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Python Debugger: Current File",
|
|
9
|
+
"type": "debugpy",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"program": "${file}",
|
|
12
|
+
"console": "integratedTerminal",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
// Disable coverage to ensure breakpoints are enabled during debugging.
|
|
16
|
+
"name": "Python Debugger: Debug Tests",
|
|
17
|
+
"type": "debugpy",
|
|
18
|
+
"request": "launch",
|
|
19
|
+
"purpose": [
|
|
20
|
+
"debug-test"
|
|
21
|
+
],
|
|
22
|
+
"console": "internalConsole",
|
|
23
|
+
"justMyCode": false,
|
|
24
|
+
"env": {
|
|
25
|
+
"PYTEST_ADDOPTS": "--no-cov"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"editor.formatOnSave": true,
|
|
3
|
+
"files.insertFinalNewline": true,
|
|
4
|
+
"files.trimFinalNewlines": true,
|
|
5
|
+
"files.trimTrailingWhitespace": true,
|
|
6
|
+
"files.eol": "\n",
|
|
7
|
+
"breadcrumbs.enabled": true,
|
|
8
|
+
"python.analysis.typeCheckingMode": "basic",
|
|
9
|
+
"python.testing.pytestArgs": [
|
|
10
|
+
"tests",
|
|
11
|
+
"--cov=wandas",
|
|
12
|
+
"--cov-report",
|
|
13
|
+
"xml"
|
|
14
|
+
],
|
|
15
|
+
"python.testing.unittestEnabled": false,
|
|
16
|
+
"python.testing.pytestEnabled": true,
|
|
17
|
+
"python.testing.autoTestDiscoverOnSaveEnabled": true,
|
|
18
|
+
"python.experiments.optInto": [
|
|
19
|
+
"pythonTestAdapter"
|
|
20
|
+
],
|
|
21
|
+
"[python]": {
|
|
22
|
+
"editor.formatOnSave": true,
|
|
23
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
24
|
+
"editor.codeActionsOnSave": {
|
|
25
|
+
"source.organizeImports": "explicit"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"notebook.formatOnSave.enabled": true,
|
|
29
|
+
"notebook.codeActionsOnSave": {
|
|
30
|
+
"notebook.source.fixAll": "explicit",
|
|
31
|
+
"notebook.source.organizeImports": "explicit"
|
|
32
|
+
},
|
|
33
|
+
"mypy-type-checker.args": [
|
|
34
|
+
"--config=pyproject.toml"
|
|
35
|
+
],
|
|
36
|
+
}
|