Skip to content

Commit b87f6fa

Browse files
committed
chore: fix CI - add yamllint config, fix TOML formatting, add CI badge
1 parent f9df9a8 commit b87f6fa

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

.yamllint-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
extends: default
2+
3+
rules:
4+
line-length:
5+
max: 200 # More reasonable for infrastructure code
6+
comments:
7+
min-spaces-from-content: 1 # Allow single space before comments
8+
document-start: disable # Most project YAML files don't require ---
9+
truthy:
10+
allowed-values: ["true", "false", "yes", "no", "on", "off"] # Allow common GitHub Actions values
11+
12+
# Ignore generated/runtime directories
13+
ignore: |
14+
target/**
15+
storage/**
16+
.coverage/**

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
authors = ["Nautilus Cyberneering <info@nautilus-cyberneering.de>, Mick van Dijke <mick@dutchbits.nl>"]
3-
categories = ["network-programming", "web-programming"]
2+
authors = [ "Nautilus Cyberneering <info@nautilus-cyberneering.de>, Mick van Dijke <mick@dutchbits.nl>" ]
3+
categories = [ "network-programming", "web-programming" ]
44
description = "Common functionality used in all Torrust HTTP servers."
55
documentation = "https://docs.rs/torrust-server-lib"
66
edition = "2024"
77
homepage = "https://torrust.com/"
8-
keywords = ["lib", "server", "torrust"]
8+
keywords = [ "lib", "server", "torrust" ]
99
license = "AGPL-3.0-only"
1010
name = "torrust-server-lib"
1111
publish = true
@@ -15,8 +15,8 @@ rust-version = "1.88"
1515
version = "0.1.0"
1616

1717
[dependencies]
18-
derive_more = { version = "2", features = ["as_ref", "constructor", "display", "from"] }
19-
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] }
18+
derive_more = { version = "2", features = [ "as_ref", "constructor", "display", "from" ] }
19+
tokio = { version = "1", features = [ "macros", "net", "rt-multi-thread", "signal", "sync" ] }
2020
torrust-net-primitives = "0.1.0"
21-
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }
21+
tower-http = { version = "0", features = [ "compression-full", "cors", "propagate-header", "request-id", "trace" ] }
2222
tracing = "0"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Torrust Server Lib
22

3+
[![CI](https://github.com/torrust/torrust-server-lib/actions/workflows/ci.yaml/badge.svg)](https://github.com/torrust/torrust-server-lib/actions/workflows/ci.yaml)
4+
35
Common functionality used in all Torrust HTTP servers.
46

57
## Documentation

0 commit comments

Comments
 (0)