Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Initializes basic files to Burr project

elijahbenizzy7a0b68b6bf2f
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 00000000..5415f246
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,32 @@
+# pre-commit hooks require a user to have installed `pre-commit`:
+# $ brew install pre-commit
+# Then install the hooks within the repo:
+# $ cd /PATH/TO/REPO
+# $ pre-commit install
+
+repos:
+- repo: https://github.com/ambv/black
+ rev: 23.11.0
+ hooks:
+ - id: black
+ args: [--line-length=100]
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.5.0
+ hooks:
+ - id: trailing-whitespace
+ # ensures files are either empty or end with a blank line
+ - id: end-of-file-fixer
+ # sorts requirements
+ - id: requirements-txt-fixer
+ # valid python file
+ - id: check-ast
+# isort python package import sorting
+- repo: https://github.com/pycqa/isort
+ rev: '5.12.0'
+ hooks:
+ - id: isort
+ args: ["--profile", "black", "--line-length=100", "--known-local-folder", "tests", "-p", "hamilton"]
+- repo: https://github.com/pycqa/flake8
+ rev: 6.1.0
+ hooks:
+ - id: flake8
diff --git a/.style.yapf b/.style.yapf
new file mode 100644
index 00000000..df98eb3d
--- /dev/null
+++ b/.style.yapf
@@ -0,0 +1,23 @@
+[style]
+based_on_style = google
+
+# max characters per line
+COLUMN_LIMIT = 100
+
+# Put closing brackets on a separate line, dedented, if the bracketed expression can't fit in a single line
+DEDENT_CLOSING_BRACKETS = true
+
+# Place each dictionary entry onto its own line.
+EACH_DICT_ENTRY_ON_SEPARATE_LINE = true
+
+# Join short lines into one line. E.g., single line if statements.
+JOIN_MULTIPLE_LINES = true
+
+# Insert a blank line before a def or class immediately nested within another def or class
+BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
+
+# Split before arguments if the argument list is terminated by a comma.
+SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED = true
+
+# If an argument / parameter list is going to be split, then split before the first argument
+SPLIT_BEFORE_FIRST_ARGUMENT = true
diff --git a/README.md b/README.md
index fccdeb4a..5535fdbc 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,3 @@
-# burr
-Make Hamilton go Burr...
+# Burr
+
+Descripption coming soon...
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 00000000..f20664e7
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,43 @@
+[build-system]
+requires = ["setuptools >= 61.0"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "burr"
+version = "0.0.1"
+dependencies = [
+ "sf-hamilton>=1.47.0"
+]
+requires-python = ">=3.9"
+authors = [
+ {name = "Elijah ben Izzy", email = "[email protected]"},
+ {name = "Stefan Krawczyk", email = "[email protected]"},
+]
+maintainers = [
+ {name = "Elijah ben Izzy", email = "[email protected]"},
+ {name = "Stefan Krawczyk", email = "[email protected]"},
+]
+description = "A state machine for data projects"
+readme = "README.md"
+#license = {file = "LICENSE.txt"}
+keywords = ["mlops", "data", "state-machine", "llmops"]
+classifiers = [
+ "Development Status :: 4 - Beta",
+ "Programming Language :: Python"
+]
+
+[project.optional-dependencies]
+streamlit = [
+ "streamlit"
+]
+
+[tool.poetry.packages]
+include = [
+ { include = "burr", from = "." },
+]
+
+[project.urls]
+Homepage = "https://github.com/dagworks-inc/burr"
+Documentation = "https://github.com/dagworks-inc/burr"
+Repository = "https://github.com/dagworks-inc/burr"
+"Bug Tracker" = "https://github.com/dagworks-inc/burr"
\ No newline at end of file
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 00000000..bc5f20b6
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,18 @@
+[flake8]
+max-line-length = 100
+exclude = build/,.git/,venv/
+ignore =
+ # whitespace before ':'
+ E203,
+ # module level import not at top of file
+ E402,
+ # line too long
+ E501,
+ # line break before binary operator
+ W503,
+ # invalid escape sequence
+ W605
+
+[isort]
+known_first_party=hamilton
+known_local_folder=tests