Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ branchProtectionRules:
requiredStatusCheckContexts:
- 'style-check'
- 'docs'
- 'lint'
- 'unit (3.7, cpp)'
- 'unit (3.7, python)'
- 'unit (3.7, upb)'
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
branches:
- main
name: lint
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install nox
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install nox
- name: Run lint_setup_py
run: |
nox -s lint_setup_py
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ largely behave like native Python types.
Documentation
-------------

`Documentation`_ is available on Read the Docs.
`API Documentation`_ is available on Read the Docs.

.. _documentation: https://googleapis.dev/python/proto-plus/latest/
.. _API Documentation: https://googleapis.dev/python/proto-plus/latest/

.. |pypi| image:: https://img.shields.io/pypi/v/proto-plus.svg
:target: https://pypi.org/project/proto-plus
Expand Down
8 changes: 8 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,11 @@ def docs(session):
"docs/",
"docs/_build/html/",
)


@nox.session(python="3.10")
def lint_setup_py(session):
"""Verify that setup.py is valid (including RST check)."""

session.install("docutils", "Pygments")
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")