Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use additional Vale-compatible styles? #1589

Open
sheeeng opened this issue Nov 14, 2024 · 0 comments
Open

How do I use additional Vale-compatible styles? #1589

sheeeng opened this issue Nov 14, 2024 · 0 comments
Labels
question Further information is requested

Comments

@sheeeng
Copy link

sheeeng commented Nov 14, 2024

How do I use additional Vale styles?

For example, Vale-compatible implementation of the Microsoft Writing Style Guide.

{ pkgs, ... }:
{
  languages.python = {
    enable = true;
    venv.enable = true;
    venv.requirements = ./requirements.txt;
  };

  pre-commit.hooks = {
    vale = {
      enable = true;
      package = pkgs.vale;
      always_run = true;
      extraPackages = [
        # pkgs.valeStyles.alex
        # pkgs.valeStyles.google
        # pkgs.valeStyles.joblint
        # pkgs.valeStyles.microsoft
        # pkgs.valeStyles.proselint
        # pkgs.valeStyles.readability
        # pkgs.valeStyles.write-good
      ];
      settings = {
        configPath = "./vale.ini";
      };
    };
  };
}

See https://devenv.sh/community/get-involved/ for how to get in contact with the community.

Feel free to also post a question here.

@sheeeng sheeeng added the question Further information is requested label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant