Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,19 @@ jobs:
command: |
tox -e py313

test_feature_engine_py314:
docker:
- image: cimg/python:3.14.0
working_directory: ~/project
steps:
- checkout:
path: ~/project
- *prepare_tox
- run:
name: Run tests (Python 3.14)
command: |
tox -e py314


# ------------------------
# Quality checks
Expand Down Expand Up @@ -250,6 +263,7 @@ workflows:
- test_feature_engine_py312_pandas230
- test_feature_engine_py312_pandas300
- test_feature_engine_py313
- test_feature_engine_py314
- test_style
- test_docs
- test_type
Expand All @@ -270,6 +284,7 @@ workflows:
- test_feature_engine_py312_pandas230
- test_feature_engine_py312_pandas300
- test_feature_engine_py313
- test_feature_engine_py314
- test_style
- test_docs
- test_type
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]

dynamic = ["version"]
Expand All @@ -50,6 +51,7 @@ tests = [
"flake8>=3.9.2",
"isort>=5.8.0",
"mypy>=0.740",
"tzdata",
]

[project.urls]
Expand Down
19 changes: 8 additions & 11 deletions tests/test_datetime/test_datetime_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,7 @@ def test_extract_features_from_different_timezones():
pd.DataFrame({"time_hour": [7, 8, 9, 14, 15, 16]}),
check_dtype=False,
)
exp_err_msg = (
"Tz-aware datetime.datetime cannot be converted to datetime64 "
"unless utc=True"
)
exp_err_msg = "cannot be converted to datetime64 unless utc=True"
with pytest.raises(ValueError) as errinfo:
assert DatetimeFeatures(
variables="time", features_to_extract=["hour"], utc=False
Expand Down Expand Up @@ -373,13 +370,13 @@ def test_extract_features_from_localized_tz_variables():
tz_df = pd.DataFrame(
{
"date_var": [
"2018-10-28 01:30:00",
"2018-10-28 02:00:00",
"2018-10-28 02:30:00",
"2018-10-28 02:00:00",
"2018-10-28 02:30:00",
"2018-10-28 03:00:00",
"2018-10-28 03:30:00",
"2018-06-15 01:30:00",
"2018-06-15 02:00:00",
"2018-06-15 02:30:00",
"2018-06-15 02:00:00",
"2018-06-15 02:30:00",
"2018-06-15 03:00:00",
"2018-06-15 03:30:00",
]
}
)
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ envlist =
py312-pandas230
py312-pandas300
py313
py314
codecov
docs
stylechecks
Expand Down Expand Up @@ -43,6 +44,10 @@ deps =
deps =
.[tests]

[testenv:py314]
deps =
.[tests]


# -------------------------
# scikit-learn matrix
Expand Down