Skip to content

Commit 287ac75

Browse files
dycwweb-flow
andauthored
Update aliases & plugins (#805)
Co-authored-by: github-actions-bot <noreply@github.com>
1 parent 97c6a82 commit 287ac75

File tree

7 files changed

+150
-139
lines changed

7 files changed

+150
-139
lines changed

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ipython/startup.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,11 @@
11931193

11941194
_ = [pydantic, BaseModel]
11951195

1196+
if find_spec("utilities") is not None:
1197+
from utilities.pydantic import ensure_secret, extract_secret
1198+
1199+
_ = [ensure_secret, extract_secret]
1200+
11961201

11971202
if find_spec("pytest") is not None:
11981203
_LOGGER.info("Importing `pytest`...")
@@ -1396,9 +1401,11 @@
13961401
ZERO_DAYS,
13971402
ZERO_TIME,
13981403
HongKong,
1404+
Sentinel,
13991405
Tokyo,
14001406
USCentral,
14011407
USEastern,
1408+
sentinel,
14021409
)
14031410
from utilities.core import (
14041411
CheckUniqueError,
@@ -1463,7 +1470,6 @@
14631470
from utilities.math import ewm_parameters, is_integral, safe_round
14641471
from utilities.os import CPU_COUNT
14651472
from utilities.pathlib import ensure_suffix, get_repo_root, list_dir
1466-
from utilities.pydantic import ensure_secret, extract_secret
14671473
from utilities.pytest import skipif_ci, throttle_test
14681474
from utilities.random import get_state, shuffle
14691475
from utilities.shelve import yield_shelf
@@ -1518,7 +1524,6 @@
15181524
MICROSECOND,
15191525
MILLISECOND,
15201526
MINUTE,
1521-
MINUTE,
15221527
MONTH,
15231528
MaybeIterable,
15241529
NOW_LOCAL,
@@ -1533,6 +1538,7 @@
15331538
SECOND,
15341539
SYSTEM_RANDOM,
15351540
SecretLike,
1541+
Sentinel,
15361542
StrMapping,
15371543
TODAY_LOCAL,
15381544
TODAY_UTC,
@@ -1562,14 +1568,12 @@
15621568
ensure_int,
15631569
ensure_not_none,
15641570
ensure_plain_date_time,
1565-
ensure_secret,
15661571
ensure_str,
15671572
ensure_suffix,
15681573
ensure_zoned_date_time,
15691574
ewm_parameters,
15701575
extract_group,
15711576
extract_groups,
1572-
extract_secret,
15731577
format_compact,
15741578
get_args,
15751579
get_class,
@@ -1613,6 +1617,7 @@
16131617
read_pickle,
16141618
run_in_background,
16151619
safe_round,
1620+
sentinel,
16161621
set_hostname_cmd,
16171622
set_up_logging,
16181623
show,

nvim/lazy-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"gitsigns.nvim": {
5151
"branch": "main",
52-
"commit": "31217271a7314c343606acb4072a94a039a19fb5"
52+
"commit": "9f3c6dd7868bcc116e9c1c1929ce063b978fa519"
5353
},
5454
"grug-far.nvim": {
5555
"branch": "main",
@@ -89,7 +89,7 @@
8989
},
9090
"mason-lspconfig.nvim": {
9191
"branch": "main",
92-
"commit": "ae609525ddf01c153c39305730b1791800ffe4fe"
92+
"commit": "21c2a84ce368e99b18f52ab348c4c02c32c02fcf"
9393
},
9494
"mason-tool-installer.nvim": {
9595
"branch": "main",
@@ -125,7 +125,7 @@
125125
},
126126
"nvim-lspconfig": {
127127
"branch": "master",
128-
"commit": "66fd02ad1c7ea31616d3ca678fa04e6d0b360824"
128+
"commit": "44acfe887d4056f704ccc4f17513ed41c9e2b2e6"
129129
},
130130
"nvim-rip-substitute": {
131131
"branch": "main",
@@ -137,7 +137,7 @@
137137
},
138138
"nvim-tree.lua": {
139139
"branch": "master",
140-
"commit": "037d89e60fb01a6c11a48a19540253b8c72a3c32"
140+
"commit": "1df1960d0e3a26643a4100f64fa03b991b9f4b85"
141141
},
142142
"nvim-treesitter": {
143143
"branch": "master",

nvim/snippets/python.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,10 @@
12471247
"body": "from utilities.constants import MINUTE\n",
12481248
"prefix": "ut-minute"
12491249
},
1250+
"from utilities.constants import sentinel, Sentinel": {
1251+
"body": "from utilities.constants import sentinel, Sentinel\n",
1252+
"prefix": "ut-sentinel"
1253+
},
12501254
"from utilities.contextvars import set_global_breakpoint": {
12511255
"body": "from utilities.contextvars import set_global_breakpoint\n",
12521256
"prefix": "ut-set-global-breakpoint"

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"cachetools>=7.0.1",
1515
"cvxpy>=1.8.1",
1616
"dacite>=1.9.2",
17-
"dycw-utilities[test]>=0.188.30",
17+
"dycw-utilities[test]>=0.191.0",
1818
"frozendict>=2.4.7",
1919
"holoviews>=1.22.1",
2020
"humanize>=4.15.0",
@@ -52,18 +52,18 @@
5252

5353
[project]
5454
authors = [{ email = "d.wan@icloud.com", name = "Derek Wan" }]
55-
dependencies = ["click>=8.3.1", "dycw-utilities>=0.188.30", "libcst>=1.8.6"]
55+
dependencies = ["click>=8.3.1", "dycw-utilities>=0.191.0", "libcst>=1.8.6"]
5656
description = "Dotfiles"
5757
name = "dycw-dotfiles"
5858
readme = "README.md"
5959
requires-python = ">= 3.12"
60-
version = "0.4.21"
60+
version = "0.4.22"
6161

6262
[project.scripts]
6363
dotfiles-cli = "dotfiles._cli:cli"
6464

6565
[project.optional-dependencies]
66-
cli = ["click==8.3.1", "dycw-utilities==0.188.30", "libcst==1.8.6"]
66+
cli = ["click==8.3.1", "dycw-utilities==0.191.0", "libcst==1.8.6"]
6767

6868

6969
[tool]

src/dotfiles/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from __future__ import annotations
22

3-
__version__ = "0.4.21"
3+
__version__ = "0.4.22"

0 commit comments

Comments
 (0)