Skip to content

Commit 92d9c45

Browse files
Fixing types; hopefully for good!
Found this good blog article which seems to explain the exact problems I was having: https://dev.to/whtsky/don-t-forget-py-typed-for-your-typed-python-package-2aa3
1 parent bed8f01 commit 92d9c45

22 files changed

+8
-184
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ repos:
66
exclude: "mkdocs.yml"
77
- id: end-of-file-fixer
88
- id: trailing-whitespace
9-
# Disabling mypy until I can figure out how to exclude the "stubs" directory 🤷‍
10-
# - repo: https://github.com/pre-commit/mirrors-mypy
11-
# rev: '' # Use the sha / tag you want to point at
12-
# hooks:
13-
# - id: mypy
14-
# args: ["--exclude=stubs", "--no-strict-optional", "--ignore-missing-imports"]
9+
- repo: https://github.com/pre-commit/mirrors-mypy
10+
rev: '' # Use the sha / tag you want to point at
11+
hooks:
12+
- id: mypy
1513
- repo: https://github.com/asottile/pyupgrade
1614
rev: v3.3.1
1715
hooks:

latz/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "latz"
22
__description__ = "Tool for finding images. Maybe with location 🤷..."
3-
__version__ = "0.1.3"
3+
__version__ = "0.1.4"
File renamed without changes.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[tool.poetry]
22
name = "latz"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "CLI Program for downloading images. Maybe by location too..."
55
authors = ["Travis Hathaway <travis.j.hathaway@gmail.com>"]
66
license = "GNU v3"
77
readme = "README.md"
88
packages = [
9-
{ include = "latz/**/*.py" },
10-
{ include = "stubs/**/*.pyi" }
9+
{ include = "latz" },
10+
{ include = "latz/py.typed" }
1111
]
1212

1313
[tool.poetry.dependencies]

stubs/latz/cli.pyi

Lines changed: 0 additions & 6 deletions
This file was deleted.

stubs/latz/commands/__init__.pyi

Whitespace-only changes.

stubs/latz/commands/config/__init__.pyi

Whitespace-only changes.

stubs/latz/commands/config/commands.pyi

Lines changed: 0 additions & 10 deletions
This file was deleted.

stubs/latz/commands/config/validators.pyi

Lines changed: 0 additions & 9 deletions
This file was deleted.

stubs/latz/commands/search.pyi

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)