Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: add workflow for lints #144

Merged
merged 3 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ jobs:

- name: Run tests
run: make test

- name: Run lints
run: make lint
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test: install | emily-client
&& pnpm --recursive test

lint: install | emily-client
cargo clippy \
cargo clippy -- -D warnings \
&& pnpm --recursive run lint

clean:
Expand Down
2 changes: 1 addition & 1 deletion blocklist-client/src/api/handlers.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::client::client;
use crate::client;
use crate::common::{Error, ErrorResponse};
use crate::config::RiskAnalysisConfig;
use reqwest::Client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub async fn check_address(

let response = client
.get(&api_url)
.header("Token", format!("{}", config.api_key))
.header("Token", config.api_key.to_string())
.send()
.await?;

Expand Down
1 change: 0 additions & 1 deletion blocklist-client/src/client/mod.rs

This file was deleted.

Loading