Skip to content

Commit 9fcb191

Browse files
committed
ci: update settings
1 parent a7a80c9 commit 9fcb191

4 files changed

Lines changed: 1259 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 align='center'> <code>is_annotated</code> </h1>
2-
<h2 align="center">Check if an object is an <code>Annotated</code> type.</h2>
2+
<h3 align="center">Check if an object is an <code>Annotated</code> type.</h3>
33

44
This is a micro-package, containing the single function `isannotated` to check
55
if a type hint is an `Annotated` type. `Annotated` objects can't be checked by

pyproject.toml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,21 @@
3232
readme = "README.md"
3333
requires-python = ">=3.9"
3434

35-
[project.optional-dependencies]
36-
dev = ["is_annotated[test]"]
37-
test = [
38-
"optional_dependencies >= 0.3",
39-
"pytest >=6",
40-
"pytest-cov >=3",
41-
"pytest-github-actions-annotate-failures",
42-
"sybil",
43-
]
35+
[dependency-groups]
36+
dev = [
37+
"cz-conventional-gitmoji>=0.6.1",
38+
"ipykernel>=6.29.5",
39+
"pre-commit>=4.0.1",
40+
"uv>=0.6.4",
41+
{ include-group = "test" },
42+
]
43+
test = [
44+
"optional_dependencies >= 0.3",
45+
"pytest >=6",
46+
"pytest-cov >=3",
47+
"pytest-github-actions-annotate-failures",
48+
"sybil",
49+
]
4450

4551
[project.urls]
4652
"Bug Tracker" = "https://github.com/GalacticDynamics/is_annotated/issues"
@@ -67,7 +73,7 @@
6773
filterwarnings = ["error"]
6874
log_cli_level = "INFO"
6975
minversion = "6.0"
70-
testpaths = ["tests/", "src/"]
76+
testpaths = ["src/", "tests/"]
7177
xfail_strict = true
7278

7379

@@ -103,18 +109,18 @@
103109
"PLR09", # Too many <...>
104110
"PLR2004", # Magic value used in comparison
105111
"TD002", # Missing author in TODO
106-
"TD003" # Missing issue link on the line following this TODO
112+
"TD003", # Missing issue link on the line following this TODO
107113
]
108114

109115
[tool.ruff.lint.per-file-ignores]
110116
"noxfile.py" = ["T20"]
111117
"tests/**" = ["ANN", "INP001", "S101", "T20"]
112118

113119
[tool.ruff.lint.isort]
114-
combine-as-imports = true
120+
combine-as-imports = true
115121
extra-standard-library = ["typing_extensions"]
116-
known-first-party = ["optional_dependencies"]
117-
known-local-folder = ["is_annotated"]
122+
known-first-party = ["optional_dependencies"]
123+
known-local-folder = ["is_annotated"]
118124

119125

120126
[tool.pylint]

src/is_annotated/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
__all__ = ["isannotated"]
77

88
from typing import Annotated
9-
from typing_extensions import TypeGuard, _AnnotatedAlias
9+
from typing_extensions import ( # pylint: disable=no-name-in-module
10+
TypeGuard,
11+
_AnnotatedAlias,
12+
)
1013

1114
AnnotationType = type(Annotated[int, "_"])
1215

0 commit comments

Comments
 (0)