Skip to content

Commit

Permalink
Lint (#44)
Browse files Browse the repository at this point in the history
* upgrade ruff

* lint
  • Loading branch information
jschlyter authored Nov 25, 2024
1 parent 0aab7ae commit 9630b48
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: check-toml
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.8.0
hooks:
# Run the linter.
- id: ruff
Expand Down
6 changes: 3 additions & 3 deletions evrec/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Annotated, Tuple, Type
from typing import Annotated

from pydantic import BaseModel, DirectoryPath, Field, UrlConstraints
from pydantic_core import Url
Expand Down Expand Up @@ -35,10 +35,10 @@ class Settings(BaseSettings):
@classmethod
def settings_customise_sources(
cls,
settings_cls: Type[BaseSettings],
settings_cls: type[BaseSettings],
init_settings: PydanticBaseSettingsSource,
env_settings: PydanticBaseSettingsSource,
dotenv_settings: PydanticBaseSettingsSource,
file_secret_settings: PydanticBaseSettingsSource,
) -> Tuple[PydanticBaseSettingsSource, ...]:
) -> tuple[PydanticBaseSettingsSource, ...]:
return (TomlConfigSettingsSource(settings_cls),)
40 changes: 20 additions & 20 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jsonschema = {extras = ["format"], version = ">=4.22.0"}

[tool.poetry.group.dev.dependencies]
pytest = "^8.2.0"
ruff = "^0.7.1"
ruff = ">=0.8.0"
pytest-ruff = "^0.4.1"

[build-system]
Expand Down

0 comments on commit 9630b48

Please sign in to comment.