Skip to content

Commit 13e2477

Browse files
committed
Implement updates for better performance
1 parent 0991ac9 commit 13e2477

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎code/backend/extensions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import compat_stubs # noqa: F401
22

33
"""
4-
Shared Flask extensions — imported by models to avoid circular imports.
4+
Shared Flask extensions - imported by models to avoid circular imports.
55
"""
66

77
from flask_bcrypt import Bcrypt

‎code/blockchain/contracts/GovernanceToken.sol‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ contract GovernanceToken is
146146
// Ensure the funding admin actually has enough tokens to seed this
147147
// vesting schedule. (Previously this checked the contract's own
148148
// balance instead of the caller's, before the tokens were ever
149-
// transferred in — which made this requirement impossible to
149+
// transferred in - which made this requirement impossible to
150150
// satisfy on a fresh vesting schedule and broke the feature.)
151151
require(
152152
balanceOf(msg.sender) >= totalAmount,

‎infrastructure/terraform/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ provider "aws" {
2525
}
2626
}
2727

28-
# Separate provider for us-east-1 — WAF for CloudFront must be in us-east-1
28+
# Separate provider for us-east-1 - WAF for CloudFront must be in us-east-1
2929
provider "aws" {
3030
alias = "us_east_1"
3131
region = "us-east-1"

‎infrastructure/terraform/modules/cdn/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "aws_cloudfront_distribution" "main" {
6363
compress = true
6464
}
6565

66-
# Cache behavior for API endpoints — bypass cache
66+
# Cache behavior for API endpoints - bypass cache
6767
ordered_cache_behavior {
6868
path_pattern = "/api/*"
6969
allowed_methods = ["DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT"]

‎lint.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ echo "[ 1/4 ] ruff ────────────────────
4545
if command -v ruff &>/dev/null; then
4646
ruff check "$TARGET" --fix
4747
else
48-
echo " ruff not installed — run: pip install ruff"
48+
echo " ruff not installed - run: pip install ruff"
4949
fi
5050

5151
# ── flake8 ────────────────────────────────────────────────────────────────────
@@ -54,7 +54,7 @@ echo "[ 2/4 ] flake8 ───────────────────
5454
if command -v flake8 &>/dev/null; then
5555
flake8 "$TARGET" --max-line-length 100 --statistics
5656
else
57-
echo " flake8 not installed — run: pip install flake8"
57+
echo " flake8 not installed - run: pip install flake8"
5858
fi
5959

6060
# ── mypy ──────────────────────────────────────────────────────────────────────
@@ -63,7 +63,7 @@ echo "[ 3/4 ] mypy ────────────────────
6363
if command -v mypy &>/dev/null; then
6464
mypy "$TARGET" --ignore-missing-imports
6565
else
66-
echo " mypy not installed — run: pip install mypy"
66+
echo " mypy not installed - run: pip install mypy"
6767
fi
6868

6969
# ── pylint ────────────────────────────────────────────────────────────────────
@@ -72,7 +72,7 @@ echo "[ 4/4 ] pylint ───────────────────
7272
if command -v pylint &>/dev/null; then
7373
find "$TARGET" -name "*.py" | xargs pylint
7474
else
75-
echo " pylint not installed — run: pip install pylint"
75+
echo " pylint not installed - run: pip install pylint"
7676
fi
7777

7878
echo ""

0 commit comments

Comments
 (0)