Skip to content

Commit a7665e6

Browse files
committed
Updated tooling and configuration
1 parent 302b685 commit a7665e6

File tree

5 files changed

+881
-12
lines changed

5 files changed

+881
-12
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 24.8.0
3+
rev: 24.10.0
44
hooks:
55
- id: black
66
- repo: https://github.com/astral-sh/ruff-pre-commit
77
# Ruff version.
8-
rev: 'v0.6.2'
8+
rev: 'v0.7.4'
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]
1212
exclude: test.*
1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.6.0
14+
rev: v5.0.0
1515
hooks:
1616
- id: check-added-large-files
1717
- id: check-case-conflict
@@ -43,14 +43,14 @@ repos:
4343
- id: detect-secrets
4444
additional_dependencies: ["gibberish-detector"]
4545
- repo: https://github.com/pre-commit/mirrors-mypy
46-
rev: v1.11.2
46+
rev: v1.13.0
4747
hooks:
4848
- id: mypy
4949
args: [--no-strict-optional, --ignore-missing-imports]
5050
additional_dependencies: ["pydantic>2.0", "toml", "types-PyYAML"]
5151
exclude: "^tests/"
5252
- repo: https://github.com/jsh9/pydoclint
53-
rev: 0.5.6
53+
rev: 0.5.9
5454
hooks:
5555
- id: pydoclint
5656
args:

docs/gen_doc_stubs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515

1616
for path in sorted(package_root.rglob("*.py")):
17-
module_path = path.with_suffix("")
18-
doc_path = path.with_suffix(".md")
17+
module_path = path.relative_to(src_root).with_suffix("")
18+
doc_path = path.relative_to(src_root).with_suffix(".md")
1919
full_doc_path = Path("reference/api", doc_path)
2020

2121
parts = tuple(module_path.parts)

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ theme:
77
logo: assets/logo.svg
88
favicon: assets/favicon.png
99
features:
10-
- navigation.tabs
1110
- navigation.sections
1211
- navigation.path
1312
- navigation.indexes
14-
- toc.integrate
13+
- navigation.top
1514
- content.action.edit
1615
- content.action.view
1716
- content.code.annotate
1817
- content.tabs.link
18+
- toc.integrate
1919
palette:
2020
- media: "(prefers-color-scheme: light)"
2121
scheme: default

pyproject.toml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ dependencies = [
2525
"pydantic-settings>=2.4.0",
2626
"platformdirs>=4.2.2",
2727
"immutabledict>=4.2.0",
28+
"rich-click>=1.8.3",
2829
]
2930
authors = [
3031
{ name = "Calloway Project", email = "coreyoordt@gmail.com" },
@@ -55,14 +56,32 @@ test = [
5556
"pytest-sugar",
5657
]
5758
docs = [
59+
"black",
60+
"markdown-customblocks",
61+
"mdx-truly-sane-lists",
62+
"mkdocs",
63+
"mkdocs-click",
64+
"mkdocs-gen-files",
65+
"mkdocs-git-authors-plugin",
66+
"mkdocs-git-committers-plugin",
67+
"mkdocs-git-revision-date-localized-plugin",
68+
"mkdocs-include-markdown-plugin",
69+
"mkdocs-literate-nav",
70+
"mkdocs-material",
71+
"mkdocs-section-index",
72+
"mkdocstrings[python]",
73+
"python-frontmatter",
5874
]
5975

60-
#[project.scripts]
61-
#project-forge = project_forge.cli:cli
76+
[project.scripts]
77+
project-forge = "project_forge.cli:cli"
6278

6379
[tool.hatch.version]
6480
path = "project_forge/__init__.py"
6581

82+
[tool.mypy]
83+
python_version = "3.12"
84+
6685
[tool.coverage.run]
6786
branch = true
6887
omit = ["**/test_*.py", "**/__main__.py"]

0 commit comments

Comments
 (0)