-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
1,539 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
# Run the formatter. | ||
- id: ruff-format | ||
name: ruff-format | ||
description: "Run 'ruff format' for extremely fast Python formatting" | ||
entry: ruff format | ||
language: python | ||
types_or: [python, pyi] | ||
# Run the linter. | ||
# Run the ruff linter and formatter using just command | ||
- id: ruff | ||
name: ruff | ||
description: "Run 'ruff' for extremely fast Python linting" | ||
entry: ruff check | ||
args: [ --fix ] # Enable lint fixes. | ||
language: python | ||
types_or: [python, pyi] | ||
description: "Format Python code using ruff format via just command" | ||
entry: just format | ||
language: system | ||
types_or: [python, pyi] | ||
pass_filenames: false | ||
|
||
# Check for secrets | ||
- id: trufflehog | ||
name: TruffleHog | ||
description: Detect secrets in your data. | ||
entry: bash -c "trufflehog git file://. --since-commit HEAD --only-verified --fail" | ||
language: system | ||
stages: ["commit", "push"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
MB__BATCH_SIZE=250_000 | ||
MB__BACKEND_TYPE=postgres | ||
MB__DATASETS_CONFIG=datasets.toml | ||
|
||
MB__POSTGRES__HOST=matchbox-postgres | ||
MB__POSTGRES__PORT=5432 | ||
MB__POSTGRES__USER=matchbox_user | ||
MB__POSTGRES__PASSWORD=matchbox_password | ||
MB__POSTGRES__DATABASE=matchbox | ||
MB__POSTGRES__DB_SCHEMA=mb | ||
|
||
API__ROOT=http://localhost:8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
MB__BATCH_SIZE=250_000 | ||
MB__BACKEND_TYPE=postgres | ||
MB__DATASETS_CONFIG=datasets.toml | ||
|
||
MB__POSTGRES__HOST=localhost | ||
MB__POSTGRES__PORT=5432 | ||
MB__POSTGRES__USER=matchbox_user | ||
MB__POSTGRES__PASSWORD=matchbox_password | ||
MB__POSTGRES__DATABASE=matchbox | ||
MB__POSTGRES__DB_SCHEMA=mb | ||
|
||
API__ROOT=http://localhost:8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
MB__BATCH_SIZE= | ||
MB__BACKEND_TYPE= | ||
MB__DATASETS_CONFIG= | ||
|
||
MB__POSTGRES__HOST= | ||
MB__POSTGRES__PORT= | ||
MB__POSTGRES__USER= | ||
MB__POSTGRES__PASSWORD= | ||
MB__POSTGRES__DATABASE= | ||
MB__POSTGRES__DB_SCHEMA= | ||
|
||
API__ROOT= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.