Skip to content

Commit

Permalink
Merge pull request #13182 from notatallshaw/enable-linting-rule-FA102
Browse files Browse the repository at this point in the history
Enable linting rule FA102 (future-required-type-annotation)
  • Loading branch information
notatallshaw authored Jan 26, 2025
2 parents 3e99c7c + 2d42f9a commit f5ff4fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-project.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
from os import PathLike
from pathlib import Path
from types import SimpleNamespace
from typing import Union


class EnvBuilder(venv.EnvBuilder):
"""A subclass of venv.EnvBuilder that exposes the python executable command."""

def ensure_directories(
self, env_dir: str | bytes | PathLike[str] | PathLike[bytes]
self, env_dir: Union[str, bytes, "PathLike[str]", "PathLike[bytes]"]
) -> SimpleNamespace:
context = super().ensure_directories(env_dir)
self.env_exec_cmd = context.env_exec_cmd
Expand Down
1 change: 1 addition & 0 deletions news/13182.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enabling linting rule FA102.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ select = [
"W",
"RUF100",
"UP",
"FA102", # future-required-type-annotation
]

[tool.ruff.lint.isort]
Expand Down

0 comments on commit f5ff4fa

Please sign in to comment.