-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
91 lines (81 loc) · 2.39 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[project]
name = "pycrusher"
version = "0.3.11"
description = "Generate lossy JPEG compressions for fun!"
readme = "README.md"
keywords = ["image processing", "jpeg", "lossy compression"]
license = { text = "Apache 2.0" }
authors = [
{ name = "Jones Martins", email = "15959626+jonesmartins@users.noreply.github.com" },
]
requires-python = ">=3.7"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Artistic Software",
"Typing :: Typed",
]
dependencies = ["importlib-metadata>=6.7", "pillow>=9.5", "tqdm>=4.66.5"]
urls.Issues = "https://github.com/jonesmartins/pycrusher/issues"
urls.Repository = "https://github.com/jonesmartins/pycrusher"
scripts.pycrusher = "pycrusher.cli:main"
[tool.ruff]
target-version = "py37"
format.preview = true
lint.select = ["ALL"]
lint.ignore = [
"ANN101", # no type annotation for self
# By Ruff's recommendation:
"COM812",
"CPY001", # copyright notices
"D203", # 'one blank line before class summary'
"D212", # 'multiline summary should start at second line'
"ISC001",
]
lint.per-file-ignores."tests/**/*.py" = [
"D", # no documentation lints
"PLR6301", # method could be function, class method or static method
"S101", # asserts not allowed
]
lint.preview = true
[tool.codespell]
# builtin = "clear,usage"
count = true
[tool.pytest.ini_options]
# For future reference: https://docs.pytest.org/en/7.1.x/reference/reference.html#ini-options-ref
xfail_strict = true
addopts = """\
--strict-config
--strict-markers
--cov=pycrusher
--cov-branch
--hypothesis-explain
"""
[tool.mypy]
show_error_codes = true
strict = true
[tool.uv]
package = true
dev-dependencies = [
"hypothesis>=6.79.4",
"mypy>=1.4.1",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.5.0",
"pytest>=7.4.4",
"types-colorama>=0.4.15.12",
"types-pillow>=10.1.0.2",
"types-pygments>=2.17.0.0",
"types-setuptools>=69.0.0.0",
"types-tqdm>=4.66.0.5",
]