Skip to content

Commit 6f64b64

Browse files
Merge pull request #586 from adamtheturtle/agent/add-no-defaults-linter
Add no-defaults linting
2 parents ab980a1 + 9a0aef0 commit 6f64b64

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ repos:
289289
- *uv_version
290290
require_serial: true
291291

292+
- id: no-defaults
293+
name: no-defaults
294+
entry: uv run --extra=dev no-defaults
295+
language: python
296+
types_or: [python]
297+
additional_dependencies:
298+
- *uv_version
299+
require_serial: true
300+
292301
- id: doc8
293302
name: doc8
294303
entry: uv run --extra=dev -m doc8

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ optional-dependencies.dev = [
4343
"doccmd==2026.7.19",
4444
"interrogate==1.7.0",
4545
"mypy[faster-cache]==2.3.0",
46+
"no-defaults==1.0.1",
4647
"prek==0.4.11",
4748
"pydocstringformatter==1.0.0",
4849
"pylint[spelling]==4.0.6",
@@ -128,6 +129,7 @@ lint.per-file-ignores."tests/*" = [
128129
lint.unfixable = [
129130
"ERA001",
130131
]
132+
lint.external = [ "NOD" ]
131133
lint.flake8-tidy-imports.banned-api."typing.cast".msg = "typing.cast is banned: use explicit type narrowing or a typed variable instead."
132134
lint.pydocstyle.convention = "google"
133135

@@ -395,3 +397,7 @@ ignore_path = [
395397
[tool.yamlfix]
396398
section_whitelines = 1
397399
whitelines = 1
400+
401+
[tool.no_defaults]
402+
private_only = true
403+
per_file_enforcement."tests/**" = "all"

0 commit comments

Comments
 (0)