Skip to content

Commit ccc3a26

Browse files
authored
Merge pull request #273 from plugwise/biome
Biome reinstatement
2 parents fc94f15 + 4f516da commit ccc3a26

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ repos:
5959
hooks:
6060
- id: biome-lint
6161
name: "Verifying/updating code with biome (improved prettier)"
62-
additional_dependencies: ["@biomejs/biome@1.8.3"]
62+
additional_dependencies: ["@biomejs/biome@2.0.4"]
6363
- repo: https://github.com/cdce8p/python-typing-update
6464
rev: v0.7.2
6565
hooks:

scripts/setup_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ case "$arch" in
3131
x86_64) use_arch="linux-x64" ;;
3232
*) echo "Unsupported arch for biome cli version: $arch"; exit 2 ;;
3333
esac
34-
curl -sL "https://github.com/biomejs/biome/releases/download/%40biomejs%2Fbiome%402.0.0/biome-{$use_arch}" -o "${my_path}/tmp/biome"
34+
curl -sL "https://github.com/biomejs/biome/releases/latest/download/biome-${use_arch}" -o "${my_path}/tmp/biome"
3535

3636
# Make biome executable (if necessary)
3737
chmod +x "${my_path}/tmp/biome"

scripts/tests_and_coverage.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "test_and_coverage" ] ; then
6161
fi
6262

6363
if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "linting" ] ; then
64-
# Disabled as per #270
65-
# echo "... biome-ing (prettier) ..."
66-
# biome_format
64+
echo "... biome-ing (prettier) ..."
65+
biome_format
6766

6867
echo "... ruff checking ..."
6968
ruff check plugwise_usb/ tests/
69+
7070
handle_command_error "ruff checking"
7171
echo "... ruff formatting ..."
72+
7273
ruff format plugwise_usb/ tests/
7374
handle_command_error "ruff formatting"
7475

0 commit comments

Comments
 (0)