-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (96 loc) · 3.07 KB
/
pyproject.toml
File metadata and controls
110 lines (96 loc) · 3.07 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "ckanext-pygments"
version = "1.4.1"
description = "Provides previews with syntax highlight for multiple formats"
authors = [
{ name = "DataShades", email = "datashades@linkdigital.com.au" },
{ name = "Sergey Motornyuk", email = "sergey.motornyuk@linkdigital.com.au" },
{ name = "Oleksandr Cherniavskyi", email = "mutantsan@gmail.com" },
]
maintainers = [{ name = "DataShades", email = "datashades@linkdigital.com.au" }]
license = { text = "AGPL" }
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = ["CKAN"]
urls = { Homepage = "https://github.com/DataShades/ckanext-pygments" }
dependencies = ["Pygments>=2.19.2,<3.0.0"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.entry-points]
"babel.extractors" = { ckan = "ckan.lib.extract:extract_ckan" }
[project.entry-points."ckan.plugins"]
pygments_view = "ckanext.pygments.plugin:PygmentsPlugin"
[project.optional-dependencies]
admin = ["ckanext-admin_panel>=1.0.14"]
[tool.setuptools.packages]
find = {}
[tool.pytest.ini_options]
filterwarnings = [
"ignore::sqlalchemy.exc.SADeprecationWarning",
"ignore::sqlalchemy.exc.SAWarning",
"ignore::DeprecationWarning",
]
addopts = "--ckan-ini test.ini"
[tool.ruff.lint.isort]
section-order = [
"future",
"standard-library",
"first-party",
"third-party",
"ckan",
"ckanext",
"self",
"local-folder",
]
[tool.ruff.lint.isort.sections]
ckan = ["ckan"]
ckanext = ["ckanext"]
self = ["ckanext.pygments"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"B", # likely bugs and design problems
"BLE", # do not catch blind exception
"C40", # better list/set/dict comprehensions
"C90", # check McCabe complexity
"COM", # trailing commas
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"G", # format strings for logging statements
"N", # naming conventions
"PL", # pylint
"PT", # pytest style
"PIE", # misc lints
"Q", # preferred quoting style
"RET", # improvements for return statements
"RSE", # improvements for rise statements
# "S", # security testing
"SIM", # simplify code
"T10", # debugging statements
"T20", # print statements
"TID", # tidier imports
"TRY", # better exceptions
"UP", # upgrade syntax for newer versions of the language
]
ignore = [
"E712", # comparison to bool: violated by SQLAlchemy filters
"PLC1901", # simplify comparison to empty string: violated by SQLAlchemy filters
"TRY003", # allow providing an error message to exception instance
"COM812", # conflicts with `ruff format`
]
[tool.ruff.lint.per-file-ignores]
"ckanext/pygments/logic/schema.py" = ["PLR0913"]
[tool.ruff.format]
quote-style = "double"