Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/code_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: psf/black@stable
with:
version: 24.4.0
version: 25.1.0
options: "--check --verbose --diff"
src: "./server"

Expand Down
2 changes: 2 additions & 0 deletions development.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ $ cd server
# Install dependencies with pipenv
# Note: You can append --three flag in older versions of pipenv (< 3.16.8 2023-02-04)
$ pipenv install --dev
$ pipenv run pre-commit install
$ pipenv run pre-commit run --all-files
$ export FLASK_APP=application; export COLLECT_STATISTICS=0
$ pipenv run flask init-db
# create admin user
Expand Down
7 changes: 7 additions & 0 deletions server/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
hooks:
- id: black
language_version: python3.10
2 changes: 2 additions & 0 deletions server/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ pylint = "==3.2.6"
responses = "==0.21.0"
pytest-dotenv= "==0.5.2"
pysqlite3-binary= "==0.5.3"
black = "==25.1.0"
pre-commit = "==4.1.0"
# requirements for pytest on windows
atomicwrites = "==1.4.0"

Expand Down
Loading
Loading