diff --git a/.gitignore b/.gitignore index 0cbd9bc..5ab191d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ env_vars.sh .venv/ secrets/ -*.db \ No newline at end of file +*.db diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e1325cc..9baf5c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-toml @@ -12,12 +12,12 @@ repos: - id: trailing-whitespace - repo: https://gitlab.com/bmares/check-json5 - rev: v1.0.0 + rev: v1.0.1 hooks: - id: check-json5 - repo: https://github.com/doublify/pre-commit-rust - rev: master + rev: v1.0 hooks: - id: fmt - id: cargo-check diff --git a/.vscode/launch.json b/.vscode/launch.json index b5fa7a1..ddbb264 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -42,4 +42,4 @@ "cwd": "${workspaceFolder}" } ] -} \ No newline at end of file +} diff --git a/README.md b/README.md index 1afaddc..33435fe 100644 --- a/README.md +++ b/README.md @@ -138,5 +138,3 @@ Contributions are welcome! Feel free to submit a pull request for new features, # License This project is licensed under Apache-2.0. - - diff --git a/db/creation.sql b/db/creation.sql index 510fdc9..449e299 100644 --- a/db/creation.sql +++ b/db/creation.sql @@ -3,4 +3,4 @@ CREATE TABLE IF NOT EXISTS services ( name text NOT NULL UNIQUE, enable boolean, creation_time DATETIME DEFAULT CURRENT_TIMESTAMP -); \ No newline at end of file +); diff --git a/src/milk_price.rs b/src/milk_price.rs index 8ac3844..57001a9 100644 --- a/src/milk_price.rs +++ b/src/milk_price.rs @@ -91,7 +91,7 @@ pub async fn price_periodically_checker_thread(url: &str, sleep_interval: Durati #[cfg(test)] mod tests { use super::*; - + #[tokio::test] async fn test_get_price_success() {