Skip to content

Commit db19ead

Browse files
refactor(pre-commit): Do not build parsec during check
1 parent 686cbc5 commit db19ead

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,31 +138,31 @@ repos:
138138
#
139139
# Fortunately Ruff is (as cool kids say) blazingly fast, so it's no big
140140
# deal to check everything on each run.
141-
entry: uv --directory ./server run ruff check --fix "./parsec" "./tests" "../docs" "../make.py" "../misc"
141+
entry: uv --directory ./server run --only-dev ruff check --fix "./parsec" "./tests" "../docs" "../make.py" "../misc"
142142
require_serial: true
143143
pass_filenames: false
144144
language: system
145145
types_or: [python, pyi]
146146

147147
- id: ruff-format
148148
name: ruff format (using `uv`)
149-
entry: uv --project ./server run ruff format
149+
entry: uv --project ./server run --only-dev ruff format
150150
require_serial: true
151151
language: system
152152
types_or: [python, pyi]
153153
args: [--config=server/pyproject.toml]
154154

155155
- id: pyright
156156
name: pyright (using `uv`)
157-
entry: uv --project ./server run pyright
157+
entry: uv --project ./server run --only-dev pyright
158158
require_serial: true
159159
language: system
160160
types_or: [python, pyi]
161161
args: [--project=server/]
162162

163163
- id: deptry
164164
name: deptry (using `uv`)
165-
entry: uv --project ./server run deptry server --config=server/pyproject.toml
165+
entry: uv --project ./server run --only-dev deptry server --config=server/pyproject.toml
166166
files: ^server/
167167
types_or: [python, pyproj]
168168
pass_filenames: false # deptry expects only the root directory to scan
@@ -171,7 +171,7 @@ repos:
171171

172172
- id: sqlfluff
173173
name: SQLFluff (using `uv`)
174-
entry: uv --project ./server run ./misc/lint_sql.py --fix
174+
entry: uv --project ./server run --only-dev ./misc/lint_sql.py --fix
175175
types_or: [sql]
176176
files: |
177177
(?x)^(
@@ -184,7 +184,7 @@ repos:
184184

185185
- id: sqlfluff-in-python
186186
name: SQLFluff in Python server components (using `uv`)
187-
entry: uv --project ./server run ./misc/lint_sql.py --non-sql-file-print-fix
187+
entry: uv --project ./server run --only-dev ./misc/lint_sql.py --non-sql-file-print-fix
188188
types_or: [python]
189189
files: ^(server/parsec/components/postgresql/)
190190
# TODO: currently SQL embedded in Python server code is dirty, so we ignore it
@@ -211,7 +211,7 @@ repos:
211211
# - powrap is called via "make wrap" (see ./docs/Makefile)
212212
- id: powrap
213213
name: powrap (using `uv`)
214-
entry: uv --directory ./docs run make wrap
214+
entry: uv --directory ./docs run --only-dev make wrap
215215
pass_filenames: false
216216
types: [pofile]
217217
require_serial: true

0 commit comments

Comments
 (0)