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
120 changes: 0 additions & 120 deletions .github/workflows/eslint-check.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ jobs:
- name: ai-threat-detection-backend
type: ruff
path: PROJECTS/advanced/ai-threat-detection/backend
# Python (ruff) - Templates
- name: fullstack-template-backend
type: ruff
path: TEMPLATES/fullstack-template/backend
# Biome (frontend)
- name: bug-bounty-platform-frontend
type: biome
Expand All @@ -83,9 +79,6 @@ jobs:
- name: encrypted-p2p-chat-frontend
type: biome
path: PROJECTS/advanced/encrypted-p2p-chat/frontend
- name: fullstack-template-frontend
type: biome
path: TEMPLATES/fullstack-template/frontend
# Go
- name: simple-vulnerability-scanner
type: go
Expand Down
129 changes: 0 additions & 129 deletions .github/workflows/typescript-check.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ repos:
files: ^PROJECTS/advanced/ai-threat-detection/backend/
exclude: (\.venv|__pycache__|\.pytest_cache)/

# Templates
- id: ruff
name: ruff check (fullstack-template backend)
args: [--fix, --exit-non-zero-on-fix]
files: ^TEMPLATES/fullstack-template/backend/
exclude: (\.venv|__pycache__|\.pytest_cache)/


# Go golangci-lint Checks
- repo: local
Expand Down Expand Up @@ -149,13 +142,6 @@ repos:
files: ^PROJECTS/advanced/encrypted-p2p-chat/frontend/src/
pass_filenames: false

- id: biome-fullstack-template
name: biome check (fullstack-template frontend)
entry: bash -c 'cd TEMPLATES/fullstack-template/frontend && npx @biomejs/biome check .'
language: system
files: ^TEMPLATES/fullstack-template/frontend/src/
pass_filenames: false

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
Expand Down
20 changes: 10 additions & 10 deletions PROJECTS/advanced/bug-bounty-platform/backend/app/core/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
enums.py
"""

from enum import Enum
from enum import Enum, StrEnum
from typing import Any

import sqlalchemy as sa
Expand Down Expand Up @@ -46,7 +46,7 @@ def _object_value_for_elem(self, elem: str) -> Enum:
raise


class Environment(str, Enum):
class Environment(StrEnum):
"""
Application environment.
"""
Expand All @@ -55,7 +55,7 @@ class Environment(str, Enum):
PRODUCTION = "production"


class UserRole(str, Enum):
class UserRole(StrEnum):
"""
User roles for authorization.
"""
Expand All @@ -65,15 +65,15 @@ class UserRole(str, Enum):
ADMIN = "admin"


class TokenType(str, Enum):
class TokenType(StrEnum):
"""
JWT token types.
"""
ACCESS = "access"
REFRESH = "refresh"


class HealthStatus(str, Enum):
class HealthStatus(StrEnum):
"""
Health check status values.
"""
Expand All @@ -82,7 +82,7 @@ class HealthStatus(str, Enum):
DEGRADED = "degraded"


class ProgramStatus(str, Enum):
class ProgramStatus(StrEnum):
"""
Bug bounty program lifecycle status.
"""
Expand All @@ -92,7 +92,7 @@ class ProgramStatus(str, Enum):
CLOSED = "closed"


class ProgramVisibility(str, Enum):
class ProgramVisibility(StrEnum):
"""
Bug bounty program visibility level.
"""
Expand All @@ -101,7 +101,7 @@ class ProgramVisibility(str, Enum):
INVITE_ONLY = "invite_only"


class AssetType(str, Enum):
class AssetType(StrEnum):
"""
Type of asset in a bug bounty program scope.
"""
Expand All @@ -113,7 +113,7 @@ class AssetType(str, Enum):
OTHER = "other"


class Severity(str, Enum):
class Severity(StrEnum):
"""
Vulnerability severity levels aligned with CVSS.
"""
Expand All @@ -124,7 +124,7 @@ class Severity(str, Enum):
INFORMATIONAL = "informational"


class ReportStatus(str, Enum):
class ReportStatus(StrEnum):
"""
Vulnerability report lifecycle status.
"""
Expand Down
Loading
Loading