-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
91 lines (80 loc) · 2.31 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
[build-system]
requires = ['flit_core>=3.9']
build-backend = 'flit_core.buildapi'
[project]
name = '153957-theme'
version = '5.0'
description = 'Theme for sigal generated photo albums'
readme = 'README.md'
requires-python = '>=3.13'
license = {file = 'LICENSE' }
authors = [
{name = 'Arne de Laat', email = 'arne@delaat.net'},
]
maintainers = [
{name = 'Arne de Laat', email = 'arne@delaat.net'},
]
keywords = [
'photo album',
'theme',
'sigal',
]
classifiers = [
'Environment :: Plugins',
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Markup :: HTML',
]
dependencies = [
'sigal==2.4',
]
[project.optional-dependencies]
dev = [
'mypy==1.13.0',
]
publish = [
'flit==3.10.1',
]
[project.urls]
Repository = 'https://github.com/153957/153957-theme/'
[tool.flit.module]
name = 'theme_153957'
[tool.mypy]
ignore_missing_imports = true
show_column_numbers = true
show_error_codes = true
strict = true
warn_return_any = true
warn_unused_configs = true
[tool.ruff]
line-length = 120
target-version = 'py311'
[tool.ruff.format]
quote-style = 'single' # Prefer single quotes, except for triple quotes strings
[tool.ruff.lint]
select = ['ALL'] # https://docs.astral.sh/ruff/rules/
ignore = [
'ANN101', # No need to add type to self
'ARG001', # Function has required argument, even if they are not used
'CPY001', # Do not require copyright notices
'D', # Ignore docstring checks
'EM', # Allow messages directly in exceptions
'FBT001', # Allow positional for boolean arguments
'FBT002', # Allow default value for boolean arguments
'INP001', # Ignore implicit namespace package for demo settings
'PD', # Not using pandas
'PLR0913', # Allow functions with many arguments
'PT', # Not using pytest
'RET504', # Allow variable assignment before return
'SIM108', # Allow if-else block instead of ternary
'T201', # Allow using print
'TRY003', # Specific messages for common exception classes
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint.per-file-ignores]
'demo/sigal.conf.py' = ['N999'] # Allow invalid module name for default config
[tool.ruff.lint.isort]
lines-between-types = 1