Skip to content

Commit 9c18aba

Browse files
committed
update setup command, add back dependabot
1 parent e15f0ad commit 9c18aba

File tree

2 files changed

+45
-10
lines changed

2 files changed

+45
-10
lines changed

.github/dependabot.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Configuration: https://dependabot.com/docs/config-file/
2+
# Docs: https://docs.github.com/en/github/administering-a-repository/keeping-your-dependencies-updated-automatically
3+
4+
version: 2
5+
6+
updates:
7+
- package-ecosystem: "pip"
8+
directory: "/"
9+
schedule:
10+
interval: "monthly"
11+
allow:
12+
- dependency-type: "all"
13+
commit-message:
14+
prefix: ":arrow_up:"
15+
open-pull-requests-limit: 5
16+
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "monthly"
21+
allow:
22+
- dependency-type: "all"
23+
commit-message:
24+
prefix: ":arrow_up:"
25+
open-pull-requests-limit: 5
26+
27+
- package-ecosystem: "docker"
28+
directory: "/docker"
29+
schedule:
30+
interval: "monthly"
31+
allow:
32+
- dependency-type: "all"
33+
commit-message:
34+
prefix: ":arrow_up:"
35+
open-pull-requests-limit: 5

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,38 @@ ACTIVEPYTHON = $(shell which python)
55
#* UV
66
.PHONY: setup
77
setup:
8-
curl -LsSf https://astral.sh/uv/install.sh | sh
8+
which uv >/dev/null || (curl -LsSf https://astral.sh/uv/install.sh | sh)
99

1010
.PHONY: publish
1111
publish:
1212
uv publish --build
1313

1414
#* Installation
1515
.PHONY: install
16-
install:
16+
install: setup
1717
uv export --format requirements-txt -o requirements.txt --no-dev
1818
uv pip install --python $(ACTIVEPYTHON) -r requirements.txt
1919

2020
.PHONY: install-dev
21-
install-dev:
21+
install-dev: setup
2222
uv export --format requirements-txt -o requirements-dev.txt
2323
uv pip install --python $(ACTIVEPYTHON) -r requirements-dev.txt
2424

2525
.PHONY: pre-commit-install
26-
pre-commit-install:
26+
pre-commit-install: setup
2727
uv run --python $(ACTIVEPYTHON) pre-commit install
2828

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

3434
.PHONY: format
3535
format: codestyle
3636

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

4242
.PHONY: check
@@ -46,19 +46,19 @@ check: check-examples check-markdown check-lint check-mypy check-safety check-ci
4646
check-all: check
4747

4848
.PHONY: mypy
49-
mypy:
49+
mypy: setup
5050
uv run --python $(ACTIVEPYTHON) mypy --config-file pyproject.toml ./
5151

5252
.PHONY: check-mypy
5353
check-mypy: mypy
5454

5555
.PHONY: check-safety
56-
check-safety:
56+
check-safety: setup
5757
uv run --python $(ACTIVEPYTHON) safety check --full-report
5858
uv run --python $(ACTIVEPYTHON) bandit -ll --recursive stac_model tests
5959

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

6464
.PHONY: check-lint
@@ -96,7 +96,7 @@ $(addprefix fix-, $(FORMATTERS)): fix-%: format-%
9696
lint-all: lint mypy check-safety check-markdown
9797

9898
.PHONY: update-dev-deps
99-
update-dev-deps:
99+
update-dev-deps: setup
100100
uv export --only-dev --format requirements-txt -o requirements-only-dev.txt
101101
uv pip install --python $(ACTIVEPYTHON) -r requirements-only-dev.txt
102102

0 commit comments

Comments
 (0)