Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
terror committed Sep 26, 2024
0 parents commit e77deb0
Show file tree
Hide file tree
Showing 9 changed files with 110 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.egg-info/
/.DS_Store
/dist
__pycache__/
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Pandas Query Generator

**Pandas Query Generator (pqg)** is a tool designed to help users generate synthetic
[pandas](https://pandas.pydata.org/) queries for training machine learning models
that estimate query execution costs or predict cardinality.
11 changes: 11 additions & 0 deletions bin/forbid
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -euo pipefail

which rg

! rg \
--color always \
--ignore-case \
--glob !bin/forbid \
'dbg!|fixme|todo|xxx'
18 changes: 18 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
set dotenv-load

export EDITOR := 'nvim'

default:
just --list

build:
uv build

check:
uv run ruff check

format:
uv run ruff format

run *args:
uv run src {{args}}
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[project]
name = "pandas-query-generator"
version = "0.0.0"
description = "A synthetic pandas query generation tool"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"ruff>=0.6.7",
]

[tool.ruff]
indent-width = 2
line-length = 80

[tool.ruff.format]
docstring-code-format = true
indent-style = "space"
quote-style = "single"
6 changes: 6 additions & 0 deletions src/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def main():
print('Hello from pandas-query-generator!')


if __name__ == '__main__':
main()
38 changes: 38 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e77deb0

Please sign in to comment.