Skip to content

Commit d6dec62

Browse files
committed
reverts unwanted pyproject changes
1 parent 4a0c1e4 commit d6dec62

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ format-rust:
1818
cd rust && cargo clippy --tests --fix --allow-dirty -- -D warnings
1919

2020
dev:
21-
poetry install --only main --only test --only typing --only build
21+
poetry install --only main --only test --only typing --only build --only lint
2222
poetry run maturin develop
2323

2424
lint:
2525
poetry run mypy
26-
pre-commit run --all-files
26+
poetry run pre-commit run --all-files
2727

2828
test:
2929
PENDULUM_EXTENSIONS=0 poetry run pytest -q tests

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ classifiers = [
2020
dependencies = [
2121
"python-dateutil>=2.6",
2222
"tzdata>=2020.1",
23-
"cffi>=1.17",
2423
]
2524

2625
[project.optional-dependencies]
@@ -58,24 +57,25 @@ types-pytz = ">=2022.7.1.2"
5857
babel = "^2.10.3"
5958
cleo = { version = "^2.0.1", python = ">=3.8,<4.0" }
6059
tox = "^4.0.0"
61-
ruff = "^0.7.3"
6260

6361
[tool.poetry.group.benchmark.dependencies]
64-
pytest-codspeed = "^1.2.2"
62+
pytest-codspeed = "^3.0.0"
6563

6664
[tool.poetry.group.build.dependencies]
6765
maturin = ">=1.0,<2.0"
6866

6967
[tool.maturin]
7068
module-name = "pendulum._pendulum"
69+
features = ["pyo3/extension-module"]
70+
python-packages = ["pendulum"]
7171

7272
[tool.ruff]
7373
fix = true
7474
unfixable = [
7575
"ERA", # do not autoremove commented out code
7676
]
7777
target-version = "py39"
78-
line-length = 100
78+
line-length = 88
7979
extend-select = [
8080
"B", # flake8-bugbear
8181
"C4", # flake8-comprehensions

src/pendulum/duration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def __truediv__(self, other: int | float | timedelta) -> Self | float:
445445

446446
def __mod__(self, other: timedelta) -> Self:
447447
if isinstance(other, timedelta):
448-
r = self._to_microseconds() % other._to_microseconds() # type: ignore[attr-defined]
448+
r = self._to_microseconds() % other._to_microseconds() # type: ignore[attr-defined] # noqa: E501
449449

450450
return self.__class__(0, 0, r)
451451

src/pendulum/parsing/iso8601.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
# Time (optional) # noqa: ERA001
4545
"(?P<time>" r" (?P<timesep>[T\ ])?" # Separator (T or space)
4646
# HH:mm:ss (optional mm and ss)
47-
r" (?P<hour>\d{1,2})(?P<minsep>:)?(?P<minute>\d{1,2})?(?P<secsep>:)?(?P<second>\d{1,2})?"
47+
r" (?P<hour>\d{1,2})(?P<minsep>:)?(?P<minute>\d{1,2})?(?P<secsep>:)?(?P<second>\d{1,2})?" # noqa: E501
4848
# Subsecond part (optional)
4949
" (?P<subsecondsection>"
5050
" (?:[.,])" # Subsecond separator (optional)

0 commit comments

Comments
 (0)