-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7eec454
commit 45af71c
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
|
||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_ubuntu: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
name: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/ | ||
key: ${{ matrix.os }} | ||
- name: setup | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade pytest | ||
- name: run tests | ||
run: | | ||
python -m pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[metadata] | ||
name = sphinx-lint | ||
version = attr: sphinxlint.__version__ | ||
description = Check for stylistic and formal issues in .rst and .py files included in the documentation. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown; charset=UTF-8 | ||
author = Julien Palard | ||
author_email = [email protected] | ||
url = https://github.com/sphinx-contrib/sphinx-lint | ||
license = MIT License | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Topic :: Documentation :: Sphinx | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: Python Software Foundation License | ||
Natural Language :: English | ||
Programming Language :: Python :: 3 | ||
|
||
[options] | ||
py_modules = sphinxlint | ||
python_requires = >= 3.7 | ||
|
||
[options.entry_points] | ||
console_scripts = sphinx-lint=sphinxlint:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
"""Sphinx rst linter. | ||
""" | ||
|
||
__version__ = "0.1" | ||
|
||
import os | ||
import re | ||
import sys | ||
|