forked from pallets/pallets-sphinx-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update pre-commit hooks * show url in publish environment * update actions versions * use dependabot grouped updates ignore upload/download-artifact until slsa updates * update dev dependencies * update editorconfig * update gitignore * license is txt, readme is md * use pyproject.toml * add tox env to update all dev dependencies
- Loading branch information
Showing
20 changed files
with
240 additions
and
153 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
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,9 +1,24 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
day: "monday" | ||
time: "16:00" | ||
timezone: "UTC" | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
ignore: | ||
# slsa depends on upload/download v3 | ||
- dependency-name: actions/upload-artifact | ||
versions: '>= 4' | ||
- dependency-name: actions/download-artifact | ||
versions: '>= 4' | ||
groups: | ||
github-actions: | ||
patterns: | ||
- '*' | ||
- package-ecosystem: pip | ||
directory: /requirements/ | ||
schedule: | ||
interval: monthly | ||
groups: | ||
python-requirements: | ||
patterns: | ||
- '*' |
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,25 +1,23 @@ | ||
name: 'Lock inactive closed issues' | ||
name: Lock inactive closed issues | ||
# Lock closed issues that have not received any further activity for two weeks. | ||
# This does not close open issues, only humans may do that. We find that it is | ||
# easier to respond to new issues with fresh examples rather than continuing | ||
# discussions on old issues. | ||
# This does not close open issues, only humans may do that. It is easier to | ||
# respond to new issues with fresh examples rather than continuing discussions | ||
# on old issues. | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: lock | ||
|
||
jobs: | ||
lock: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21 | ||
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1 | ||
with: | ||
issue-inactive-days: 14 | ||
pr-inactive-days: 14 | ||
discussion-inactive-days: 14 |
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,18 +1,10 @@ | ||
.DS_Store | ||
.idea/ | ||
.env | ||
.flaskenv | ||
*.pyc | ||
*.pyo | ||
env/ | ||
.vscode/ | ||
.venv*/ | ||
venv*/ | ||
__pycache__/ | ||
dist/ | ||
build/ | ||
*.egg | ||
*.egg-info/ | ||
.tox/ | ||
.cache/ | ||
.pytest_cache/ | ||
.coverage* | ||
htmlcov/ | ||
.coverage | ||
.coverage.* | ||
.tox/ | ||
docs/_build/ |
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,28 +1,16 @@ | ||
ci: | ||
autoupdate_schedule: monthly | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.1 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.4.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py38-plus"] | ||
- repo: https://github.com/asottile/reorder-python-imports | ||
rev: v3.12.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
args: ["--application-directories", "src"] | ||
- repo: https://github.com/psf/black | ||
rev: 24.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-implicit-str-concat | ||
- id: ruff | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-byte-order-marker | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
- id: fix-byte-order-marker | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
# Pallets Sphinx Themes | ||
|
||
Themes for the Pallets projects. If you're writing an extension, use the | ||
appropriate theme to make your documentation look consistent. | ||
|
||
Available themes: | ||
|
||
- flask | ||
- jinja | ||
- werkzeug | ||
- click | ||
|
||
Enable the extension and choose the theme in `docs/conf.py`: | ||
|
||
```python | ||
extensions = [ | ||
"pallets_sphinx_themes", | ||
... | ||
] | ||
|
||
html_theme = "flask" | ||
``` |
This file was deleted.
Oops, something went wrong.
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,67 @@ | ||
[project] | ||
name = "Pallets-Sphinx-Themes" | ||
version = "2.1.1" | ||
description = "Sphinx themes for Pallets and related projects." | ||
readme = "README.md" | ||
license = { file = "LICENSE.txt" } | ||
maintainers = [{ name = "Pallets", email = "[email protected]" }] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Sphinx", | ||
"Framework :: Sphinx :: Theme", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Documentation", | ||
"Topic :: Documentation :: Sphinx", | ||
"Topic :: Software Development :: Documentation", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"packaging", | ||
"sphinx>=3", | ||
] | ||
|
||
[project.urls] | ||
Donate = "https://palletsprojects.com/donate" | ||
Source = "https://github.com/pallets/pallets-sphinx-themes/" | ||
Chat = "https://discord.gg/pallets" | ||
|
||
[project.entry-points."pygments.styles"] | ||
pocoo = "pallets_sphinx_themes.themes.pocoo:PocooStyle" | ||
jinja = "pallets_sphinx_themes.themes.jinja:JinjaStyle" | ||
|
||
[build-system] | ||
requires = ["flit_core<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[tool.flit.module] | ||
name = "pallets_sphinx_themes" | ||
|
||
[tool.flit.sdist] | ||
include = [ | ||
"requirements/", | ||
"CHANGES.rst", | ||
] | ||
|
||
[tool.ruff] | ||
src = ["src"] | ||
fix = true | ||
show-fixes = true | ||
output-format = "full" | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"B", # flake8-bugbear | ||
"E", # pycodestyle error | ||
"F", # pyflakes | ||
"I", # isort | ||
"UP", # pyupgrade | ||
"W", # pycodestyle warning | ||
] | ||
ignore-init-module-imports = true | ||
|
||
[tool.ruff.lint.isort] | ||
force-single-line = true | ||
order-by-type = false |
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 @@ | ||
build |
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,12 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile build.in | ||
# | ||
build==1.2.1 | ||
# via -r build.in | ||
packaging==24.0 | ||
# via build | ||
pyproject-hooks==1.0.0 | ||
# via build |
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,2 +1,2 @@ | ||
pip-compile-multi | ||
pre-commit | ||
tox |
Oops, something went wrong.