Skip to content

Commit 495bf6b

Browse files
authored
Merge pull request #98 from bsweger/bs/minor-fixes
Bs/minor fixes
2 parents ddbec2b + 1aa1692 commit 495bf6b

30 files changed

+1460
-826
lines changed

.github/dependabot.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ updates:
77
directory: "/"
88
schedule:
99
interval: "weekly"
10+
cooldown:
11+
default-days: 5
1012
groups:
1113
gha-updates:
1214
applies-to: version-updates
@@ -19,6 +21,8 @@ updates:
1921
directory: "/"
2022
schedule:
2123
interval: "weekly"
24+
cooldown:
25+
default-days: 5
2226
ignore:
2327
- dependency-name: "jinja2"
2428
allow:

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ exclude: |
66
repos:
77
- repo: https://github.com/astral-sh/uv-pre-commit
88
# uv version.
9-
rev: 0.7.3
9+
rev: 0.9.16
1010
hooks:
1111
- id: uv-lock
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
1313
# Ruff version.
14-
rev: v0.8.0
14+
rev: v0.14.8
1515
hooks:
1616
# Run the linter.
1717
- id: ruff
1818
args: [ --fix ]
1919
# Run the formatter.
2020
- id: ruff-format
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.6.0
22+
rev: v6.0.0
2323
hooks:
2424
- id: trailing-whitespace
2525
- id: check-yaml
@@ -30,7 +30,7 @@ repos:
3030
- id: detect-private-key
3131
- id: double-quote-string-fixer
3232
- repo: https://github.com/codespell-project/codespell
33-
rev: v2.3.0
33+
rev: v2.4.1
3434
hooks:
3535
- id: codespell
3636
args: ['--skip', 'test/__snapshots__/*.*', '--ignore-words-list', 'parsin']

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12
1+
3.14.1

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ project uses [Semantic Versioning](https://semver.org/).
1414
### Changed
1515

1616
- Make improvements to logging-related portion of the templates
17-
- Set logging level via application configuration instead of hard-coding
1817
- Add Python 3.14, drop 3.9 and 3.10
18+
- Add cooldown to Dependabot settings template
1919

2020
### Internal
2121

2222
- Move log configuration to __init__.py
23+
- Set logging level via application configuration instead of hard-coding
24+
- Add cooldown to project Dependabot settings
25+
- Switching default quote style from single to double
2326

2427
## 0.5.7
2528

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Becky Sweger
3+
Copyright (c) 2025 Becky Sweger
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/source/conf.py

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -14,78 +14,78 @@
1414
# If extensions (or modules to document with autodoc) are in another directory,
1515
# add these directories to sys.path here. If the directory is relative to the
1616
# documentation root, use os.path.abspath to make it absolute, like shown here.
17-
sys.path.insert(0, os.path.abspath('...'))
18-
sys.path.insert(0, os.path.abspath('..'))
19-
sys.path.insert(0, os.path.abspath('.'))
17+
sys.path.insert(0, os.path.abspath("..."))
18+
sys.path.insert(0, os.path.abspath(".."))
19+
sys.path.insert(0, os.path.abspath("."))
2020

2121
# -- General configuration ---------------------------------------------------
2222
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2323

2424
extensions = [
25-
'sphinx.ext.autodoc',
26-
'sphinx.ext.githubpages',
27-
'sphinx.ext.intersphinx',
28-
'sphinx.ext.napoleon',
29-
'sphinx.ext.viewcode',
30-
'sphinx_copybutton',
31-
'sphinxcontrib.typer',
32-
'sphinxext.opengraph',
33-
'myst_parser',
25+
"sphinx.ext.autodoc",
26+
"sphinx.ext.githubpages",
27+
"sphinx.ext.intersphinx",
28+
"sphinx.ext.napoleon",
29+
"sphinx.ext.viewcode",
30+
"sphinx_copybutton",
31+
"sphinxcontrib.typer",
32+
"sphinxext.opengraph",
33+
"myst_parser",
3434
]
3535

3636
myst_enable_extensions = [
37-
'colon_fence',
38-
'fieldlist',
39-
'replacements',
40-
'tasklist',
37+
"colon_fence",
38+
"fieldlist",
39+
"replacements",
40+
"tasklist",
4141
]
4242

4343
# Settings from the copybutton's config
4444
# https://github.com/executablebooks/sphinx-copybutton/blob/master/docs/conf.py
4545
# There are useful for ensuring that the copy button only copies code
4646
# (as prefixed by ">>>" for example) and not the prompt or the output.
47-
copybutton_prompt_text = r'>>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: '
47+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
4848
copybutton_prompt_is_regexp = True
49-
copybutton_line_continuation_character = '\\'
50-
copybutton_here_doc_delimiter = 'EOT'
51-
copybutton_selector = 'div:not(.no-copybutton) > div.highlight > pre'
49+
copybutton_line_continuation_character = "\\"
50+
copybutton_here_doc_delimiter = "EOT"
51+
copybutton_selector = "div:not(.no-copybutton) > div.highlight > pre"
5252

5353
# Open graph settings
54-
ogp_site_url = 'https://bsweger.github.io/pyprefab/'
55-
ogp_image = 'https://bsweger.github.io/pyprefab/_static/pyprefab.png'
54+
ogp_site_url = "https://bsweger.github.io/pyprefab/"
55+
ogp_image = "https://bsweger.github.io/pyprefab/_static/pyprefab.png"
5656

57-
templates_path = ['_templates']
57+
templates_path = ["_templates"]
5858
exclude_patterns = []
5959

6060
# The suffix(es) of source filenames.
6161
# You can specify multiple suffix as a list of string:
62-
source_suffix = ['.rst', '.md']
62+
source_suffix = [".rst", ".md"]
6363

6464
# The encoding of source files.
6565
# source_encoding = 'utf-8-sig'
6666

6767
# The master toctree document.
68-
master_doc = 'index'
68+
master_doc = "index"
6969

7070
# project information
7171
now = datetime.now()
72-
project = 'pyprefab'
72+
project = "pyprefab"
7373
copyright = f'{now.year}, Becky Sweger | Last update {now.strftime("%B %d, %Y")}'
74-
author = 'Becky Sweger'
74+
author = "Becky Sweger"
7575

76-
version = metadata.version('pyprefab')
76+
version = metadata.version("pyprefab")
7777
release = version
7878

7979
# The language for content autogenerated by Sphinx. Refer to documentation
8080
# for a list of supported languages.
81-
language = 'en'
81+
language = "en"
8282

8383
# List of patterns, relative to source directory, that match files and
8484
# directories to ignore when looking for source files.
85-
exclude_patterns = ['_build']
85+
exclude_patterns = ["_build"]
8686

8787
# The name of the Pygments (syntax highlighting) style to use.
88-
pygments_style = 'monokai'
88+
pygments_style = "monokai"
8989

9090
# If true, `todo` and `todoList` produce output, else they produce nothing.
9191
todo_include_todos = False
@@ -94,22 +94,22 @@
9494
# -- Options for HTML output -------------------------------------------------
9595
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
9696

97-
html_theme = 'alabaster'
98-
html_static_path = ['_static']
97+
html_theme = "alabaster"
98+
html_static_path = ["_static"]
9999

100100
# Theme options are theme-specific and customize the look and feel of a theme
101101
# further. For a list of options available for each theme, see the
102102
# documentation.
103103
html_theme_options = {
104-
'description': f'Small CLI for Python project scaffolding\n{release}',
105-
'github_user': 'bsweger',
106-
'github_repo': 'pyprefab',
107-
'github_banner': True,
108-
'github_button': False,
109-
'font_family': "'Roboto', Georgia, sans",
110-
'head_font_family': "'Roboto', Georgia, serif",
111-
'code_font_family': "'Roboto Mono', 'Consolas', monospace",
112-
'pre_bg': '#433e56',
104+
"description": f"Small CLI for Python project scaffolding\n{release}",
105+
"github_user": "bsweger",
106+
"github_repo": "pyprefab",
107+
"github_banner": True,
108+
"github_button": False,
109+
"font_family": "'Roboto', Georgia, sans",
110+
"head_font_family": "'Roboto', Georgia, serif",
111+
"code_font_family": "'Roboto Mono', 'Consolas', monospace",
112+
"pre_bg": "#433e56",
113113
}
114114

115115
# Add any paths that contain custom themes here, relative to this directory.
@@ -134,12 +134,12 @@
134134
# Add any paths that contain custom static files (such as style sheets) here,
135135
# relative to this directory. They are copied after the builtin static files,
136136
# so a file named "default.css" will overwrite the builtin "default.css".
137-
html_static_path = ['_static']
137+
html_static_path = ["_static"]
138138

139139
# These paths are either relative to html_static_path
140140
# or fully qualified paths (eg. https://...)
141141
html_css_files = [
142-
'custom.css',
142+
"custom.css",
143143
]
144144

145145
# Add any extra paths that contain custom files (such as robots.txt or
@@ -149,7 +149,7 @@
149149

150150
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
151151
# using the given strftime format.
152-
html_last_updated_fmt = '%b %d, %Y'
152+
html_last_updated_fmt = "%b %d, %Y"
153153

154154
# If true, SmartyPants will be used to convert quotes and dashes to
155155
# typographically correct entities.

0 commit comments

Comments
 (0)