From 5f685fbc9a3b431dd763dd4c9d5d743182f9a5a4 Mon Sep 17 00:00:00 2001 From: Tiago Requeijo Date: Mon, 19 Feb 2024 14:30:30 -0500 Subject: [PATCH] Remove black, use ruff instead --- pyproject.toml | 15 +++------------ src/config/__init__.py | 2 +- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 42d6983..8980a1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,12 +56,7 @@ scripts = { build = "" } [tool.hatch.envs.lint] detached = true -dependencies = [ - "black>=23.7.0", - "mypy>=1.4.1", - "pydocstyle>=6.0", - "ruff>=0.0.284", -] +dependencies = ["mypy>=1.4.1", "pydocstyle>=6.0", "ruff>=0.0.284"] features = ["cloud", "file-formats", "validation"] [tool.hatch.envs.lint.scripts] @@ -72,7 +67,6 @@ docs = "pydocstyle src" [tool.hatch.envs.test] template = "lint" dependencies = [ - "pytest-black>=0.3.12", "pytest-cov>=4.1.0", "pytest-mock>=3.5.0", "pytest-mypy>=0.10.3", @@ -95,12 +89,9 @@ template = "test" path = ".venv" features = ["cloud", "file-formats", "validation"] - [tool.ruff] line-length = 88 -exclude = ["tests", "docs"] - -[tool.ruff.lint] +exclude = ["tests", "docs", "src/config/_version.py"] ignore = ['D203', 'D213'] select = [ 'F', @@ -158,7 +149,7 @@ directory = 'cover' [tool.pytest.ini_options] minversion = "6.0" pythonpath = ["src"] -addopts = '--cov --cov-report=html --cov-report term-missing --ruff --mypy --black' +addopts = '--cov --cov-report=html --cov-report term-missing --ruff --mypy' filterwarnings = [ 'ignore::pytest.PytestDeprecationWarning', 'ignore::DeprecationWarning', diff --git a/src/config/__init__.py b/src/config/__init__.py index 14ed6a9..fa03152 100644 --- a/src/config/__init__.py +++ b/src/config/__init__.py @@ -22,10 +22,10 @@ import tomllib as toml +from ._version import __version__, __version_tuple__ # noqa: F401 from .configuration import Configuration from .configuration_set import ConfigurationSet from .helpers import InterpolateEnumType, InterpolateType -from ._version import __version__, __version_tuple__ def config(