Skip to content

Commit fa84359

Browse files
authored
chore: setup prettier (#195)
1 parent 0e365d4 commit fa84359

File tree

28 files changed

+6394
-2772
lines changed

28 files changed

+6394
-2772
lines changed

.changeset/five-turtles-sell.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
version: 2
22
updates:
3-
43
# Maintain dependencies for GitHub Actions
54
- package-ecosystem: "github-actions"
65
directory: "/"

.github/workflows/ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- main
1010

1111
jobs:
12-
1312
LintPython:
1413
name: Python / Lint
1514
runs-on: ubuntu-latest
@@ -46,6 +45,19 @@ jobs:
4645

4746
- uses: codecov/codecov-action@v3
4847

48+
LintJavaScript:
49+
name: JavaScript / Lint
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v3
53+
- uses: pnpm/action-setup@v2
54+
- uses: actions/setup-node@v3
55+
with:
56+
node-version: "18.x"
57+
- run: |
58+
pnpm install
59+
pnpm lint
60+
4961
TypecheckJavaScript:
5062
name: JavaScript / Typecheck
5163
runs-on: ubuntu-latest
@@ -54,7 +66,7 @@ jobs:
5466
- uses: pnpm/action-setup@v2
5567
- uses: actions/setup-node@v3
5668
with:
57-
node-version: '18.x'
69+
node-version: "18.x"
5870
- run: |
5971
pnpm install
6072
pnpm typecheck
@@ -67,7 +79,7 @@ jobs:
6779
- uses: pnpm/action-setup@v2.2.4
6880
- uses: actions/setup-node@v3
6981
with:
70-
node-version: '18.x'
82+
node-version: "18.x"
7183
- run: |
7284
pnpm install
7385
pnpm test -- --run

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- main
77

88
jobs:
9-
109
Release:
1110
# prevents this action from running on forks
1211
if: github.repository == 'manzt/anywidget'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __pycache__/
44
.eggs/*
55

66
.ipynb_checkpoints/
7+
.mypy_cache/
78

89
node_modules/
910

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
- id: mypy
2929
# needed ignores will depend on what is in the environment
3030
# so with a more minimal environment here than the IDE
31-
# we allow "unused" type ignore comments
31+
# we allow "unused" type ignore comments
3232
args: [--no-warn-unused-ignores]
3333
exclude: tests|docs
3434
# packages in the pre-commit env will determine what can be type checked

CITATION.cff

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ authors:
1212
family-names: Manz
1313
email: trevor.j.manz@gmail.com
1414
affiliation: Harvard Medical School
15-
orcid: 'https://orcid.org/0000-0001-7694-5164'
15+
orcid: "https://orcid.org/0000-0001-7694-5164"
1616
identifiers:
1717
- type: doi
1818
value: 10.5281/zenodo.8010549
1919
description: Zenodo
20-
repository-code: 'https://github.com/manzt/anywidget'
21-
url: 'https://anywidget.dev'
20+
repository-code: "https://github.com/manzt/anywidget"
21+
url: "https://anywidget.dev"
2222
abstract: >-
2323
anywidget is a Python library that simplifies the creation
2424
and maintenance of Jupyter Widgets, making them more

anywidget/nbextension/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ define(function () {
44
window.requirejs?.config({
55
map: {
66
"*": {
7-
"anywidget": "nbextensions/anywidget/index",
7+
anywidget: "nbextensions/anywidget/index",
88
},
99
},
1010
});

docs/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"check": "astro check && tsc",
99
"build": "astro build",
1010
"preview": "astro preview",
11-
"astro": "astro",
12-
"format": "prettier --ignore-path=../.gitignore --use-tabs --write ."
11+
"astro": "astro"
1312
},
1413
"dependencies": {
1514
"@algolia/client-search": "^4.13.1",
@@ -33,8 +32,6 @@
3332
"devDependencies": {
3433
"astro": "^2.5.7",
3534
"html-escaper": "^3.0.3",
36-
"prettier": "^2.8.2",
37-
"prettier-plugin-astro": "^0.7.2",
3835
"shiki": "^0.14.1",
3936
"vite": "^4.1.4"
4037
}

docs/scripts/ipynb.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function widgetClientHtml(widgetState) {
140140
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
141141
<script src="https://unpkg.com/@jupyter-widgets/html-manager@*/dist/embed-amd.js"></script>\n
142142
<script type="application/vnd.jupyter.widget-state+json">${JSON.stringify(
143-
widgetState
143+
widgetState,
144144
)}</script>\n`;
145145
}
146146

0 commit comments

Comments
 (0)