pydantic-fixedwidth 0.2.2__tar.gz → 0.2.3__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.
- {pydantic_fixedwidth-0.2.2/.devcontainer → pydantic_fixedwidth-0.2.3/.devcontainer.example}/devcontainer.json +3 -8
- pydantic_fixedwidth-0.2.3/.devcontainer.example/postStartCommand.sh +3 -0
- pydantic_fixedwidth-0.2.3/.devcontainer.example/updateContentCommand.sh +3 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.github/workflows/ci.yaml +13 -11
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.github/workflows/prepare-release.yaml +4 -4
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.github/workflows/release.yaml +6 -6
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.gitignore +2 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.pre-commit-config.yaml +9 -7
- {pydantic_fixedwidth-0.2.2/.vscode → pydantic_fixedwidth-0.2.3/.vscode.example}/extensions.json +0 -6
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/Makefile +10 -4
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/PKG-INFO +4 -4
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/pyproject.toml +12 -9
- pydantic_fixedwidth-0.2.3/renovate.json +6 -0
- pydantic_fixedwidth-0.2.3/uv.lock +910 -0
- pydantic_fixedwidth-0.2.2/.github/dependabot.yaml +0 -25
- pydantic_fixedwidth-0.2.2/.vscode/settings.json +0 -32
- pydantic_fixedwidth-0.2.2/uv.lock +0 -552
- {pydantic_fixedwidth-0.2.2/.devcontainer → pydantic_fixedwidth-0.2.3/.devcontainer.example}/onCreateCommand.sh +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.editorconfig +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.gitattributes +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.python-version +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/LICENSE +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/README.md +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/pydantic_fixedwidth/__init__.py +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/pydantic_fixedwidth/fixedwidth.py +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/pydantic_fixedwidth/py.typed +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/tests/__init__.py +0 -0
- {pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/tests/test_fixedwidth.py +0 -0
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lasuillard-s/pydantic-fixedwidth",
|
|
3
|
-
"image": "mcr.microsoft.com/devcontainers/base:
|
|
3
|
+
"image": "mcr.microsoft.com/devcontainers/base:trixie",
|
|
4
4
|
"features": {
|
|
5
5
|
"ghcr.io/devcontainers-extra/features/pre-commit:2": {}
|
|
6
6
|
},
|
|
7
7
|
"onCreateCommand": "./.devcontainer/onCreateCommand.sh",
|
|
8
|
-
"
|
|
8
|
+
"postStartCommand": "./.devcontainer/postStartCommand.sh",
|
|
9
|
+
"updateContentCommand": "./.devcontainer/updateContentCommand.sh",
|
|
9
10
|
"customizations": {
|
|
10
11
|
"vscode": {
|
|
11
12
|
"extensions": [
|
|
12
13
|
"ms-python.python",
|
|
13
14
|
"ms-python.vscode-pylance",
|
|
14
|
-
"ldez.ignore-files",
|
|
15
|
-
"redhat.vscode-yaml",
|
|
16
|
-
"tamasfe.even-better-toml",
|
|
17
|
-
"streetsidesoftware.code-spell-checker",
|
|
18
15
|
"EditorConfig.EditorConfig",
|
|
19
|
-
"VisualStudioExptTeam.vscodeintellicode",
|
|
20
16
|
"charliermarsh.ruff",
|
|
21
17
|
"ms-python.mypy-type-checker",
|
|
22
|
-
"njpwerner.autodocstring",
|
|
23
18
|
"ms-toolsai.jupyter",
|
|
24
19
|
"ms-python.debugpy"
|
|
25
20
|
]
|
|
@@ -16,8 +16,8 @@ jobs:
|
|
|
16
16
|
permissions:
|
|
17
17
|
contents: read
|
|
18
18
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
20
|
-
- uses: astral-sh/setup-uv@v7
|
|
19
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
20
|
+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
21
21
|
with:
|
|
22
22
|
version: latest
|
|
23
23
|
enable-cache: true
|
|
@@ -25,12 +25,14 @@ jobs:
|
|
|
25
25
|
- name: Install deps
|
|
26
26
|
run: uv sync
|
|
27
27
|
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
SKIP: pytest
|
|
28
|
+
- name: Lint with Ruff
|
|
29
|
+
run: uv run ruff check .
|
|
31
30
|
|
|
32
|
-
-
|
|
33
|
-
|
|
31
|
+
- name: Format with Ruff
|
|
32
|
+
run: uv run ruff format --check .
|
|
33
|
+
|
|
34
|
+
- name: Type check with Mypy
|
|
35
|
+
run: uv run mypy --show-error-codes --pretty .
|
|
34
36
|
|
|
35
37
|
test:
|
|
36
38
|
name: test (py${{ matrix.python-version }})
|
|
@@ -45,8 +47,8 @@ jobs:
|
|
|
45
47
|
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
46
48
|
|
|
47
49
|
steps:
|
|
48
|
-
- uses: actions/checkout@
|
|
49
|
-
- uses: astral-sh/setup-uv@v7
|
|
50
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
51
|
+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
50
52
|
with:
|
|
51
53
|
version: latest
|
|
52
54
|
enable-cache: true
|
|
@@ -61,7 +63,7 @@ jobs:
|
|
|
61
63
|
run: uv run pytest
|
|
62
64
|
|
|
63
65
|
- name: Upload test results to Codecov
|
|
64
|
-
uses: codecov/codecov-action@
|
|
66
|
+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
|
|
65
67
|
with:
|
|
66
68
|
use_oidc: true
|
|
67
69
|
fail_ci_if_error: false
|
|
@@ -71,7 +73,7 @@ jobs:
|
|
|
71
73
|
python-${{ matrix.python-version }}
|
|
72
74
|
|
|
73
75
|
- name: Upload coverage report
|
|
74
|
-
uses: codecov/codecov-action@
|
|
76
|
+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
|
|
75
77
|
with:
|
|
76
78
|
use_oidc: true
|
|
77
79
|
fail_ci_if_error: false
|
{pydantic_fixedwidth-0.2.2 → pydantic_fixedwidth-0.2.3}/.github/workflows/prepare-release.yaml
RENAMED
|
@@ -22,8 +22,8 @@ jobs:
|
|
|
22
22
|
exit 1
|
|
23
23
|
fi
|
|
24
24
|
|
|
25
|
-
- uses: actions/checkout@
|
|
26
|
-
- uses: astral-sh/setup-uv@v7
|
|
25
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
26
|
+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
27
27
|
with:
|
|
28
28
|
version: latest
|
|
29
29
|
enable-cache: true
|
|
@@ -35,14 +35,14 @@ jobs:
|
|
|
35
35
|
uv version "${tag#v}"
|
|
36
36
|
|
|
37
37
|
- name: Generate GitHub App token
|
|
38
|
-
uses: actions/create-github-app-token@
|
|
38
|
+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
|
|
39
39
|
id: generate-token
|
|
40
40
|
with:
|
|
41
41
|
app-id: ${{ vars.GH_APP_ID }}
|
|
42
42
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
43
43
|
|
|
44
44
|
- name: Create pull request
|
|
45
|
-
uses: peter-evans/create-pull-request@
|
|
45
|
+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
|
|
46
46
|
with:
|
|
47
47
|
token: ${{ steps.generate-token.outputs.token }}
|
|
48
48
|
sign-commits: true
|
|
@@ -14,8 +14,8 @@ jobs:
|
|
|
14
14
|
permissions:
|
|
15
15
|
contents: write
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
18
|
-
- uses: astral-sh/setup-uv@v7
|
|
17
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
18
|
+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
19
19
|
with:
|
|
20
20
|
version: latest
|
|
21
21
|
enable-cache: true
|
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
27
27
|
run: uv build
|
|
28
28
|
|
|
29
29
|
- name: Create release
|
|
30
|
-
uses: softprops/action-gh-release@v2.
|
|
30
|
+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
|
|
31
31
|
with:
|
|
32
32
|
tag_name: ${{ github.event.release.tag_name }}
|
|
33
33
|
generate_release_notes: true
|
|
@@ -37,7 +37,7 @@ jobs:
|
|
|
37
37
|
run: ls -l --all --recursive dist
|
|
38
38
|
|
|
39
39
|
- name: Upload release distributions
|
|
40
|
-
uses: actions/upload-artifact@
|
|
40
|
+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
|
|
41
41
|
with:
|
|
42
42
|
name: release-dists
|
|
43
43
|
path: dist/
|
|
@@ -51,7 +51,7 @@ jobs:
|
|
|
51
51
|
id-token: write
|
|
52
52
|
steps:
|
|
53
53
|
- name: Download release distributions
|
|
54
|
-
uses: actions/download-artifact@
|
|
54
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
55
55
|
with:
|
|
56
56
|
name: release-dists
|
|
57
57
|
path: dist/
|
|
@@ -60,6 +60,6 @@ jobs:
|
|
|
60
60
|
run: ls -l --all --recursive dist
|
|
61
61
|
|
|
62
62
|
- name: Publish release distributions to PyPI
|
|
63
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
63
|
+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
|
|
64
64
|
with:
|
|
65
65
|
skip-existing: true
|
|
@@ -2,6 +2,8 @@ junit.xml
|
|
|
2
2
|
**/*.ipynb
|
|
3
3
|
tmp/
|
|
4
4
|
.tmp/
|
|
5
|
+
.devcontainer/
|
|
6
|
+
.vscode/
|
|
5
7
|
|
|
6
8
|
# Created by https://www.toptal.com/developers/gitignore/api/git,linux,macos,python,windows,visualstudiocode
|
|
7
9
|
# Edit at https://www.toptal.com/developers/gitignore?templates=git,linux,macos,python,windows,visualstudiocode
|
|
@@ -7,15 +7,17 @@ repos:
|
|
|
7
7
|
- id: trailing-whitespace
|
|
8
8
|
- id: end-of-file-fixer
|
|
9
9
|
|
|
10
|
-
- repo: https://github.com/lasuillard/
|
|
11
|
-
rev: v0.
|
|
10
|
+
- repo: https://github.com/lasuillard-s/devobs
|
|
11
|
+
rev: v0.2.1
|
|
12
12
|
hooks:
|
|
13
|
-
- id: check-
|
|
13
|
+
- id: check-file-pair
|
|
14
14
|
args:
|
|
15
|
-
- --
|
|
16
|
-
-
|
|
17
|
-
- --
|
|
18
|
-
-
|
|
15
|
+
- --from=pulumi_extra
|
|
16
|
+
- --to=tests
|
|
17
|
+
- --include=*.py
|
|
18
|
+
- --exclude=errors.py,_*.py
|
|
19
|
+
- --expect={to}/{relative_from}/test_{filename}
|
|
20
|
+
- --create-if-not-exists
|
|
19
21
|
|
|
20
22
|
- repo: local
|
|
21
23
|
hooks:
|
{pydantic_fixedwidth-0.2.2/.vscode → pydantic_fixedwidth-0.2.3/.vscode.example}/extensions.json
RENAMED
|
@@ -2,15 +2,9 @@
|
|
|
2
2
|
"recommendations": [
|
|
3
3
|
"ms-python.python",
|
|
4
4
|
"ms-python.vscode-pylance",
|
|
5
|
-
"ldez.ignore-files",
|
|
6
|
-
"redhat.vscode-yaml",
|
|
7
|
-
"tamasfe.even-better-toml",
|
|
8
|
-
"streetsidesoftware.code-spell-checker",
|
|
9
5
|
"EditorConfig.EditorConfig",
|
|
10
|
-
"VisualStudioExptTeam.vscodeintellicode",
|
|
11
6
|
"charliermarsh.ruff",
|
|
12
7
|
"ms-python.mypy-type-checker",
|
|
13
|
-
"njpwerner.autodocstring",
|
|
14
8
|
"ms-toolsai.jupyter",
|
|
15
9
|
"ms-python.debugpy"
|
|
16
10
|
]
|
|
@@ -20,9 +20,12 @@ help: Makefile ## Show help
|
|
|
20
20
|
install: ## Install deps
|
|
21
21
|
uv python install
|
|
22
22
|
uv sync --frozen
|
|
23
|
-
pre-commit install --install-hooks
|
|
24
23
|
.PHONY: install
|
|
25
24
|
|
|
25
|
+
init: ## Initialize project
|
|
26
|
+
pre-commit install --install-hooks
|
|
27
|
+
.PHONY: init
|
|
28
|
+
|
|
26
29
|
update: ## Update deps and tools
|
|
27
30
|
uv sync --upgrade
|
|
28
31
|
pre-commit autoupdate
|
|
@@ -35,10 +38,13 @@ update: ## Update deps and tools
|
|
|
35
38
|
ci: lint test ## Run CI tasks
|
|
36
39
|
.PHONY: ci
|
|
37
40
|
|
|
38
|
-
|
|
39
|
-
uv run ruff check --fix .
|
|
41
|
+
fmt: ## Run autoformatters
|
|
40
42
|
uv run ruff format .
|
|
41
|
-
.PHONY:
|
|
43
|
+
.PHONY: fmt
|
|
44
|
+
|
|
45
|
+
fix: ## Apply autofixes
|
|
46
|
+
uv run ruff check --fix .
|
|
47
|
+
.PHONY: fix
|
|
42
48
|
|
|
43
49
|
lint: ## Run all linters
|
|
44
50
|
uv run ruff check .
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pydantic-fixedwidth
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Custom Pydantic models for parsing and serializing fixed-width format of data.
|
|
5
|
-
Project-URL: Homepage, https://github.com/lasuillard/pydantic-fixedwidth
|
|
6
|
-
Project-URL: Repository, https://github.com/lasuillard/pydantic-fixedwidth.git
|
|
7
|
-
Project-URL: Issues, https://github.com/lasuillard/pydantic-fixedwidth/issues
|
|
5
|
+
Project-URL: Homepage, https://github.com/lasuillard-s/pydantic-fixedwidth
|
|
6
|
+
Project-URL: Repository, https://github.com/lasuillard-s/pydantic-fixedwidth.git
|
|
7
|
+
Project-URL: Issues, https://github.com/lasuillard-s/pydantic-fixedwidth/issues
|
|
8
8
|
License-Expression: MIT
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
Requires-Python: <4.0,>=3.9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pydantic-fixedwidth"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.3"
|
|
4
4
|
description = "Custom Pydantic models for parsing and serializing fixed-width format of data."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -8,21 +8,24 @@ requires-python = ">=3.9, <4.0"
|
|
|
8
8
|
dependencies = ["pydantic>=2,<3"]
|
|
9
9
|
|
|
10
10
|
[dependency-groups]
|
|
11
|
-
dev = [
|
|
12
|
-
|
|
11
|
+
dev = [
|
|
12
|
+
"mypy~=1.11",
|
|
13
|
+
"ruff~=0.6",
|
|
14
|
+
"coverage~=7.3",
|
|
15
|
+
"pytest-cov>=7,<8",
|
|
16
|
+
"pytest-sugar~=1.0",
|
|
17
|
+
"pytest~=8.0",
|
|
18
|
+
]
|
|
13
19
|
|
|
14
20
|
[project.urls]
|
|
15
|
-
Homepage = "https://github.com/lasuillard/pydantic-fixedwidth"
|
|
16
|
-
Repository = "https://github.com/lasuillard/pydantic-fixedwidth.git"
|
|
17
|
-
Issues = "https://github.com/lasuillard/pydantic-fixedwidth/issues"
|
|
21
|
+
Homepage = "https://github.com/lasuillard-s/pydantic-fixedwidth"
|
|
22
|
+
Repository = "https://github.com/lasuillard-s/pydantic-fixedwidth.git"
|
|
23
|
+
Issues = "https://github.com/lasuillard-s/pydantic-fixedwidth/issues"
|
|
18
24
|
|
|
19
25
|
[build-system]
|
|
20
26
|
requires = ["hatchling"]
|
|
21
27
|
build-backend = "hatchling.build"
|
|
22
28
|
|
|
23
|
-
[tool.uv]
|
|
24
|
-
default-groups = ["dev", "test"]
|
|
25
|
-
|
|
26
29
|
[tool.hatch.build.targets.wheel]
|
|
27
30
|
packages = ["pydantic_fixedwidth"]
|
|
28
31
|
|