Skip to content

Commit

Permalink
build: put formatter and linter configs in the root directory
Browse files Browse the repository at this point in the history
Otherwise, we would have to deal with a custom `--config-path` for every possible formatter on Earth.
It's okay to let them clutter the directory (check out other popular repos!).
Even if they are visible on the GitHub repo, locally they are hidden by your favorite editor.
  • Loading branch information
azzamsa committed Aug 7, 2024
1 parent 235d4af commit 60898be
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fmt-check:
[doc('Lint the codebase')]
lint:
cargo clippy --all-targets --all-features
typos --config configs/typos.toml
typos

[doc('Test the codebase')]
test:
Expand All @@ -65,7 +65,7 @@ _doc-check:

[doc('Prepare release hooks')]
_release-prepare version:
git-cliff --config configs/cliff.toml --output CHANGELOG.md --tag {{ version }}
git-cliff --config .cliff.toml --output CHANGELOG.md --tag {{ version }}
just fmt

[doc('Check dependencies health. Pass `--write` to upgrade dependencies')]
Expand Down

0 comments on commit 60898be

Please sign in to comment.