Skip to content

Commit 36698b1

Browse files
committed
add py.typed
1 parent 45cf57e commit 36698b1

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

.github/workflows/type.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
3939
- name: mypy type checker for `src/ninjar`
4040
run: |
41-
mypy src/ninjar --pretty --strict
41+
mypy

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dist
1010
!LICENSE
1111
!.gitignore
1212

13+
!py.typed
1314
!*.py
1415
!*.md
1516
!pyproject.toml

pyproject.toml

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ classifiers = [
1212
"Programming Language :: Python :: Implementation :: CPython",
1313
"License :: OSI Approved :: BSD License",
1414
"Operating System :: OS Independent",
15+
"Typing :: Typed",
1516
]
1617
dependencies = [
1718
"colorama>=0.4.5",
@@ -26,3 +27,9 @@ version = "1.0.0"
2627

2728
[project.urls]
2829
Repository = "https://github.com/XiangYyang/ninjar.git"
30+
31+
[tool.mypy]
32+
exclude = [".venv"]
33+
files = ["src", "tests"]
34+
pretty = true
35+
strict = true

src/ninjar/py.typed

Whitespace-only changes.

tests/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# -*- coding: utf-8 -*-
2+
# SPDX-License-Identifier: BSD-3-Clause-Clear
3+
# Copyright (c) XiangYang, all rights reserved.
4+
5+
"""
6+
Tests
7+
"""

0 commit comments

Comments
 (0)