Skip to main content

doc8 linter for frc-docs

Project description

ohnoyoudidnt

ci Code style: black

ohnoyoudidnt is a doc8 sphinx linter intended for use by frc-docs. Its an expansion to the normal doc8 linter with custom checks intended to follow the frc-docs styleguide

Project created by TheTripleV

Usage

Manual

  1. Ensure doc8 is installed.
  2. Install ohnoyoudidnt
python -m pip install ohnoyoudidnt
  1. Run the linter using
doc8

VS Code

  1. Follow instructions 1 and 2 from above
  2. Install the reStructuredText VS Code extension
  3. Add
    "restructuredtext.linter.name": "doc8",
    "restructuredtext.linter.extraArgs": [
        "--ignore D001",
        "--ignore D004",
        "--ignore D002",
        "--ignore WUMBO002"
    ],

to your settings.json file.

Contribution Guidelines

Checks

  • Checks can never yield a line number < 1
  • Checks must compile regex patterns once per import, not once per file

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ohnoyoudidnt-0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

ohnoyoudidnt-0.1-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page