diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d89b8962..00000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: python - -sudo: false - -install: - - pip install doc8 - - npm install -g write-good - -script: - - doc8 README.rst - - write-good README.rst --so --thereIs --cliches diff --git a/lint.yaml b/lint.yaml new file mode 100644 index 00000000..0cdec989 --- /dev/null +++ b/lint.yaml @@ -0,0 +1,53 @@ +name: Lint with write-good and doc8 + +on: + push: + branches: + - master + - main + pull_request: + branches: + - master + - main + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.13' + + - name: Install doc8 + run: | + python -m pip install -U pip setuptools wheel + python -m pip install doc8 + python -m pip install -U sphinx + python -m pip install restructuredtext_lint + + - name: Run doc8 + run: doc8 *.rst + + - name: Run rst-lint + run: | + rst-lint . + style: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + + - name: Install dependencies + run: npm install -g write-good + + - name: Run write-good + run: write-good *.rst --so --thereIs --cliches