-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use poethepoet as task runner, and update some of the runner. also update the github action to use the task runner
- Loading branch information
Showing
4 changed files
with
63 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,8 @@ name = "paspybin" | |
version = "1.0.1" | ||
description = "Python Pastebin API Wrapper" | ||
authors = ["Kira <[email protected]>"] | ||
maintainers = [ | ||
"Kira <[email protected]>", | ||
"vexra <[email protected]>", | ||
] | ||
packages = [ | ||
{ include = "*", from = "src" } | ||
] | ||
maintainers = ["Kira <[email protected]>", "vexra <[email protected]>"] | ||
packages = [{ include = "*", from = "src" }] | ||
license = "MIT" | ||
readme = "README.md" | ||
homepage = "https://github.com/kiraware/paspybin" | ||
|
@@ -53,7 +48,7 @@ optional = true | |
[tool.poetry.group.docs.dependencies] | ||
mkdocs = "^1.5.3" | ||
mkdocs-material = "^9.5.4" | ||
mkdocstrings = {extras = ["python"], version = "^0.25.0"} | ||
mkdocstrings = { extras = ["python"], version = "^0.25.0" } | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
@@ -63,10 +58,14 @@ backend-path = ["src"] | |
[tool.poe.tasks] | ||
bandit = "bandit -c pyproject.toml -r ." | ||
mypy = "mypy" | ||
ruff = "ruff check --fix" | ||
ruff-fix = "ruff check --fix" | ||
ruff = "ruff check" | ||
lint = ["bandit", "mypy", "ruff"] | ||
format-check = "ruff format --check" | ||
format = "ruff format" | ||
test = "pytest --cov=src --cov-report=html" | ||
docs-build = "poetry run mkdocs build" | ||
docs-serve = "poetry run mkdocs serve" | ||
test = "pytest --cov=src" | ||
|
||
[tool.bandit] | ||
targets = ["src", "tests"] | ||
|
@@ -80,40 +79,21 @@ files = ["src", "tests"] | |
strict_optional = false | ||
|
||
[tool.ruff] | ||
exclude = [ | ||
".venv", | ||
".git", | ||
"__pycache__", | ||
"build", | ||
"dist", | ||
"venv", | ||
] | ||
exclude = [".venv", ".git", "__pycache__", "build", "dist", "venv"] | ||
line-length = 88 | ||
target-version = "py311" | ||
src = ["src", "tests"] | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"E", | ||
"F", | ||
"W", | ||
"I", | ||
] | ||
select = ["E", "F", "W", "I"] | ||
ignore = [] | ||
|
||
[tool.ruff.format] | ||
docstring-code-format = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"-vvv", | ||
"--doctest-modules", | ||
"--import-mode=importlib", | ||
] | ||
pythonpath = [ | ||
".", | ||
"src", | ||
] | ||
addopts = ["-vvv", "--doctest-modules", "--import-mode=importlib"] | ||
pythonpath = [".", "src"] | ||
testpaths = ["tests"] | ||
asyncio_mode = "auto" | ||
env_files = [".env"] |