Skip to content

Commit

Permalink
refactor Makefile and update the description of the package in `pyp…
Browse files Browse the repository at this point in the history
…roject.toml` (#173)

* chore: Update dependency check schedule to weekly

* chore: Update Makefile to fix PRE_COMMIT_CMD indentation
  • Loading branch information
ouhammmourachid authored Aug 8, 2024
1 parent e50277f commit bf21b63
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly" # Check for updates Monthly
interval: "weekly" # Check for updates Weekly
labels:
- "dependencies"
- "pip"

- package-ecosystem: "npm" # See documentation for possible values
directory: "/docs" # Location of package manifests
schedule:
interval: "monthly" # Check for updates Monthly
interval: "weekly" # Check for updates Weekly
labels:
- "dependencies"
- "npm"

- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly" # Check for updates Monthly
interval: "weekly" # Check for updates Weekly
labels:
- "dependencies"
- "github-actions"
File renamed without changes.
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ repos:
rev: 'v1.11.1'
hooks:
- id: mypy
additional_dependencies: [types-requests, types-PyYAML, types-toml]
args: ["--exclude", "requests-stubs"]
additional_dependencies: [types-requests]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
Expand Down
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

# variables
POETRY_RUN = poetry run
PRE_COMMIT_CMD = $(POETRY_RUN) pre-commit

.PHONY: install
install:
poetry install
Expand All @@ -16,24 +21,24 @@ publish:

.PHONY: test
test:
poetry run pytest
$(POETRY_RUN) pytest

.PHONY: install-pre-commit
install-pre-commit:
poetry run pre-commit uninstall && poetry run pre-commit install
$(PRE_COMMIT_CMD) uninstall && $$(PRE_COMMIT_CMD) install

.PHONY: lint
lint:
poetry run pre-commit run --all-files
$(PRE_COMMIT_CMD) run --all-files


.PHONY: coverage
coverage:
poetry run pytest --cov ./mermaid --cov-report=xml
$(POETRY_RUN) pytest --cov ./mermaid --cov-report=xml

.PHONY: bumpversion
bumpversion:
$(eval name=$(filter-out $@,$(MAKECMDGOALS)))
poetry run bumpver update --$(name)
$(POETRY_RUN) bumpver update --$(name)
%:
@:
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "mermaid-py"
version = "0.5.2"
description = "A simple interface for the the famous lib mermaid-js to create diagrams."
description = "Python Interface for the Popular mermaid-js Library, Simplified for Diagram Creation."
authors = ["ouhammmourachid <[email protected]>"]
readme = "README.md"
packages = [{include = "mermaid"}]
Expand Down

0 comments on commit bf21b63

Please sign in to comment.