Skip to content

Commit

Permalink
update Ruff and fix new linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Ramsay <[email protected]>
  • Loading branch information
seapagan committed Dec 30, 2024
1 parent 4993c61 commit f7d1fd6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
# files: ^renovate\.json$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
rev: v0.8.4
hooks:
- id: ruff
args: ["--output-format=concise"]
Expand All @@ -27,7 +27,7 @@ repos:
name: "format with ruff"

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.13.0" # Use the sha / tag you want to point at
rev: "v1.14.0" # Use the sha / tag you want to point at
hooks:
- id: mypy
name: "run mypy"
Expand All @@ -36,7 +36,7 @@ repos:

- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.9
rev: 0.5.13
hooks:
# Update the uv lockfile
- id: uv-lock
Expand Down
8 changes: 4 additions & 4 deletions app/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Settings(BaseSettings):

# Setup the Postgresql database.
db_user: str = "my_db_username"
db_password: str = "Sup3rS3cr3tP455w0rd" # nosec
db_password: str = "Sup3rS3cr3tP455w0rd" # noqa: S105
db_address: str = "localhost"
db_port: str = "5432"
db_name: str = "api-template"
Expand All @@ -52,13 +52,13 @@ class Settings(BaseSettings):

# Setup the TEST Postgresql database.
test_db_user: str = "my_db_username"
test_db_password: str = "Sup3rS3cr3tP455w0rd" # nosec
test_db_password: str = "Sup3rS3cr3tP455w0rd" # noqa: S105
test_db_address: str = "localhost"
test_db_port: str = "5432"
test_db_name: str = "api-template-test"

# JTW secret Key
secret_key: str = "32DigitsofSecretNumbers" # nosec
secret_key: str = "32DigitsofSecretNumbers" # noqa: S105
access_token_expire_minutes: int = 120

# Custom Metadata
Expand All @@ -71,7 +71,7 @@ class Settings(BaseSettings):

# email settings
mail_username: str = "test_username"
mail_password: str = "s3cr3tma1lp@ssw0rd" # nosec
mail_password: str = "s3cr3tma1lp@ssw0rd" # noqa: S105
mail_from: str = "[email protected]"
mail_port: int = 587
mail_server: str = "mail.server.com"
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ requests==2.32.3
rfc3986==1.5.0
rich==13.9.4
rtoml==0.11.0
ruff==0.8.3
ruff==0.8.4
shellingham==1.5.4
simple-toml-settings==0.8.0
six==1.16.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ bcrypt==4.0.1
blinker==1.8.2
certifi==2024.8.30
click==8.1.7
colorama==0.4.6 ; platform_system == 'Windows' or sys_platform == 'win32'
colorama==0.4.6 ; sys_platform == 'win32'
dnspython==2.7.0
email-validator==2.2.0
exceptiongroup==1.2.2 ; python_full_version < '3.11'
Expand Down
42 changes: 21 additions & 21 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f7d1fd6

Please sign in to comment.