Skip to content

Commit

Permalink
update setup command, add back dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
rbavery committed Nov 11, 2024
1 parent e15f0ad commit 9c18aba
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 10 deletions.
35 changes: 35 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Configuration: https://dependabot.com/docs/config-file/
# Docs: https://docs.github.com/en/github/administering-a-repository/keeping-your-dependencies-updated-automatically

version: 2

updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
allow:
- dependency-type: "all"
commit-message:
prefix: ":arrow_up:"
open-pull-requests-limit: 5

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
allow:
- dependency-type: "all"
commit-message:
prefix: ":arrow_up:"
open-pull-requests-limit: 5

- package-ecosystem: "docker"
directory: "/docker"
schedule:
interval: "monthly"
allow:
- dependency-type: "all"
commit-message:
prefix: ":arrow_up:"
open-pull-requests-limit: 5
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,38 @@ ACTIVEPYTHON = $(shell which python)
#* UV
.PHONY: setup
setup:
curl -LsSf https://astral.sh/uv/install.sh | sh
which uv >/dev/null || (curl -LsSf https://astral.sh/uv/install.sh | sh)

.PHONY: publish
publish:
uv publish --build

#* Installation
.PHONY: install
install:
install: setup
uv export --format requirements-txt -o requirements.txt --no-dev
uv pip install --python $(ACTIVEPYTHON) -r requirements.txt

.PHONY: install-dev
install-dev:
install-dev: setup
uv export --format requirements-txt -o requirements-dev.txt
uv pip install --python $(ACTIVEPYTHON) -r requirements-dev.txt

.PHONY: pre-commit-install
pre-commit-install:
pre-commit-install: setup
uv run --python $(ACTIVEPYTHON) pre-commit install

#* Formatters
.PHONY: codestyle
codestyle:
codestyle: setup
uv run --python $(ACTIVEPYTHON) ruff format --config=pyproject.toml stac_model tests

.PHONY: format
format: codestyle

#* Linting
.PHONY: test
test:
test: setup
uv run --python $(ACTIVEPYTHON) pytest -c pyproject.toml --cov-report=html --cov=stac_model tests/

.PHONY: check
Expand All @@ -46,19 +46,19 @@ check: check-examples check-markdown check-lint check-mypy check-safety check-ci
check-all: check

.PHONY: mypy
mypy:
mypy: setup
uv run --python $(ACTIVEPYTHON) mypy --config-file pyproject.toml ./

.PHONY: check-mypy
check-mypy: mypy

.PHONY: check-safety
check-safety:
check-safety: setup
uv run --python $(ACTIVEPYTHON) safety check --full-report
uv run --python $(ACTIVEPYTHON) bandit -ll --recursive stac_model tests

.PHONY: lint
lint:
lint: setup
uv run --python $(ACTIVEPYTHON) ruff check --fix --config=pyproject.toml ./

.PHONY: check-lint
Expand Down Expand Up @@ -96,7 +96,7 @@ $(addprefix fix-, $(FORMATTERS)): fix-%: format-%
lint-all: lint mypy check-safety check-markdown

.PHONY: update-dev-deps
update-dev-deps:
update-dev-deps: setup
uv export --only-dev --format requirements-txt -o requirements-only-dev.txt
uv pip install --python $(ACTIVEPYTHON) -r requirements-only-dev.txt

Expand Down

0 comments on commit 9c18aba

Please sign in to comment.