-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
194 additions
and
69 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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ description = 'A Python client for interfacing with the Gotenberg API' | |
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = "MPL-2.0" | ||
keywords = [] | ||
keywords = ["api", "pdf", "html", "client"] | ||
authors = [ | ||
{ name = "Trenton H", email = "[email protected]" }, | ||
] | ||
|
@@ -18,7 +18,7 @@ classifiers = [ | |
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
"Environment :: Web Environment", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
|
@@ -39,7 +39,6 @@ Source = "https://github.com/stumpylog/gotenberg-client/" | |
Changelog = "https://github.com/stumpylog/gotenberg-client/blob/main/CHANGELOG.md" | ||
|
||
[project.optional-dependencies] | ||
compression = ["httpx[http2,brotli] ~= 0.24"] | ||
magic = ["python-magic"] | ||
|
||
[tool.hatch.version] | ||
|
@@ -60,7 +59,6 @@ dependencies = [ | |
"pytest-httpx ~= 0.22; python_version < '3.9'", | ||
"pikepdf", | ||
"python-magic", | ||
"brotli", | ||
] | ||
|
||
[tool.hatch.envs.default.scripts] | ||
|
@@ -90,7 +88,7 @@ python = ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
|
||
[tool.hatch.envs.pre-commit] | ||
dependencies = [ | ||
"pre-commit>=3.4.0", | ||
"pre-commit>=3.5.0", | ||
] | ||
|
||
[tool.hatch.envs.pre-commit.scripts] | ||
|
@@ -101,8 +99,8 @@ update = ["pre-commit autoupdate"] | |
detached = true | ||
dependencies = [ | ||
"black>=23.9.1", | ||
"mypy>=1.0.0", | ||
"ruff>=0.0.292", | ||
"mypy>=1.6.0", | ||
"ruff>=0.1.0", | ||
"httpx", | ||
] | ||
|
||
|
@@ -112,6 +110,7 @@ typing = [ | |
"mypy --install-types --non-interactive {args:src/gotenberg_client}" | ||
] | ||
style = [ | ||
"ruff --version", | ||
"ruff {args:.}", | ||
"black --check --diff {args:.}", | ||
] | ||
|
@@ -135,25 +134,33 @@ fix = true | |
output-format = "grouped" | ||
target-version = "py38" | ||
line-length = 120 | ||
# https://docs.astral.sh/ruff/rules/ | ||
extend-select = [ | ||
"A", | ||
"ARG", | ||
"B", | ||
"C", | ||
"C4", | ||
"COM", | ||
"DTZ", | ||
"E", | ||
"EM", | ||
"ERA", | ||
"EXE", | ||
"F", | ||
"FBT", | ||
"FLY", | ||
"I", | ||
"ICN", | ||
"INP", | ||
"INT", | ||
"ISC", | ||
"N", | ||
"PERF", | ||
"PIE", | ||
"PGH", | ||
"PTH", | ||
"PL", | ||
"PLC", | ||
"PLE", | ||
"PLR", | ||
|
@@ -164,8 +171,14 @@ extend-select = [ | |
"RUF", | ||
"S", | ||
"SIM", | ||
"SLF", | ||
"T", | ||
"T10", | ||
"T20", | ||
"TCH", | ||
"TD", | ||
"TID", | ||
"TRY", | ||
"UP", | ||
"W", | ||
"YTT", | ||
|
@@ -179,6 +192,8 @@ ignore = [ | |
"S105", "S106", "S107", | ||
# Ignore complexity | ||
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915", | ||
# Ignore no author and missing issue link in TODO tags | ||
"TD002", "TD003" | ||
] | ||
|
||
[tool.ruff.isort] | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2023-present Trenton H <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
__version__ = "0.2.0" | ||
__version__ = "0.3.0" |
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
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
Binary file not shown.
Empty file.
Binary file not shown.
Oops, something went wrong.