Repository navigation
Expand file tree
/
Copy path.dev-framework.example.yml
More file actions
74 lines (66 loc) · 4.47 KB
/
Copy path.dev-framework.example.yml
File metadata and controls
74 lines (66 loc) · 4.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# .dev-framework.yml — per-project configuration for the dev-framework plugin.
#
# Copy this to a repository root as `.dev-framework.yml` (or run `df init`). Its presence
# activates the framework for any Copilot CLI, Claude Code, or Codex CLI session. Every
# key is OPTIONAL — blank values are auto-detected. Commit it to share identical
# enforcement with your team, whichever CLI each member uses.
#
# Parsed as simple flat `key: value` lines (not full YAML). Quote values if needed.
# Per-session override of `profile` (and activation) is also possible via the
# DEV_FRAMEWORK env var, e.g. `DEV_FRAMEWORK=strict copilot` / `DEV_FRAMEWORK=strict
# claude` / `DEV_FRAMEWORK=strict codex`, or the `df` wrapper.
#
# Full reference (grammar, every key, defaults, examples): see CONFIGURATION.md
# --- Intensity profile -----------------------------------------------------
# off : dormant (no rules applied, no hooks fire)
# advisory : formatting/lint/review feedback inline, but NOTHING blocks; protected-path
# edits are only warned about
# standard : + completion gate runs type-check & tests and BLOCKS finishing while red;
# protected-path edits are denied
# strict : + lint of changed files must also pass at the gate
profile: standard
# --- Commands (blank = auto-detect) ----------------------------------------
# {file} -> the edited file (format/lint); {files} -> changed files (test_changed)
# Auto-detection covers many ecosystems (JS/TS, Python, Go, Rust, Ruby, Java/Kotlin,
# PHP, C#, Swift, C/C++, Elixir, Scala, Dart, shell, Terraform, Lua, Nix, ...) and only
# runs tools that are installed. It also prefers your project's own task runners
# (Makefile/justfile/npm scripts) and pre-commit when present.
test: # e.g. npm test | pytest -q | go test ./... | cargo test
typecheck: # e.g. tsc --noEmit | mypy . | pyright
format: # global formatter; {file} substituted (blank = auto per file)
lint: # global linter; {file} substituted (blank = auto per file)
# Per-language overrides (win over the generic format/lint above and over auto-detect).
# Use the file extension as the suffix. Examples:
# format.py: ruff format {file}
# lint.py: ruff check {file}
# format.go: gofumpt -w {file}
# lint.rb: rubocop {file}
# pre-commit: if a .pre-commit-config.yaml exists and pre-commit is installed, it is used
# for per-file format+lint automatically. Set to off to ignore it.
precommit: auto # auto | off
# --- Live (per-edit) enforcement -------------------------------------------
format_on_edit: true # auto-format each file the agent writes
lint_on_edit: true # lint each edited file and feed violations back
# --- Completion gate (agentStop on Copilot CLI, Stop on Claude Code/Codex CLI) ---
gate_run_typecheck: true
gate_run_tests: true
gate_skip_unchanged: true # don't run the gate if no files changed this session
gate_scope: all # all | changed
test_changed: # used when gate_scope: changed, e.g. "pytest {files}"
gate_lint_changed: # blank = profile default (strict only); true/false to force
gate_timeout: # seconds per gate command (requires the `timeout` tool)
gate_max_blocks: 3 # after N blocks, stand down to avoid trapping the session
gate_block_on_failure: # blank = profile default; true/false to force
# --- Protected paths (preToolUse / PreToolUse guardrail) -------------------
protect_off: false # true disables path protection entirely
protect_mode: # blank = profile default (warn in advisory, else deny)
protect: # space-separated globs; blank = sensible defaults:
# lockfiles, .env, **/vendor/**, **/node_modules/**,
# **/dist/**, **/build/**, **/generated/**, .git/** ...
# --- Misc ------------------------------------------------------------------
host: # copilot | claude | codex — CLI `df` launches by default
# here. Only affects `df`; the hooks work under whichever
# CLI actually runs. Overridden by DF_HOST and by
# `df claude` / `df copilot` / `df codex`.
exclude: # globs to skip for format/lint, e.g. **/migrations/**
style_guide: # path (relative to repo root) to a style guide to follow