Skip to content

Commit

Permalink
Update dependencies and config files
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Jan 29, 2025
1 parent 709e12e commit aad2b35
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 41 deletions.
24 changes: 6 additions & 18 deletions .deny.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
# SPDX-FileCopyrightText: The audio-viz authors
# SPDX-License-Identifier: CC0-1.0

[graph]
all-features = true

[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
yanked = "deny"

[licenses]
default = "deny"
unlicensed = "deny"
copyleft = "warn"
allow = [
"Apache-2.0",
"ISC",
"MIT",
"MPL-2.0",
"Unicode-DFS-2016",
]
allow = ["Apache-2.0", "MIT", "MPL-2.0"]

[bans]
multiple-versions = "warn"
wildcards = "allow"
multiple-versions = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
5 changes: 5 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ on:
workflow_dispatch:

env:
# Disable incremental compilation for faster from-scratch builds
CARGO_INCREMENTAL: 0
# Disable debug info to improve cache efficiency
CARGO_PROFILE_TEST_DEBUG: 0
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short

jobs:
run:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ on:
workflow_dispatch:

env:
# Disable incremental compilation for faster from-scratch builds
CARGO_INCREMENTAL: 0
# Disable debug info to improve cache efficiency
CARGO_PROFILE_TEST_DEBUG: 0
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short

Expand Down
41 changes: 22 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
default_stages:
# Prevent that hooks run twice, triggered by both
# the Git commit-msg and the pre-commit hook.
- commit
- pre-commit

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-json
Expand All @@ -25,13 +25,13 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
rev: v9.20.0
hooks:
- id: commitlint
stages:
- commit-msg
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.13.0
rev: v0.17.2
hooks:
- id: markdownlint-cli2
exclude: ^LICENSE\.md$
Expand All @@ -40,12 +40,12 @@ repos:
hooks:
- id: shellcheck
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
args: [--ignore-words=.codespellignore]
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.28.4
rev: 0.31.0
hooks:
- id: check-github-actions
- id: check-github-workflows
Expand All @@ -55,26 +55,29 @@ repos:
- id: fmt
args: [--all, --]
- id: clippy
args:
[
--locked,
--workspace,
--all-features,
--all-targets,
--,
-D,
warnings,
]
args: [--locked, --workspace, --all-features, --all-targets, --, -D, warnings]
# Markdown
# TODO: Remove unmaintained Prettier plugin.
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or:
- markdown
- yaml
# https://reuse.software
# YAML
- repo: https://github.com/google/yamlfmt
rev: v0.15.0
hooks:
- id: yamlfmt
# TOML
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
- id: taplo-lint
# Licensing: https://reuse.software
- repo: https://github.com/fsfe/reuse-tool
rev: v3.0.2
rev: v5.0.2
hooks:
- id: reuse
- repo: local
Expand Down
11 changes: 11 additions & 0 deletions .yamlfmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: The audio-viz authors
# SPDX-License-Identifier: CC0-1.0

formatter:
type: basic
retain_line_breaks_single: true
scan_folded_as_literal: true
trim_trailing_whitespace: true
# TODO: Missing option from Prettier config.
# Enforce double quotes which allow to use escapes.
# singleQuote: false
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2021"
include = ["/src", "/README.md", "/LICENSES"]

[dependencies]
biquad = "0.4.2"
biquad = "0.5.0"

[lints.rust]
# Opt-in for allowed-by-default lints (in alphabetical order)
Expand All @@ -30,7 +30,7 @@ unsafe_code = "warn"
unused = "warn"

[lints.clippy]
pedantic = "warn"
pedantic = { level = "warn", priority = -1 }
clone_on_ref_ptr = "warn"
missing_const_for_fn = "warn"
self_named_module_files = "warn"
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#![allow(rustdoc::invalid_rust_codeblocks)]
// Inevitable for short names.
// TODO: Remove this allowance when option in Cargo.toml works as expected.
#![allow(clippy::similar_names)]
#![doc = include_str!("../README.md")]

mod filter;
Expand Down

0 comments on commit aad2b35

Please sign in to comment.