Skip to content

Commit 4dd7038

Browse files
fmt
1 parent 5ba130a commit 4dd7038

3 files changed

Lines changed: 4 additions & 41 deletions

File tree

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,7 @@ cargo test --verbose --all-features
237237

238238
#### Formatting
239239
```bash
240-
# Check formatting
241-
cargo fmt --all -- --check
242-
243-
# Format code
244240
cargo fmt --all
245-
```
246241

247-
#### Linting
248-
```bash
249242
cargo clippy --all-targets --all-features -- -D warnings
250-
```
243+
```

cloudcheck/providers/gocache.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,9 @@
55
class Gocache(BaseProvider):
66
tags: List[str] = ["cdn"]
77
short_description: str = "GoCache"
8-
long_description: str = (
9-
"A Brazilian content delivery network provider offering CDN services."
10-
)
8+
long_description: str = "A Brazilian content delivery network provider offering CDN services."
119

1210
_ips_url = "https://gocache.com.br/ips"
13-
cidrs: List[str] = [
14-
"52.67.255.165/32",
15-
"170.82.175.0/24",
16-
"187.16.245.192/29",
17-
"200.189.173.48/28",
18-
"200.98.28.70/32",
19-
"187.85.159.176/29",
20-
"170.84.29.208/29",
21-
"34.95.168.58/32",
22-
"140.82.27.226/32",
23-
"45.77.97.241/32",
24-
"207.246.123.237/32",
25-
"207.148.26.195/32",
26-
"186.211.161.0/29",
27-
"34.95.213.225/32",
28-
"34.95.209.169/32",
29-
"35.247.222.78/32",
30-
"34.95.253.129/32",
31-
"34.95.148.131/32",
32-
"34.95.164.249/32",
33-
"129.159.48.87/32",
34-
"200.25.56.64/28",
35-
"186.211.188.192/28",
36-
"200.25.49.64/26",
37-
"150.230.84.126/32",
38-
"144.22.216.139/32",
39-
"170.82.172.0/22",
40-
]
4111

4212
def fetch_cidrs(self):
4313
response = self.request(self._ips_url)

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ mod tests {
6969
path.push("debug");
7070
path.push("cloudcheck");
7171
let bin_path = path.to_string_lossy().to_string();
72-
72+
7373
if !std::path::Path::new(&bin_path).exists() {
7474
let status = Command::new("cargo")
7575
.args(["build", "--bin", "cloudcheck"])
7676
.status()
7777
.expect("Failed to run cargo build");
7878
assert!(status.success(), "Failed to build cloudcheck binary");
7979
}
80-
80+
8181
bin_path
8282
});
8383
let mut cmd = Command::new(bin_path);

0 commit comments

Comments
 (0)