Skip to content

Commit 919bddc

Browse files
committed
uv
1 parent 5fe1e64 commit 919bddc

File tree

7 files changed

+2207
-2383
lines changed

7 files changed

+2207
-2383
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ repos:
55
hooks:
66
- id: black-apply
77
name: black-apply
8-
entry: pipenv run black
8+
entry: uv run black
99
language: system
1010
pass_filenames: true
1111
types: ["python"]
1212
- id: mypy
1313
name: mypy
14-
entry: pipenv run mypy
14+
entry: uv run mypy
1515
language: system
1616
pass_filenames: true
1717
types: ["python"]
1818
exclude: "tests/"
1919
- id: ruff-apply
2020
name: ruff-apply
21-
entry: pipenv run ruff check --fix
21+
entry: uv run ruff check --fix
2222
language: system
2323
pass_filenames: true
2424
types: ["python"]
2525
- id: pip-audit
2626
name: pip-audit
27-
entry: pipenv run pip-audit
27+
entry: uv run pip-audit
2828
language: system
2929
pass_filenames: false

Makefile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ help: # Preview Makefile commands
1111

1212
install: # Install Python dependencies
1313
pipenv install --dev
14-
pipenv run pre-commit install
14+
uv run pre-commit install
1515

1616
update: install # Update Python dependencies
1717
pipenv clean
@@ -23,11 +23,11 @@ update: install # Update Python dependencies
2323
######################
2424

2525
test: # Run tests and print a coverage report
26-
pipenv run coverage run --source=submitter -m pytest -vv
27-
pipenv run coverage report -m
26+
uv run coverage run --source=submitter -m pytest -vv
27+
uv run coverage report -m
2828

2929
coveralls: test # Write coverage data to an LCOV report
30-
pipenv run coverage lcov -o ./coverage/lcov.info
30+
uv run coverage lcov -o ./coverage/lcov.info
3131

3232

3333
####################################
@@ -37,25 +37,24 @@ coveralls: test # Write coverage data to an LCOV report
3737
lint: black mypy ruff safety # Run linters
3838

3939
black: # Run 'black' linter and print a preview of suggested changes
40-
pipenv run black --check --diff .
40+
uv run black --check --diff .
4141

4242
mypy: # Run 'mypy' linter
43-
pipenv run mypy .
43+
uv run mypy .
4444

4545
ruff: # Run 'ruff' linter and print a preview of errors
46-
pipenv run ruff check .
46+
uv run ruff check .
4747

48-
safety: # Check for security vulnerabilities and verify Pipfile.lock is up-to-date
49-
pipenv run pip-audit
50-
pipenv verify
48+
safety: # Check for security vulnerabilities in dependencies
49+
uv run pip-audit
5150

5251
lint-apply: black-apply ruff-apply # Apply changes with 'black' and resolve 'fixable errors' with 'ruff'
5352

5453
black-apply: # Apply changes with 'black'
55-
pipenv run black .
54+
uv run black .
5655

5756
ruff-apply: # Resolve 'fixable errors' with 'ruff'
58-
pipenv run ruff check --fix .
57+
uv run ruff check --fix .
5958

6059
### This is the Terraform-generated header for dspace-submission-service-dev. If ###
6160
### this is a Lambda repo, uncomment the FUNCTION line below ###

Pipfile

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)