Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
49 lines (42 loc) · 1.45 KB
/
Copy pathpyproject.toml
File metadata and controls
49 lines (42 loc) · 1.45 KB
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
[build-system]
requires = [
'setuptools>=70.1',
'wheel',
'meson>=1.3',
'ninja',
'tomli; python_version < "3.11"',
]
build-backend = 'setuptools.build_meta'
[project]
name = 'pixpat'
# Keep version in sync with meson.build (single source of truth would be nice;
# revisit if it ever drifts in practice).
version = '1.2.2'
description = 'Pixel format conversion and test pattern generation'
requires-python = '>=3.10'
authors = [{name = 'Tomi Valkeinen', email = 'tomi.valkeinen@ideasonboard.com'}]
dependencies = []
[project.optional-dependencies]
dev = ['pytest', 'numpy', 'pixutils @ git+https://github.com/tomba/pixutils.git']
all = ['pixpat[dev]']
[tool.setuptools]
package-dir = {'' = 'pixpat-python'}
packages = ['pixpat']
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-select = [
'E', # pycodestyle errors
'W', # pycodestyle warnings
'F', # Pyflakes: undefined/unused names, bad imports, f-string mistakes
'FA', # flake8-future-annotations: require `from __future__ import annotations`
'Q', # flake8-quotes: quote style, configured under lint.flake8-quotes below
'UP', # pyupgrade: rewrite idioms obsolete for our minimum Python
'PLE', # Pylint errors: things that are outright broken
'PLW', # Pylint warnings: suspicious but legal constructs
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
multiline-quotes = 'double' # only 'double' is compatible with the formatter
[tool.ruff.format]
quote-style = 'single'