Skip to content

Commit 5749cbb

Browse files
authored
Format docs with deno fmt (#176)
1 parent f832176 commit 5749cbb

File tree

11 files changed

+475
-281
lines changed

11 files changed

+475
-281
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "Python 3.11",
3-
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
4-
"postCreateCommand": "pipx install hatch",
5-
"postStartCommand": "hatch shell"
2+
"name": "Python 3.11",
3+
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
4+
"postCreateCommand": "pipx install hatch",
5+
"postStartCommand": "hatch shell"
66
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Fixes #___
99
## Checklist
1010

1111
- [ ] **Clear PR title** (used for generating release notes).
12-
- Prefer using prefixes like `fix:` or `feat:` to help organize auto-generated notes.
12+
- Prefer using prefixes like `fix:` or `feat:` to help organize auto-generated
13+
notes.
1314
- [ ] **Unit tests** added or updated.
1415
- [ ] **Documentation** added or updated.

.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
- package-ecosystem: "github-actions"
54
directory: "/"
65
schedule:

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
runs-on: ubuntu-latest
4040
if: startsWith(github.ref, 'refs/tags')
4141
permissions:
42-
id-token: write
43-
contents: read
42+
id-token: write
43+
contents: read
4444
steps:
4545
- uses: actions/checkout@v4
4646
- uses: astral-sh/setup-uv@v5

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/configure-pages@v4
3838
- uses: actions/upload-pages-artifact@v3
3939
with:
40-
path: './docs/_build/html'
40+
path: "./docs/_build/html"
4141
- name: Deploy to GitHub Pages
4242
id: deployment
4343
uses: actions/deploy-pages@v4

README.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# higlass-python 🔎
22

33
A fresh Python library for [`higlass`](https://github.com/higlass/higlass) built
4-
on top of:
5-
* [`higlass-schema`](https://github.com/higlass/higlass-schema): Pydantic models for HiGlass.
6-
* [`higlass-widget`](https://github.com/higlass/higlass-widget): A cross-platform [AnyWidget](https://github.com/manzt/anywidget) for Jupyter environments.
4+
on top of [`higlass-schema`](https://github.com/higlass/higlass-schema) and
5+
[anyiwdget](https://github.com/manzt/anywidget).
76

87
[![License](https://img.shields.io/pypi/l/higlass-python.svg?color=green)](https://github.com/higlass/higlass-python/raw/main/LICENSE)
98
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/higlass/higlass-python/blob/main/examples/Examples.ipynb)
@@ -51,10 +50,11 @@ To learn more about the new API, check out the
5150

5251
## Upgrade Guide
5352

54-
**higlass-python** v1.0 is a total rewrite of our prior
55-
implementation, aimed to offer a more ergonomic and flexible API. While this
56-
might present challenges when upgrading existing code, we've prepared
57-
[documentation](http://docs-python.higlass.io/) to guide you through the new API usage.
53+
**higlass-python** v1.0 is a total rewrite of our prior implementation, aimed to
54+
offer a more ergonomic and flexible API. While this might present challenges
55+
when upgrading existing code, we've prepared
56+
[documentation](http://docs-python.higlass.io/) to guide you through the new API
57+
usage.
5858

5959
If you find a missing feature, please open an issue – we're committed to
6060
supporting your use cases with the new API.
@@ -76,13 +76,13 @@ and understanding are greatly appreciated.
7676

7777
All commands are run from the root of the project, from a terminal:
7878

79-
| Command | Action |
80-
|---------|--------|
81-
| `uv run ruff check --fix && uv run ruff format` | Lint and apply formatting |
82-
| `uv run check` | Check linting rules |
83-
| `uv run ruff format --check` | Check formatting |
84-
| `uv run pytest` | Run unit tests |
85-
| `uv run docs/build.py` | Build the documentation in `docs/_build/html` |
79+
| Command | Action |
80+
| ----------------------------------------------- | --------------------------------------------- |
81+
| `uv run ruff check --fix && uv run ruff format` | Lint and apply formatting |
82+
| `uv run check` | Check linting rules |
83+
| `uv run ruff format --check` | Check formatting |
84+
| `uv run pytest` | Run unit tests |
85+
| `uv run docs/build.py` | Build the documentation in `docs/_build/html` |
8686

8787
This table now includes only the UV-related commands, with each command in the
8888
left column and its corresponding action in the right column. The formatting is
@@ -92,7 +92,8 @@ Our CI enforces formatting, linting, and tests.
9292

9393
## Changelog
9494

95-
Check the [GitHub Releases](https://github.com/higlass/higlass-python/releases) for a detailed changelog.
95+
Check the [GitHub Releases](https://github.com/higlass/higlass-python/releases)
96+
for a detailed changelog.
9697

9798
## Release
9899

@@ -101,8 +102,11 @@ Releases are managed via the GitHub UI.
101102
[Draft a new release](https://github.com/higlass/higlass-python/releases/new):
102103

103104
1. **Create a tag**
104-
- Click _"Choose a tag"_, then **type a new tag** in the format `v[major].[minor].[patch]` to create it.
105-
- _Note_: The UI is not obvious about this. You can create a tag here, not just select one. Tag creation triggers a [workflow](.github/workflows/ci.yml) to publish to PyPI.
105+
- Click _"Choose a tag"_, then **type a new tag** in the format
106+
`v[major].[minor].[patch]` to create it.
107+
- _Note_: The UI is not obvious about this. You can create a tag here, not
108+
just select one. Tag creation triggers a
109+
[workflow](.github/workflows/ci.yml) to publish to PyPI.
106110

107111
2. **Generate release notes**
108112
- Click _"Generate Release Notes"_ to auto-summarize changes from merged PRs.

deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
"rules": {
99
"exclude": ["prefer-const"]
1010
}
11+
},
12+
"fmt": {
13+
"exclude": ["examples"]
1114
}
1215
}

docs/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# HiGlass Docs
22

3-
Documentation for all HiGlass software ([viewer][hgv], [app][hga], [server][hgs], [docker][hgd])
3+
Documentation for all HiGlass software ([viewer][hgv], [app][hga],
4+
[server][hgs], [docker][hgd])
45

5-
Simple edits can be made in GitHub. For anything more extensive, build and preview it locally:
6+
Simple edits can be made in GitHub. For anything more extensive, build and
7+
preview it locally:
68

79
```
810
uv run build.py
@@ -11,7 +13,8 @@ uv run python -m http.server 8000 --directory _build/html
1113

1214
Then open your browser to `http://localhost:8000`.
1315

14-
Docs are built and deployed via GitHub Actions via a [workflow](.github/workflows/docs.yml).
16+
Docs are built and deployed via GitHub Actions via a
17+
[workflow](.github/workflows/docs.yml).
1518

1619
[hga]: https://github.com/higlass/higlass-app
1720
[hgd]: https://github.com/higlass/higlass-docker

0 commit comments

Comments
 (0)