-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lint on GitHub Actions via pre-commit
- Loading branch information
Showing
10 changed files
with
121 additions
and
50 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,2 @@ | ||
[flake8] | ||
max-line-length = 88 |
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,20 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- uses: pre-commit/[email protected] |
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
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
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,50 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
|
||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: [--add-import=from __future__ import annotations] | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
[flake8-2020, flake8-implicit-str-concat, flake8-logging] | ||
|
||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.10.0 | ||
hooks: | ||
- id: python-check-blanket-noqa | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.14 | ||
hooks: | ||
- id: validate-pyproject | ||
|
||
ci: | ||
autoupdate_schedule: quarterly |
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
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
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 |
---|---|---|
@@ -1,43 +1,38 @@ | ||
[build-system] | ||
requires = ["flit_core>=3.7"] | ||
build-backend = "flit_core.buildapi" | ||
requires = [ | ||
"flit_core>=3.7", | ||
] | ||
|
||
# project metadata | ||
[project] | ||
name = "python-docs-theme" | ||
version = "2023.9" | ||
description = "The Sphinx theme for the CPython docs and related projects" | ||
readme = "README.rst" | ||
urls.Code = "https://github.com/python/python-docs-theme" | ||
urls.Download = "https://pypi.org/project/python-docs-theme/" | ||
urls.Homepage = "https://github.com/python/python-docs-theme/" | ||
urls."Issue tracker" = "https://github.com/python/python-docs-theme/issues" | ||
license.file = "LICENSE" | ||
authors = [{name = "PyPA", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
|
||
# Classifiers list: https://pypi.org/classifiers/ | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Sphinx :: Theme", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Python Software Foundation License", | ||
"Operating System :: OS Independent", | ||
"Topic :: Documentation", | ||
"Topic :: Software Development :: Documentation", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Sphinx :: Theme", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Python Software Foundation License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Topic :: Documentation", | ||
"Topic :: Software Development :: Documentation", | ||
] | ||
|
||
[[project.authors]] | ||
name = "PyPA" | ||
email = "[email protected]" | ||
|
||
urls.Code = "https://github.com/python/python-docs-theme" | ||
urls.Download = "https://pypi.org/project/python-docs-theme/" | ||
urls.Homepage = "https://github.com/python/python-docs-theme/" | ||
urls."Issue tracker" = "https://github.com/python/python-docs-theme/issues" | ||
[project.entry-points."sphinx.html_themes"] | ||
python_docs_theme = 'python_docs_theme' | ||
|
||
|
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
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 |
---|---|---|
|
@@ -54,4 +54,4 @@ document.addEventListener("DOMContentLoaded", function () { | |
closeMenu() | ||
} | ||
}) | ||
}) | ||
}) |