Skip to content

".github/" is ignored by default #779

@kachick

Description

@kachick

Please let me know if there is another way. 🙏

Background

The .github/ path will contain many YAML files for configuration. Especially GitHub Actions workflows.
It is basically managed by git, however typos exclude files under the path from files.ignore-hidden = true by default.

> typos --version
typos-cli 1.16.0
> typos -vvv 2>&1 | grep -F .github
[debug] ignoring ./.github: Ignore(IgnoreMatch(Hidden))
> typos --dump-config - | grep ignore-hidden
ignore-hidden = true

As I understand it, if I want to enable typos for the files, I should do one of the following.

  • Add arguments to call typos as typos . .github
  • Put _typos.toml which will disable all other dots again
    [files]
    ignore-hidden = false
    extend-exclude = [".git", '.direnv', '.bundle']

I want to prefer no arguments call of typos, so putting config is okay.
But it always requires editing the extend-exclude option for each GitHub repository.

Feature Requests

One of the following will help me a lot.

  • Exclude .github/ from files.ignore-hidden targets
  • files.extend-exclude will accept ! prefix as .gitignore
  • New option files.extend-include

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions