Skip to content

Commit

Permalink
Set *Ruff* language version to *Python* 3.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Oct 13, 2024
1 parent 37c3e80 commit fcd9a81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions colour_datasets/loaders/labsphere2019.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
doi:10.5281/zenodo.3245875
"""

from __future__ import annotations

import os

import numpy as np
from colour import SpectralDistribution
from colour.hints import Dict, Optional
from colour.hints import Dict
from colour.utilities import tsplit

from colour_datasets.loaders import AbstractDatasetLoader
Expand Down Expand Up @@ -95,7 +97,7 @@ def load(self) -> Dict[str, SpectralDistribution]:
return self._content


_DATASET_LOADER_LABSPHERE2019: Optional[DatasetLoader_Labsphere2019] = None
_DATASET_LOADER_LABSPHERE2019: DatasetLoader_Labsphere2019 | None = None
"""
Singleton instance of the *Labsphere (2019)* *Labsphere SRS-99-020* dataset
loader.
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ reportUnusedExpression = false
addopts = "--durations=5"

[tool.ruff]
target-version = "py39"
target-version = "py310"
line-length = 88
select = [
"A", # flake8-builtins
Expand Down Expand Up @@ -206,6 +206,7 @@ ignore = [
"RET508",
"TRY003",
"TRY300",
"UP038",
]
typing-modules = ["colour.hints"]
fixable = ["B", "C", "E", "F", "PIE", "RUF", "SIM", "UP", "W"]
Expand Down

0 comments on commit fcd9a81

Please sign in to comment.