mirror of
https://github.com/venthur/blag.git
synced 2025-11-25 20:52:43 +00:00
replaced flake8 with ruff
This commit is contained in:
2
Makefile
2
Makefile
@@ -33,7 +33,7 @@ mypy: $(VENV)
|
|||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: $(VENV)
|
lint: $(VENV)
|
||||||
$(BIN)/flake8
|
$(BIN)/ruff .
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: $(VENV)
|
build: $(VENV)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ dev = [
|
|||||||
"wheel",
|
"wheel",
|
||||||
"pytest",
|
"pytest",
|
||||||
"pytest-cov",
|
"pytest-cov",
|
||||||
"flake8",
|
"ruff",
|
||||||
"mypy",
|
"mypy",
|
||||||
"types-markdown",
|
"types-markdown",
|
||||||
]
|
]
|
||||||
@@ -61,6 +61,22 @@ addopts = """
|
|||||||
--cov-report=term-missing:skip-covered
|
--cov-report=term-missing:skip-covered
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
[tool.ruff]
|
||||||
|
select = [
|
||||||
|
"F", # pyflakes
|
||||||
|
"E", "W", # pycodestyle
|
||||||
|
"C90", # mccabe
|
||||||
|
"I", # isort
|
||||||
|
"D", # pydocstyle
|
||||||
|
"UP" # pyupgrade
|
||||||
|
]
|
||||||
|
line-length = 79
|
||||||
|
src = ["blag", "tests"]
|
||||||
|
target-version = "py38"
|
||||||
|
|
||||||
|
[tool.ruff.pydocstyle]
|
||||||
|
convention = "numpy"
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
files = "blag,tests"
|
files = "blag,tests"
|
||||||
strict = true
|
strict = true
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ twine==4.0.2
|
|||||||
wheel==0.41.2
|
wheel==0.41.2
|
||||||
pytest==7.4.2
|
pytest==7.4.2
|
||||||
pytest-cov==4.1.0
|
pytest-cov==4.1.0
|
||||||
flake8==6.1.0
|
ruff==0.0.290
|
||||||
mypy==1.5.1
|
mypy==1.5.1
|
||||||
types-markdown==3.4.2.10
|
types-markdown==3.4.2.10
|
||||||
|
|||||||
Reference in New Issue
Block a user