Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/pre-commit_hooks.yaml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 3.9 is no longer available on GitHub’s runners, so the pre-commit workflow fails.

Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: set up python 3.9
uses: actions/setup-python@v1
- name: set up python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.12

- name: install pre-commit
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
rev: 24.2.0
hooks:
- id: black
language_version: python3.9
language_version: python3.12

- repo: local
hooks:
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# splinter (Supabase Postgres LINTER)

<img src="https://github.com/supabase/splinter/assets/12958657/3683c310-c9f6-4b05-ae3a-c51c03d3ff0f" height="250">
<img src="docs/assets/splinter-elephant.png" height="250">

<p>
<a href=""><img src="https://img.shields.io/badge/postgresql-15+-blue.svg" alt="PostgreSQL version" height="18"></a>
Expand Down Expand Up @@ -57,6 +57,19 @@ git clone https://github.com/supabase/splinter.git
cd splinter
```

### Building the docs locally

The docs use [MkDocs](https://www.mkdocs.org/) with the [Material](https://squidfunk.github.io/mkdocs-material/) theme. To install dependencies and serve the site with live reload:

```sh
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install mkdocs-material
mkdocs serve
```

Then open http://127.0.0.1:8000. Run `mkdocs build` to output static files to `site/`.

## Tests

All lints tests with a true positive example.
Expand Down
Binary file modified docs/assets/favicon.ico
Binary file not shown.
Binary file added docs/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/splinter-elephant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Splinter (Supabase Postgres LINTER)

![Image title](https://github.com/supabase/splinter/assets/12958657/3683c310-c9f6-4b05-ae3a-c51c03d3ff0f){ width="300" }
![Image title](assets/splinter-elephant.png){ width="300" }

This project maintains a set of lints for Supabase projects. It uses SQL queries to identify common database schema issues. Some lints are general purpose for Postgres projects while others are specific to Supabase features, storing their data in Postgres e.g. auth and storage.
4 changes: 2 additions & 2 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ theme:
name: 'material'
features:
- navigation.expand
favicon: 'assets/favicon.ico'
logo: 'assets/favicon.ico'
favicon: 'assets/favicon.png'
logo: 'assets/favicon.png'
homepage: https://supabase.github.io/splinter
palette:
primary: black
Expand Down