Skip to content

Commit

Permalink
Cleanup mypy config for codspeed (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: J. Nick Koston <[email protected]>
  • Loading branch information
Dreamsorcerer and bdraco authored Dec 1, 2024
1 parent d6980a7 commit ef6af70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true

[mypy-test_benchmarks]
disable_error_code =
no-any-unimported,
misc

[mypy-Cython.*]
ignore_missing_imports = true

Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ repos:
additional_dependencies:
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest
- pytest_codspeed
- pytest_codspeed==3.0.0
- tomli # requirement of packaging/pep517_backend/
- types-setuptools # requirement of packaging/pep517_backend/
args:
Expand All @@ -130,7 +130,7 @@ repos:
additional_dependencies:
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest
- pytest_codspeed
- pytest_codspeed==3.0.0
- tomli # requirement of packaging/pep517_backend/
- types-setuptools # requirement of packaging/pep517_backend/
args:
Expand All @@ -145,7 +145,7 @@ repos:
additional_dependencies:
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest
- pytest_codspeed
- pytest_codspeed==3.0.0
- tomli # requirement of packaging/pep517_backend/
- types-setuptools # requirement of packaging/pep517_backend/
- types-Pygments
Expand All @@ -162,7 +162,7 @@ repos:
additional_dependencies:
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
- pytest
- pytest_codspeed
- pytest_codspeed==3.0.0
- tomli # requirement of packaging/pep517_backend/
- types-setuptools # requirement of packaging/pep517_backend/
- types-Pygments
Expand Down
2 changes: 1 addition & 1 deletion tests/test_benchmarks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""codspeed benchmarks for propcache."""

from pytest_codspeed import BenchmarkFixture # type: ignore[import-untyped]
from pytest_codspeed import BenchmarkFixture

from propcache import cached_property, under_cached_property

Expand Down

0 comments on commit ef6af70

Please sign in to comment.