Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to ruff v0.9.1 #1580

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions app/data_models/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@


class CompletionStatus(StrEnum):
COMPLETED: str = "COMPLETED"
IN_PROGRESS: str = "IN_PROGRESS"
NOT_STARTED: str = "NOT_STARTED"
INDIVIDUAL_RESPONSE_REQUESTED: str = "INDIVIDUAL_RESPONSE_REQUESTED"
COMPLETED = "COMPLETED"
IN_PROGRESS = "IN_PROGRESS"
NOT_STARTED = "NOT_STARTED"
INDIVIDUAL_RESPONSE_REQUESTED = "INDIVIDUAL_RESPONSE_REQUESTED"


class ProgressDict(TypedDict, total=False):
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from app.helpers.url_safe_serializer import url_safe_serializer

__all__ = [
"get_address_lookup_api_auth_token",
"get_span_and_trace",
"url_safe_serializer",
"get_address_lookup_api_auth_token",
]
2 changes: 1 addition & 1 deletion app/publisher/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from app.publisher.publisher import LogPublisher, PubSubPublisher

__all__ = ["PubSubPublisher", "LogPublisher"]
__all__ = ["LogPublisher", "PubSubPublisher"]
2 changes: 1 addition & 1 deletion app/questionnaire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
QuestionSchemaType,
)

__all__ = ["QuestionnaireSchema", "Location", "QuestionSchemaType"]
__all__ = ["Location", "QuestionSchemaType", "QuestionnaireSchema"]
4 changes: 2 additions & 2 deletions app/submitter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
)

__all__ = [
"GCSFeedbackSubmitter",
"GCSSubmitter",
"LogFeedbackSubmitter",
"LogSubmitter",
"RabbitMQSubmitter",
"GCSFeedbackSubmitter",
"LogFeedbackSubmitter",
]
14 changes: 7 additions & 7 deletions app/survey_config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
from app.survey_config.survey_config import SurveyConfig

__all__ = [
"ONSNHSSocialSurveyConfig",
"SocialSurveyConfig",
"UKHSAONSSocialSurveyConfig",
"SurveyConfig",
"BusinessSurveyConfig",
"NIBusinessSurveyConfig",
"DBTBusinessSurveyConfig",
"DBTNIBusinessSurveyConfig",
"DBTDSITBusinessSurveyConfig",
"DBTDSITNIBusinessSurveyConfig",
"ORRBusinessSurveyConfig",
"DBTNIBusinessSurveyConfig",
"DESNZBusinessSurveyConfig",
"DESNZNIBusinessSurveyConfig",
"Link",
"NIBusinessSurveyConfig",
"ONSNHSSocialSurveyConfig",
"ORRBusinessSurveyConfig",
"SocialSurveyConfig",
"SurveyConfig",
"UKHSAONSSocialSurveyConfig",
]
4 changes: 2 additions & 2 deletions app/views/contexts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

__all__ = [
"CalculatedSummaryContext",
"GrandCalculatedSummaryContext",
"Context",
"SubmitQuestionnaireContext",
"GrandCalculatedSummaryContext",
"HubContext",
"ListContext",
"SectionSummaryContext",
"SubmitQuestionnaireContext",
]
1,481 changes: 730 additions & 751 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ types-pytz = "^2024.1.0.20240417"
playwright = "^1.42.0"
black = "^24.2.0"
djlint = "^1.34.2"
ruff = "^0.7.0"
ruff = "^0.9.1"


[tool.poetry.dependencies]
Expand Down Expand Up @@ -105,6 +105,7 @@ exclude = ["tests/*", "scripts/*"]

[tool.ruff.lint]
extend-ignore = [
"A005", # Reusing a builtin module name for the name of a module
"B024", # No abstract methods in abstract base class
"B027", # Non-abstract empty methods in abstract base classes
"B028",# No explicit keyword argument found
Expand Down