Skip to content

Commit

Permalink
Merge pull request #361 from shunichironomura/update-mkdocs-material
Browse files Browse the repository at this point in the history
Update mkdocs material
  • Loading branch information
shunichironomura authored Oct 11, 2024
2 parents 9cba17b + 91b9cef commit 563c5a0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,9 @@ jobs:
exclude:
- os: macos-latest
python-version: "3.9"
- os: macos-latest
python-version: "3.8"
include:
- os: macos-13
python-version: "3.9"
- os: macos-13
python-version: "3.8"
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
Expand Down Expand Up @@ -128,5 +124,13 @@ jobs:
with:
file: coverage.xml
env_vars: OS,PYTHON
fail_ci_if_error: false # TODO: Change to true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

collect:
if: github.event.pull_request.draft == false
needs: [ruff, mypy, build-docs, pytest]
runs-on: ubuntu-latest
steps:
- name: Collect results
run: echo "All checks passed!"
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"-v",
"-s",
"--color=yes",
"--log-cli-level=INFO",
"--log-cli-level=INFO"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dev-dependencies = [
"deptry==0.20.0",
# "pre-commit==3.8.0", # pre-commit requires Python 3.9+
# For docs
"mkdocs-material==9.5.39",
"mkdocs-material==9.5.40",
"mkdocstrings[python]==0.26.1",
"mkdocs-gen-files==0.5.0",
"mkdocs-literate-nav==0.6.1",
Expand Down
4 changes: 2 additions & 2 deletions scripts/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def main(
with pyproject_path.open("r") as f:
pyproject = tomlkit.load(f)

version_str: str = pyproject["project"]["version"] # type: ignore[assignment, index]
version_str: str = pyproject["project"]["version"] # type: ignore[assignment, index]
version_parts = version_str.split(".")
if len(version_parts) != 3:
msg = f"Version must have 3 parts, but {version_str!r} has {len(version_parts)}"
Expand All @@ -58,7 +58,7 @@ def main(
new_version_str = f"{major}.{minor}.{patch}"
stderr.print(f"Bumping version from {version_str!r} to {new_version_str!r}")

pyproject["project"]["version"] = new_version_str # type: ignore[index]
pyproject["project"]["version"] = new_version_str # type: ignore[index]

with pyproject_path.open("w") as f:
tomlkit.dump(pyproject, f)
Expand Down
1 change: 1 addition & 0 deletions scripts/get_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ def main(
print(version_str)
raise typer.Exit(0)


if __name__ == "__main__":
typer.run(main)

0 comments on commit 563c5a0

Please sign in to comment.