Skip to content

Commit

Permalink
make it silently checking files
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Aug 21, 2024
1 parent 76bd6da commit 0900005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codespellit
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function deduce-config() {
# deduce where we have that config
if [ -e ".codespellrc" ]; then
echo .codespellrc
elif grep -q '^\[tool.codespell\]' pyproject.toml; then
elif grep -q '^\[tool.codespell\]' pyproject.toml 2>|/dev/null; then
echo pyproject.toml
elif grep -q '^\[codespell\]' setup.cfg; then
elif grep -q '^\[codespell\]' setup.cfg 2>|/dev/null; then
echo setup.cfg
else
echo "ERROR: Cannot figure out where codespell config is" >&2
Expand Down

0 comments on commit 0900005

Please sign in to comment.