Skip to content

Commit 7d81b29

Browse files
Merge pull request #90 from CarterPerez-dev/chore/issue-77-pt3
issue 77 pt3 golangci
2 parents 4e79a72 + ea74764 commit 7d81b29

File tree

12 files changed

+32
-296
lines changed

12 files changed

+32
-296
lines changed

.github/workflows/eslint-check.yml

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

.github/workflows/lint.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ jobs:
6363
- name: ai-threat-detection-backend
6464
type: ruff
6565
path: PROJECTS/advanced/ai-threat-detection/backend
66-
# Python (ruff) - Templates
67-
- name: fullstack-template-backend
68-
type: ruff
69-
path: TEMPLATES/fullstack-template/backend
7066
# Biome (frontend)
7167
- name: bug-bounty-platform-frontend
7268
type: biome
@@ -83,9 +79,6 @@ jobs:
8379
- name: encrypted-p2p-chat-frontend
8480
type: biome
8581
path: PROJECTS/advanced/encrypted-p2p-chat/frontend
86-
- name: fullstack-template-frontend
87-
type: biome
88-
path: TEMPLATES/fullstack-template/frontend
8982
# Go
9083
- name: simple-vulnerability-scanner
9184
type: go

.github/workflows/typescript-check.yml

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

.pre-commit-config.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ repos:
8484
files: ^PROJECTS/advanced/ai-threat-detection/backend/
8585
exclude: (\.venv|__pycache__|\.pytest_cache)/
8686

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

9588
# Go golangci-lint Checks
9689
- repo: local
@@ -149,13 +142,6 @@ repos:
149142
files: ^PROJECTS/advanced/encrypted-p2p-chat/frontend/src/
150143
pass_filenames: false
151144

152-
- id: biome-fullstack-template
153-
name: biome check (fullstack-template frontend)
154-
entry: bash -c 'cd TEMPLATES/fullstack-template/frontend && npx @biomejs/biome check .'
155-
language: system
156-
files: ^TEMPLATES/fullstack-template/frontend/src/
157-
pass_filenames: false
158-
159145
- repo: https://github.com/pre-commit/pre-commit-hooks
160146
rev: v6.0.0
161147
hooks:

PROJECTS/advanced/bug-bounty-platform/backend/app/core/enums.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
enums.py
44
"""
55

6-
from enum import Enum
6+
from enum import Enum, StrEnum
77
from typing import Any
88

99
import sqlalchemy as sa
@@ -46,7 +46,7 @@ def _object_value_for_elem(self, elem: str) -> Enum:
4646
raise
4747

4848

49-
class Environment(str, Enum):
49+
class Environment(StrEnum):
5050
"""
5151
Application environment.
5252
"""
@@ -55,7 +55,7 @@ class Environment(str, Enum):
5555
PRODUCTION = "production"
5656

5757

58-
class UserRole(str, Enum):
58+
class UserRole(StrEnum):
5959
"""
6060
User roles for authorization.
6161
"""
@@ -65,15 +65,15 @@ class UserRole(str, Enum):
6565
ADMIN = "admin"
6666

6767

68-
class TokenType(str, Enum):
68+
class TokenType(StrEnum):
6969
"""
7070
JWT token types.
7171
"""
7272
ACCESS = "access"
7373
REFRESH = "refresh"
7474

7575

76-
class HealthStatus(str, Enum):
76+
class HealthStatus(StrEnum):
7777
"""
7878
Health check status values.
7979
"""
@@ -82,7 +82,7 @@ class HealthStatus(str, Enum):
8282
DEGRADED = "degraded"
8383

8484

85-
class ProgramStatus(str, Enum):
85+
class ProgramStatus(StrEnum):
8686
"""
8787
Bug bounty program lifecycle status.
8888
"""
@@ -92,7 +92,7 @@ class ProgramStatus(str, Enum):
9292
CLOSED = "closed"
9393

9494

95-
class ProgramVisibility(str, Enum):
95+
class ProgramVisibility(StrEnum):
9696
"""
9797
Bug bounty program visibility level.
9898
"""
@@ -101,7 +101,7 @@ class ProgramVisibility(str, Enum):
101101
INVITE_ONLY = "invite_only"
102102

103103

104-
class AssetType(str, Enum):
104+
class AssetType(StrEnum):
105105
"""
106106
Type of asset in a bug bounty program scope.
107107
"""
@@ -113,7 +113,7 @@ class AssetType(str, Enum):
113113
OTHER = "other"
114114

115115

116-
class Severity(str, Enum):
116+
class Severity(StrEnum):
117117
"""
118118
Vulnerability severity levels aligned with CVSS.
119119
"""
@@ -124,7 +124,7 @@ class Severity(str, Enum):
124124
INFORMATIONAL = "informational"
125125

126126

127-
class ReportStatus(str, Enum):
127+
class ReportStatus(StrEnum):
128128
"""
129129
Vulnerability report lifecycle status.
130130
"""

0 commit comments

Comments
 (0)