Skip to content

Commit

Permalink
Upgrade development dependencies to latest (#3624)
Browse files Browse the repository at this point in the history
- black
- coverage
- django-browser-reload
- django-coverage-plugin
- django-debug-toolbar
- pytest-cov
- pytest-split
- pytest-xdist
- reponses
- ruff
  • Loading branch information
theskumar authored Oct 20, 2023
1 parent 7eaddec commit f47bfbb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hypha-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Install python dependencies
run: pip install `grep -E "ruff|djhtml|black" requirements-dev.txt`
- name: Run ruff
run: ruff --format github .
run: ruff check --output-format=github .
- name: Run black
run: black . --check
- name: Run djhtml
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.280
rev: v0.1.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.10.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
Expand All @@ -19,6 +19,6 @@ repos:
- id: djhtml
files: .*/templates/.*\.html$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0 # Use the sha or tag you want to point at
rev: v3.0.3 # Use the sha or tag you want to point at
hooks:
- id: prettier
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endif
.PHONY: lint
lint:
@echo "Checking python code style with ruff"
ruff .
ruff check .
black . --check
@echo "Checking html file indendation."
djhtml hypha/ --check
Expand Down
20 changes: 10 additions & 10 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-r requirements.txt

black==23.7.0
coverage==6.4.4
django-browser-reload==1.6.0
django-coverage-plugin==2.0.3
django-debug-toolbar==3.8.1
black==23.10.0
coverage==7.3.2
django-browser-reload==1.12.0
django-coverage-plugin==3.1.0
django-debug-toolbar==4.2.0
djhtml==3.0.6
dslr==0.4.0
factory_boy==3.2.1
model-bakery==1.10.1
pre-commit==3.3.3
pytest-cov==4.0.0
pytest-cov==4.1.0
pytest-django==4.5.2
pytest-split==0.8.0
pytest-xdist[psutil]==3.1.0
responses==0.22.0
ruff==0.0.263
pytest-split==0.8.1
pytest-xdist[psutil]==3.3.1
responses==0.23.3
ruff==0.1.1
wagtail-factories==2.1.0
Werkzeug==2.2.3

0 comments on commit f47bfbb

Please sign in to comment.