Skip to content

Commit

Permalink
fmt and mypy now ignore agents
Browse files Browse the repository at this point in the history
  • Loading branch information
wangpatrick57 committed Dec 25, 2024
1 parent 8ebbc24 commit c1ed611
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions scripts/check_format.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -euxo pipefail

black . --check
isort . --profile black -c
# Ignore agents/ because those are all submodules.
black . --check --exclude agents
isort . --profile black -c --skip agents
7 changes: 4 additions & 3 deletions scripts/format.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -euxo pipefail
set -euo pipefail

black .
isort . --profile black
# Ignore agents/ because those are all submodules.
black . --exclude agents
isort . --profile black --skip agents
3 changes: 2 additions & 1 deletion scripts/mypy.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
mypy --config-file scripts/configs/mypy.ini .
# Ignore agents/ because those are all submodules.
mypy --config-file scripts/configs/mypy.ini . --exclude agents/

0 comments on commit c1ed611

Please sign in to comment.