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.

Fixes up pre-commit config file -- reformatting/prep for UI

elijahbenizzy9b5229592680
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5415f246..462d0e04 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,29 +4,49 @@
# $ cd /PATH/TO/REPO
# $ pre-commit install
+exclude: '^telemetry/ui'
repos:
-- repo: https://github.com/ambv/black
+ - 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
+ - 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
+ - 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
+ - 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
+ - id: flake8
+ - repo: local
+ # This is a bit of a hack, but its the easiest way to get it to all run together
+ # https://stackoverflow.com/questions/64001471/pylint-with-pre-commit-and-esllint-with-husky
+ hooks:
+ - id: frontend-lint-staged
+ name: frontend-lint-staged
+ language: system
+ entry: npx --prefix telemetry/ui lint-staged
+ pass_filenames: false
+ always_run: true