Skip to content

Commit

Permalink
Remove black, use ruff instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tr11 committed Feb 19, 2024
1 parent 8dba390 commit 5f685fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5f685fb

Please sign in to comment.