Skip to content

Commit 8b0c143

Browse files
Remove mypy
- Going to replace pyright with basedpyright and use strict checking there.
1 parent 9803552 commit 8b0c143

4 files changed

Lines changed: 1 addition & 123 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ jobs:
3232
path: |
3333
.venv
3434
key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
35-
- name: Restore mypy cache
36-
uses: actions/cache@v4
37-
with:
38-
path: .mypy_cache
39-
key: mypy_cache|${{ hashFiles('pyproject.toml') }}
4035
- name: Restore pre-commit cache
4136
uses: actions/cache@v4
4237
with:
@@ -45,4 +40,4 @@ jobs:
4540
- name: Synchronize project dependencies
4641
run: uv sync --group dev
4742
- name: Run pre-commit checks
48-
run: uv run pre-commit run --show-diff-on-failure --all-files --hook-stage manual
43+
run: uv run pre-commit run --show-diff-on-failure --all-files

.pre-commit-config.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@ repos:
7272
rev: v0.24.3
7373
hooks:
7474
- id: toml-sort-fix
75-
- repo: https://github.com/pre-commit/mirrors-mypy
76-
rev: "v1.18.2"
77-
hooks:
78-
- id: mypy
79-
stages: [pre-push, manual]
80-
name: mypy
81-
additional_dependencies:
82-
# Need pydantic to load the pydantic.mypy plugin
83-
- pydantic>=2.12.0
8475
- repo: https://github.com/astral-sh/uv-pre-commit
8576
# uv version.
8677
rev: 0.8.24

pyproject.toml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dev = [
2222
"ruff>=0.6.9",
2323
"pytest>=8.3.3",
2424
"pytest-cov>=5.0.0",
25-
"mypy>=1.18.2",
2625
"pip-audit>=2.7.3",
2726
"pyright>=1.1.406",
2827
"pytest-md>=0.2.0",
@@ -34,48 +33,6 @@ dev = [
3433
"nox>=2025.5.1",
3534
]
3635

37-
[tool.mypy]
38-
python_version = "3.10"
39-
pretty = true
40-
plugins = [
41-
"pydantic.mypy",
42-
]
43-
# Discover modules that were installed in the virtualenv
44-
python_executable = ".venv/bin/python"
45-
fixed_format_cache = true
46-
ignore_missing_imports = false
47-
follow_imports = "silent"
48-
# Balanced strictness (not “strict = true”); catches many bugs without being overbearing
49-
no_implicit_optional = true
50-
check_untyped_defs = true
51-
warn_unused_ignores = true
52-
warn_redundant_casts = true
53-
warn_return_any = true
54-
warn_no_return = true
55-
strict_equality = true
56-
# Defaults here stay a bit lenient; ratchet up over time if desired
57-
disallow_untyped_defs = false
58-
disallow_incomplete_defs = false
59-
disallow_untyped_calls = false
60-
disallow_any_generics = false
61-
implicit_reexport = true
62-
namespace_packages = true
63-
show_error_codes = true
64-
# Typical project structure
65-
packages = ["pdfrest"] # if using setuptools; or rely on src/ layout
66-
exclude = '(build|dist|\.venv|scripts|examples|docs)'
67-
68-
# Example: tighten src/, loosen tests/
69-
[[tool.mypy.overrides]]
70-
module = ["pdfrest.*"]
71-
disallow_untyped_defs = true
72-
disallow_incomplete_defs = true
73-
74-
[[tool.mypy.overrides]]
75-
module = ["tests.*"]
76-
disallow_untyped_defs = false
77-
allow_redefinition = true
78-
7936
[tool.pyright]
8037
venvPath = "."
8138
venv = ".venv"

uv.lock

Lines changed: 0 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)