Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/crate-ci/typos
rev: v1.47.0
rev: v1
hooks:
- id: typos
# empty to do not write fixes
Expand Down Expand Up @@ -67,7 +67,7 @@ repos:
args: ["--print-width=79"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.9
rev: v0.15.20
hooks:
# use black formatting
- id: ruff-format
Expand All @@ -79,13 +79,13 @@ repos:

# it needs to be after formatting hooks because the lines might be changed
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.0
rev: v2.1.0
hooks:
- id: mypy
files: "src/.*"

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.21.0
rev: v2.25.1
hooks:
- id: pyproject-fmt
additional_dependencies: [tox]
Expand Down
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ urls.Source = "https://github.com/python-cachier/cachier"
scripts.cachier = "cachier.__main__:cli"

[tool.setuptools]
include-package-data = true
dynamic.version = { attr = "cachier._version.__version__" }
packages.find.where = [
"src",
] # list of folders that contain the packages (["."] by default)
packages.find.include = [
"cachier*",
] # package names should match these glob patterns (["*"] by default)
packages.find.namespaces = false # to disable scanning PEP 420 namespaces (true by default)
include-package-data = true
dynamic.version = { attr = "cachier._version.__version__" }

# === Linting & Formatting ===
[tool.black]
Expand Down Expand Up @@ -173,8 +173,8 @@ ini_options.testpaths = [
"tests",
]
ini_options.norecursedirs = [
"dist",
"build",
"dist",
]
ini_options.addopts = [
"--color=yes",
Expand All @@ -185,17 +185,17 @@ ini_options.addopts = [
# Note: parallel execution is opt-in via -n/--numprocesses (pytest-xdist)
]
ini_options.markers = [
"mongo: test the MongoDB core",
"asyncio: marks tests as async",
"flaky: tests that are known to be flaky and should be retried",
"maxage: test the max_age functionality",
"memory: test the memory core",
"mongo: test the MongoDB core",
"pickle: test the pickle core",
"redis: test the Redis core",
"sql: test the SQL core",
"s3: test the S3 core",
"maxage: test the max_age functionality",
"asyncio: marks tests as async",
"smoke: fast smoke tests with no external service dependencies",
"flaky: tests that are known to be flaky and should be retried",
"seriallocal: local core tests that should run serially",
"smoke: fast smoke tests with no external service dependencies",
"sql: test the SQL core",
]

[tool.coverage]
Expand All @@ -206,7 +206,6 @@ ini_options.markers = [
# Pickle tests require isolation (handled by conftest.py fixture)
# --- coverage ---
run.branch = true
# dynamic_context = "test_function"
run.omit = [
"**/scripts/**",
"src/cachier/__init__.py",
Expand All @@ -221,3 +220,4 @@ report.exclude_lines = [
"raise NotImplementedError", # Don't complain if tests don't hit defensive assertion code:
]
report.show_missing = true
# dynamic_context = "test_function"
Loading