Commit graph

2,023 commits

Author SHA1 Message Date
Simon Willison
6373bb3414 Expose current SQLite row to render_cell hook, closes #1300 2022-07-07 09:30:49 -07:00
dependabot[bot]
9f1eb0d4ea
Bump black from 22.1.0 to 22.6.0 (#1763)
Bumps [black](https://github.com/psf/black) from 22.1.0 to 22.6.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.1.0...22.6.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-28 10:40:24 -07:00
M. Nasimul Haque
00e59ec461
Extract facet pieces of table.html into included templates
Thanks, @nsmgr8
2022-06-20 11:05:44 -07:00
Simon Willison
e780b2f5d6
Trying out one-sentence-per-line
As suggested here: https://sive.rs/1s

Markdown and reStructuredText will display this as if it is a single paragraph, even though the sentences themselves are separated by newlines.

This could result in more useful diffs. Trying it out on this page first.
2022-06-20 10:54:23 -07:00
Naveen
2e9751672d
chore: Set permissions for GitHub actions (#1740)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-05-31 12:28:40 -07:00
Simon Willison
8dd816bc76 Applied Black 2022-05-30 15:42:38 -07:00
Simon Willison
adedd85b68
Clarify that request.headers names are converted to lowercase 2022-05-28 18:42:31 -07:00
Simon Willison
b010af7bb8
Updated copyright years in documentation footer 2022-05-20 15:23:09 -07:00
Simon Willison
4446075334 Append warning to the write element, refs #1746 2022-05-20 13:44:23 -07:00
Simon Willison
1d33fd03b3 Switch docs theme to Furo, refs #1746 2022-05-20 13:34:51 -07:00
Simon Willison
1465fea479 sphinx-copybutton for docs, closes #1748 2022-05-20 12:11:28 -07:00
Simon Willison
18a6e05887
Added "follow a tutorial" to getting started docs
Closes #1747
2022-05-20 12:05:33 -07:00
Simon Willison
0e2f6f1f82
datasette-copyable is an example of register_output_renderer 2022-05-18 17:37:46 -07:00
Simon Willison
7d1e004ff6 Fix test I broke in #1744 2022-05-17 13:09:07 -07:00
Simon Willison
b393e164dc
ReST fix 2022-05-17 12:45:28 -07:00
Simon Willison
5555bc8aef
How to run cog, closes #1745 2022-05-17 12:43:44 -07:00
Simon Willison
3508bf7875 --nolock mode to ignore locked files, closes #1744 2022-05-17 12:40:25 -07:00
Simon Willison
a5acfff4bd
Empty Datasette([]) list is no longer required 2022-05-16 17:06:40 -07:00
Simon Willison
280ff372ab ETag support for .db downloads, closes #1739 2022-05-03 07:59:46 -07:00
Simon Willison
d60f163528
Run on push and PR, closes #1737 2022-05-02 16:40:49 -07:00
Simon Willison
c0cbcf2aba Tweaks to test scripts, refs #1737 2022-05-02 16:36:58 -07:00
Simon Willison
847d6b1aac Test wheel against Pyodide, refs #1737, #1733 2022-05-02 16:32:24 -07:00
Simon Willison
943aa2e1f7 Release 0.62a0 0.62a0
Refs #1683, #1701, #1712, #1717, #1718, #1733
2022-05-02 14:38:34 -07:00
Simon Willison
3f00a29141
Clean up compatibility with Pyodide (#1736)
* Optional uvicorn import for Pyodide, refs #1733
* --setting num_sql_threads 0 to disable threading, refs #1735
2022-05-02 13:15:27 -07:00
Simon Willison
a29c127789 Rename to_decimal/from_decimal to decode/encode, refs #1734 2022-05-02 12:44:09 -07:00
Simon Willison
687907aa2b Remove python-baseconv dependency, refs #1733, closes #1734 2022-05-02 12:39:06 -07:00
Simon Willison
7e03394734 Optional uvicorn import for Pyodide, refs #1733 2022-05-02 12:20:14 -07:00
Simon Willison
4afc1afc72
Depend on click-default-group-wheel>=1.2.2
Refs #1733
2022-05-02 12:13:11 -07:00
Simon Willison
94a3171b01
.plugin_config() can return None 2022-04-28 13:29:11 -07:00
Simon Willison
942411ef94 Execute some TableView queries in parallel
Use ?_noparallel=1 to opt out (undocumented, useful for benchmark comparisons)

Refs #1723, #1715
2022-04-26 15:50:02 -07:00
Simon Willison
8a0c38f0b8 Rename database->database_name and table-> table_name, refs #1715 2022-04-26 15:50:02 -07:00
Simon Willison
c101f0efee
datasette-total-page-time example of asgi_wrapper 2022-04-26 15:34:29 -07:00
Simon Willison
579f59dcec Refactor to remove RowTableShared class, closes #1719
Refs #1715
2022-04-25 11:33:35 -07:00
Simon Willison
7463b051cf Cosmetic tweaks after blacken-docs, refs #1718 2022-04-24 09:59:20 -07:00
Simon Willison
289e4cf80a Finished applying blacken-docs, closes #1718 2022-04-24 09:17:59 -07:00
Simon Willison
498e1536f5 One more blacken-docs test, refs #1718 2022-04-24 09:08:56 -07:00
Simon Willison
92b26673d8 Fix blacken-docs errors and warnings, refs #1718 2022-04-24 09:03:14 -07:00
Simon Willison
36573638b0 Apply Black to code examples in documentation, refs #1718
Uses blacken-docs. This has a deliberate error which I hope will fail CI.
2022-04-24 08:50:43 -07:00
Simon Willison
40ef8ebac2
Run tests on pull requests 2022-04-24 07:10:13 -07:00
Simon Willison
e64d14e413 Use type integer for --timeout, refs #1717 2022-04-24 07:09:08 -07:00
Simon Willison
4bd3a30e1e Update cog docs for publish cloudrun, refs #1717 2022-04-24 07:04:11 -07:00
Tim Sherratt
3001e1e394
Add timeout option to Cloudrun build (#1717)
* Add timeout option for build phase
* Make the --timeout setting optional
* Add test for --timeout setting

Thanks, @wragge
2022-04-24 07:03:08 -07:00
Simon Willison
d57c347f35
Ignore Black commits in git blame, refs #1716 2022-04-22 14:58:46 -07:00
Simon Willison
8338c66a57
datasette-geojson is an example of register_output_renderer 2022-04-21 11:05:43 -07:00
Simon Willison
0bc5186b7b Tooltip and commas for byte length display, closes #1712 2022-04-12 11:44:12 -07:00
Simon Willison
143c105f87 Removed rogue print 2022-04-12 11:43:32 -07:00
dependabot[bot]
138e4d9a53
Update click requirement from <8.1.0,>=7.1.1 to >=7.1.1,<8.2.0 (#1694)
Updates the requirements on [click](https://github.com/pallets/click) to permit the latest version.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/7.1.1...8.1.0)

---
updated-dependencies:
- dependency-name: click
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-08 16:05:09 -07:00
dependabot[bot]
247e460e08
Update beautifulsoup4 requirement (#1703)
Updates the requirements on [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/) to permit the latest version.

---
updated-dependencies:
- dependency-name: beautifulsoup4
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-08 15:51:04 -07:00
Simon Willison
90d1be9952 Tilde encoding now encodes space as plus, closes #1701
Refs #1657
2022-04-06 08:55:01 -07:00
Simon Willison
df88d03298
Warn about Cloud Run and bots
Refs #1698
2022-04-02 23:05:10 -07:00