Skip to content

Commit 6655473

Browse files
committed
Update prettier pre-commit hook
Though it's deprecated now, and apparently there is no supporter way to run prettier from pre-commit. It also now considers some arrow characters double-width, since Unicode classifies them as emojis; though I don't think it's worth it to fight prettier on it
1 parent 6707890 commit 6655473

File tree

10 files changed

+22
-19
lines changed

10 files changed

+22
-19
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ repos:
138138
args: ['-i', '--global-config', '/dev/null']
139139

140140
- repo: https://github.com/pre-commit/mirrors-prettier
141-
rev: 'v3.0.0-alpha.6'
141+
rev: 'v4.0.0-alpha.8'
142142
hooks:
143143
- id: prettier
144144
name: CSS, JS, YAML and Markdown (no codeblocks) formatting

CODINGSTYLE.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ agda-unimath project.
110110
definition. This contradicts our objective of organizing the library into
111111
compact, reusable components. If a `where` block is deemed necessary, follow
112112
these conventions:
113-
114113
- Opt for `where` blocks over `let` expressions.
115114
- Indent the `where` keyword by two spaces and align their content with the
116115
`where` keyword.
@@ -136,7 +135,6 @@ agda-unimath project.
136135

137136
There are multiple syntaxes for writing lambda expressions in Agda. Generally,
138137
you have the following options:
139-
140138
1. Regular lambda expressions without pattern matching:
141139

142140
```agda
@@ -402,7 +400,6 @@ library:
402400
- In order to improve the readability on the agda-unimath website, we use a
403401
standard line length of 80 characters. There are only a few exceptions that
404402
enable us to have names that are more than 80 characters long:
405-
406403
- Named `module` declarations
407404
- `open import` statements
408405
- Lines consisting of a single, possibly parenthesized (`(){}`), token that is

HOWTO-INSTALL.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ This issue can arise if the `pre-commit` executable gets placed in the
392392
`ls ~/.local/bin | grep pre-commit` to see if the executable is present.
393393

394394
2. **Update your `PATH`**:
395-
396395
- If you're using the bash terminal, open your `.bashrc` file with a text
397396
editor like `nano`:
398397

@@ -409,7 +408,6 @@ This issue can arise if the `pre-commit` executable gets placed in the
409408
- Save the file and close the editor.
410409

411410
3. **Reload your `.bashrc`**:
412-
413411
- Run the following command to apply the changes:
414412

415413
```bash

MIXFIX-OPERATORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ Below, we outline a list of general rules when assigning associativities.
177177
| 16 | Right homotopy whiskering `_·r_` |
178178
| 15 | Parametric multiplicative operators like `_×_`,`_×∗_`, `_∧_`, `_∧∗_`, `_*_`, function composition operators like `_∘_`,`_∘∗_`, `_∘e_`, and `_∘iff_`, concatenation operators like `_∙_` and `_∙h_` |
179179
| 10 | Parametric additive operators like `_+_`, `_∨_`, `_∨∗_`, list concatenation, monadic bind operators for the type checking monad |
180-
| 6 | Parametric relational operators like `_=_`, `_~_`, `_≃_`, `_⇔_`, and `_↔_`, elementhood relations, subtype relations |
181-
| 5 | Directed function type-like formation operators, e.g. `_⇒_`, `_↪_`, `_→∗_`, `_↠_`, `_↪ᵈ_`, and `_⊆_` |
180+
| 6 | Parametric relational operators like `_=_`, `_~_`, `_≃_`, `_⇔_`, and `_↔_`, elementhood relations, subtype relations |
181+
| 5 | Directed function type-like formation operators, e.g. `_⇒_`, `_↪_`, `_→∗_`, `_↠_`, `_↪ᵈ_`, and `_⊆_` |
182182
| 3 | The pairing operators `_,_` and `_,ω_` |
183183
| 0-1 | Reasoning syntaxes |
184184
| -∞ | Function type formation `_→_` |

src/foundation-core/propositions.lagda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ $n$-[types](foundation-core.truncated-types.md).
417417
| [Dependent sum](foundation.dependent-pair-types.md) | `Σ` | `Σ-Prop` |
418418
| [Dependent product](foundation.dependent-function-types.md) | `Π` | `Π-Prop` |
419419
| [Functions](foundation-core.function-types.md) | `` | `` |
420-
| [Logical equivalence](foundation.logical-equivalences.md) | `` | `` |
420+
| [Logical equivalence](foundation.logical-equivalences.md) | `` | `` |
421421
| [Product](foundation-core.cartesian-product-types.md) | `×` | `product-Prop` |
422422
| [Join](synthetic-homotopy-theory.joins-of-types.md) | `*` | `join-Prop` |
423423
| [Exclusive sum](foundation.exclusive-sum.md) | `exclusive-sum` | `exclusive-sum-Prop` |

src/foundation/equivalences.lagda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ open import foundation-core.type-theoretic-principle-of-choice
4949
### Any equivalence is an embedding
5050

5151
We already proved in `foundation-core.equivalences` that equivalences are
52-
embeddings. Here we have `_↪_` available, so we record the map from equivalences
53-
to embeddings.
52+
embeddings. Here we have `_↪_` available, so we record the map from
53+
equivalences to embeddings.
5454

5555
```agda
5656
module _

src/foundation/propositions.lagda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ $n$-[types](foundation-core.truncated-types.md).
116116
| [Dependent sum](foundation.dependent-pair-types.md) | `Σ` | `Σ-Prop` |
117117
| [Dependent product](foundation.dependent-function-types.md) | `Π` | `Π-Prop` |
118118
| [Functions](foundation-core.function-types.md) | `` | `` |
119-
| [Logical equivalence](foundation.logical-equivalences.md) | `` | `` |
119+
| [Logical equivalence](foundation.logical-equivalences.md) | `` | `` |
120120
| [Product](foundation-core.cartesian-product-types.md) | `×` | `product-Prop` |
121121
| [Join](synthetic-homotopy-theory.joins-of-types.md) | `*` | `join-Prop` |
122122
| [Exclusive sum](foundation.exclusive-sum.md) | `exclusive-sum` | `exclusive-sum-Prop` |

theme/css/chrome.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,17 @@ a > .hljs {
158158
align-content: center;
159159
flex-direction: column;
160160

161-
transition: color 0.5s, background-color 0.5s;
161+
transition:
162+
color 0.5s,
163+
background-color 0.5s;
162164
}
163165

164166
.nav-chapters:hover {
165167
text-decoration: none;
166168
background-color: var(--theme-hover);
167-
transition: background-color 0.15s, color 0.15s;
169+
transition:
170+
background-color 0.15s,
171+
color 0.15s;
168172
}
169173

170174
.nav-wrapper {
@@ -240,7 +244,9 @@ pre > .buttons {
240244
cursor: pointer;
241245
visibility: hidden;
242246
opacity: 0;
243-
transition: visibility 0.1s linear, opacity 0.1s linear;
247+
transition:
248+
visibility 0.1s linear,
249+
opacity 0.1s linear;
244250
}
245251
pre:hover > .buttons {
246252
visibility: visible;

theme/css/general.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ h6:target::before {
110110
box-sizing: border-box;
111111
}
112112
.js:not(.sidebar-resizing) .page-wrapper {
113-
transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */
113+
transition:
114+
margin-left 0.3s ease,
115+
transform 0.3s ease; /* Animation: slide away */
114116
}
115117

116118
.content {

theme/css/variables.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
--page-padding: 5px;
66
--content-max-width: 75%;
77
--menu-bar-height: 40px;
8-
--mono-font: Menlo, Source Code Pro, Consolas, Monaco, Lucida Console,
9-
Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New,
10-
monospace;
8+
--mono-font:
9+
Menlo, Source Code Pro, Consolas, Monaco, Lucida Console, Liberation Mono,
10+
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
1111
--code-font-size: 1.3rem;
1212
--pagetoc-fontsize: 0.85em;
1313
}

0 commit comments

Comments
 (0)