Skip to content

Commit

Permalink
metadata, drop black
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Dec 2, 2024
1 parent 24d59d7 commit dff14cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ update: ## Update dependencies
all: ## Run an entire CI pipeline
make format lint test

format: ## Format with all tools
make black
format: ## Format with ruff
ruff format

lint: ## Lint with all tools
make ruff mypy
Expand All @@ -38,9 +38,6 @@ test: ## Run tests

##

black: ## Format with black
black ${SOURCE}

ruff: ## Lint with ruff
ruff check --fix --unsafe-fixes ${SOURCE}

Expand Down
28 changes: 10 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ full = [

[dependency-groups]
dev = [
"black>=24.10.0",
"mypy>=1.13.0",
"pytest-asyncio>=0.24.0",
"pytest>=8.3.3",
Expand All @@ -71,28 +70,21 @@ docs = [

]

# [tool.black]
# line-length = 120
# target-version = ["py312"]
# skip-string-normalization = true

[tool.ruff]
line-length = 120
target-version = "py312"

# [tool.ruff.lint]
# # ignore = [
# # "E402", # module level import not at top of file
# # "E501", # line too long
# # ]
# # extend-select = ["B", "C4", "FA", "G", "I", "PTH", "Q", "RET", "RUF", "TCH", "UP"]
# extend-select = ["I", "Q"]
# flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" }
# isort = { force-single-line = true, known-first-party = ["aiosubstrate"] }
[tool.ruff.lint]
# extend-select = ["B", "C4", "FA", "G", "I", "PTH", "Q", "RET", "RUF", "TCH", "UP"]
extend-select = ["I", "Q"]
flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" }
isort = { force-single-line = true, known-first-party = ["aiosubstrate"] }

[tool.ruff.format]
quote-style = "single"

# [tool.mypy]
# python_version = "3.12"
# strict = false
[tool.mypy]
strict = false

[tool.pytest.ini_options]
addopts="--cov-report=term-missing --cov=aiosubstrate --cov-report=xml -s -v"
Expand Down
Empty file added src/aiosubstrate/py.typed
Empty file.

0 comments on commit dff14cf

Please sign in to comment.