Skip to content

Commit

Permalink
Fix error caused by prettier
Browse files Browse the repository at this point in the history
Prettier apparently breaks something but it also
reformats the equation labels in an annoying way.
  • Loading branch information
matthew-brett committed Jun 5, 2024
1 parent ab58167 commit 3c59624
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ repos:
args: [--allow-multiple-documents]
- id: check-added-large-files

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
files: \.(md|rst|toml|yml|yaml)
args: [--prose-wrap=preserve]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
hooks:
Expand Down
5 changes: 2 additions & 3 deletions extra/mean_sq_deviations.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,10 @@ Now differentiate with respect to $c$:
$$

\begin{equation}
\frac{\partial SSE_c}{\partial c} = -2 \sum x_i + 2 n c \tag{dSSE_c}
\frac{\partial SSE_c}{\partial c} = -2 \sum x_i + 2 n c \tag{dsse_c}
\end{equation}

$$
(dsse_c)
$$ (dsse_c)
When equation {eq}`dsse_c` has value zero, we can be at a peak (the
gradient is zero, but it's about to become negative) or a trough (the gradient
Expand Down
3 changes: 1 addition & 2 deletions extra/slope_deviations.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ $$
\frac{\partial SSE_s}{\partial s} = -2 \sum y_i x_i + 2 s \sum x_i^2
\end{equation}

$$
(dsse_s)
$$ (dsse_s)
Find the zero(s) for equation {eq}`dsse_s`:
Expand Down

0 comments on commit 3c59624

Please sign in to comment.