Skip to content

Commit eff3066

Browse files
author
github-actions
committed
fix: Revert type annotations to Optional[X] for Python 3.9 compatibility
- Revert X | None to Optional[X] for Pydantic and Typer compatibility - Add eval-type-backport dependency for Pydantic support - Update ruff config to ignore UP007 rule - Fix mypy errors in tests by adding null checks - All tests now pass
1 parent c064b4c commit eff3066

28 files changed

Lines changed: 1815 additions & 601 deletions

.github/.releaserc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@
1414
"@semantic-release/git"
1515
]
1616
}
17-

.github/actions/setup-python-uv/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ runs:
3232
else
3333
uv sync --group dev
3434
fi
35-

.github/release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- **Raw Input Preservation**: Added RawInput field to Address model to capture original input strings
77
- **Automated Releases**: Reinstated GitHub Actions release workflow with semantic-release for automated versioning and releases
88

9-
## Fixes
9+
## Fixes
1010
- **Pandas Integration**: Fixed validation error handling in pandas integration methods when `errors='coerce'` is used
1111
- **Workflow Issues**: Resolved GitHub Actions workflow failures and cache problems
1212
- **Import Compatibility**: Cleaned up imports for Python 3.9+ compatibility

.pre-commit-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.8.2
12+
hooks:
13+
- id: ruff
14+
args: [--fix]
15+
- id: ruff-format
16+
17+
- repo: https://github.com/pre-commit/mirrors-mypy
18+
rev: v1.13.0
19+
hooks:
20+
- id: mypy
21+
additional_dependencies: [
22+
'pydantic>=2.0.0',
23+
'types-requests',
24+
'typing-extensions'
25+
]
26+
args: [--ignore-missing-imports]

.releaserc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@
1414
"@semantic-release/git"
1515
]
1616
}
17-

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 CMD curl
3636

3737
# Default to serving the FastAPI app; override command for ad-hoc usage
3838
CMD ["uvicorn", "ryandata_address_utils.api:app", "--host", "0.0.0.0", "--port", "8000"]
39-

LICENSE

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-
23-
24-
25-
26-
27-
28-
29-
30-

0 commit comments

Comments
 (0)