Repository: plugwise/python-plugwise (language: python)

Issue:
Replace prettier with biome


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
  - Transitioned from Prettier to Biome for code formatting and linting, enhancing overall code quality checks.
  
- **Improvements**
  - Updated pre-commit hook configuration to support the new Biome tool, improving the efficiency of linting processes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->


Discussion / hints:
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->

## Walkthrough

The project has transitioned from using Prettier for code formatting to adopting Biome, an advanced tool for linting and formatting. This change involves updating the pre-commit configuration to point to the new Biome repository and renaming the relevant hook. An additional dependency on a specific version of Biome has also been introduced, enhancing the project's code quality practices.

## Changes

| Files                     | Change Summary                                                                                 |
|---------------------------|-----------------------------------------------------------------------------------------------|
| `.pre-commit-config.yaml` | Replaced Prettier repository with Biome, renamed hook to `biome-lint`, and added dependency on `@biomejs/biome@1.8.3`. |

## Poem

> In fields of code where bunnies play,  
> We’ve hopped to Biome, hip-hip-hooray! 🐇  
> Prettier's gone, but fear not, my friend,  
> With new tools to help us, our joys never end.  
> Linting and formatting, all in one hop,  
> Let’s dance through the code, we’ll never stop! 🌟

<!-- walkthrough_end --><!-- This is an auto-generated comment: raw summary by coderabbit.ai -->

<!--

.pre-commit-config.yaml: ## AI-generated summary of changes

The diff reflects significant changes in the configuration of pre-commit hooks within the `.pre-commit-config.yaml` file. The original repository for the Prettier hook has been replaced with a new repository, `https://github.com/biomejs/pre-commit`, and the hook itself has been renamed from `prettier` to `biome-lint`. This change indicates a shift from using Prettier to a new tool, Biome, which is described as an improved version of Prettier for code formatting and linting.

Additionally, the new hook configuration specifies an additional dependency on `@biomejs/biome@1.8.3`, which is likely required for the new linting functionality. The overall structure of the hooks remains intact, but the focus has shifted to utilizing Biome for code verification and updates, enhancing the capabilities beyond what was previously offered by Prettier.

This change alters the functionality of the pre-commit process, impacting how code formatting and linting are handled in the project.



## Alterations to the declarations of exported or public entities

- `- repo: https://github.com/pre-commit/mirrors-prettier` in `.pre-commit-config.yaml` → `- repo: https://github.com/biomejs/pre-commit` in `.pre-commit-config.yaml`
- `- id: prettier` in `.pre-commit-config.yaml` → `- id: biome-lint` in `.pre-commit-config.yaml`
- `+ additional_dependencies: ["@biomejs/biome@1.8.3"]` in `.pre-commit-config.yaml`

-->

<!-- end of auto-generated comment: raw summary by coderabbit.ai --><!-- This is an auto-generated comment: pr objectives by coderabbit.ai -->

<!--

Title: Replace prettier with biome
Number: 598
User: CoMPaTech

-->

<!-- end of auto-generated comment: pr objectives by coderabbit.ai --><!-- commit_ids_reviewed_start -->

<!-- aeba1acaf7dcb70f107500047741e86e121fe595 -->

<!-- commit_ids_reviewed_end --><!-- tips_start -->

---



Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

<details>
<summary>Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
	- `I pushed a fix in commit <commit_id>.`
	- `Generate unit testing code for this file.`
	- `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
	- `@coderabbitai generate unit testing code for this file.`
	-	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
	- `@coderabbitai generate interesting stats about this repository and render them as a table.`
	- `@coderabbitai show all the console.log statements in this repository.`
	- `@coderabbitai read src/utils.ts and generate unit testing code.`
	- `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
	- `@coderabbitai help me debug CodeRabbit configuration file.`

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (invoked as PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.


Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->
## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=plugwise_python-plugwise&pullRequest=598) **Quality Gate passed**  
Issues  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=plugwise_python-plugwise&pullRequest=598&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=plugwise_python-plugwise&pullRequest=598&issueStatuses=ACCEPTED)

Measures  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=plugwise_python-plugwise&pullRequest=598&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=plugwise_python-plugwise&pullRequest=598&metric=new_coverage&view=list)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=plugwise_python-plugwise&pullRequest=598&metric=new_duplicated_lines_density&view=list)  
  
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=plugwise_python-plugwise&pullRequest=598)


## [Codecov](https://app.codecov.io/gh/plugwise/python-plugwise/pull/598?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=plugwise) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 100.00%. Comparing base [(`8593e1f`)](https://app.codecov.io/gh/plugwise/python-plugwise/commit/8593e1f1cb48487ec215403d6e1c81a7b0869f57?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=plugwise) to head [(`aeba1ac`)](https://app.codecov.io/gh/plugwise/python-plugwise/commit/aeba1acaf7dcb70f107500047741e86e121fe595?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=plugwise).

<details><summary>Additional details and impacted files</summary>


```diff
@@            Coverage Diff            @@
##              main      #598   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines         3318      3318           
=========================================
  Hits          3318      3318           
```

</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/plugwise/python-plugwise/pull/598?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=plugwise).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=plugwise).


Fix patch:
diff --git a/package.json b/package.json
deleted file mode 100644
index f9a944d40..000000000
--- a/package.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-  "dependencies": {
-    "package.json": "^2.0.0",
-    "prettier": "^3.0.3"
-  }
-}


Test patch:
diff --git a/requirements_test.txt b/requirements_test.txt
index 4c6ba10dc..9dbbfefc7 100644
--- a/requirements_test.txt
+++ b/requirements_test.txt
@@ -4,6 +4,4 @@
 pytest-asyncio
 radon==6.0.1
 types-python-dateutil
-# Added for prettier
-nodeenv==1.9.1
 uv