From f6ced21095ae9944c5828029a7e208239a60f0d6 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 29 Sep 2024 09:12:20 +0200 Subject: [PATCH] Changed pre-commit to use local config. --- .pre-commit-config.yaml | 19 ++++++++----------- that_depends/providers/base.py | 2 -- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3260bb7..85d289e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,10 @@ repos: -- repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.8 +- repo: local hooks: - - id: ruff - args: [ --fix, --exit-non-zero-on-fix ] - - id: ruff-format - types_or: [ python, pyi] -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 - hooks: - - id: mypy - args: [--strict, --ignore-missing-imports] \ No newline at end of file + - id: lint + name: lint + entry: just + args: [lint] + language: system + types: [python] + pass_filenames: false \ No newline at end of file diff --git a/that_depends/providers/base.py b/that_depends/providers/base.py index bcede3b..bd8bfa9 100644 --- a/that_depends/providers/base.py +++ b/that_depends/providers/base.py @@ -15,8 +15,6 @@ class AbstractProvider(typing.Generic[T_co], abc.ABC): """Abstract Provider Class.""" - __slots__ = ("_override",) - def __init__(self) -> None: super().__init__() self._override: typing.Any = None