-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (120 loc) · 3.24 KB
/
pyproject.toml
File metadata and controls
129 lines (120 loc) · 3.24 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[project]
name = 'iommi'
version = '7.23.0'
description = 'iommi is a high level framework built on django'
authors = [
{ name = "Anders Hovmöller", email = "boxed@killingar.net" },
{ name = "Johan Lübcke", email = "johan@lubcke.se" },
]
readme = "README.rst"
requires-python = ">=3.9"
keywords = ["iommi"]
license = "BSD-2-Clause"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
]
dependencies = [
"pyparsing",
"Django >= 3.2",
]
[dependency-groups]
dev = [
"beautifulsoup4==4.12.3",
"django-fastdev>=1.13.0",
"flask",
"furo>=2024.8.6",
"gprof2dot",
"parso",
"pytest-django==4.8.0",
"pytest==8.1.1",
"pytest-snapshot==0.9.0",
"ruff==0.3.7",
"sphinx>=7.4.7",
"time-machine==2.14.1",
"docutils>=0.21.2",
"pyparsing>=3.2.0",
"sphinx-llms-txt==0.2.2",
"coverage>=7.8.2",
"pytest-cov>=6.1.1",
"watchdog>=6.0.0",
]
[project.urls]
Homepage = "https://github.com/iommirocks/iommi"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.package-dir]
iommi = "iommi"
[tool.ruff]
exclude = [
"docs",
'docs/test_doc_styles.py',
]
line-length = 120
[tool.ruff.lint]
ignore = [
"E501", # Line too long
"N801", # Class name should use CapWords convention
"UP032", # Use f-string instead of format call
"UP008", # Use `super()` instead of `super(__class__, self)`
"N818", # Exception name `UnknownMissingValueException` should be named with an Error suffix
]
select = [
"E",
"F",
"I",
"N",
"W",
"UP",
]
[tool.ruff.format]
quote-style = "preserve"
[tool.pytest.ini_options]
pythonpath = [
''
]
testpaths = [
'tests',
'iommi',
'docs',
]
# --strict: warnings become errors.
# -r fEsxXw: show extra test summary info for everything.
addopts = """
--strict
-r fEsxXw
--no-migrations
--junitxml=testreport.xml
"""
DJANGO_SETTINGS_MODULE = "tests.settings"
python_files = [
'test_*.py',
'helpers.py',
'*__tests.py',
]
markers = [
'django_db',
'django',
'flask',
]
filterwarnings = [
"error",
"ignore:Using or importing the ABCs from.*:DeprecationWarning",
"ignore:the imp module is deprecated in favour of importlib.*:DeprecationWarning",
"ignore:.*Django now detects this configuration automatically.*",
"ignore::UserWarning",
"ignore:The USE_L10N setting is deprecated.*",
"ignore:parameter codeset is deprecated.*",
"ignore:'cgi' is deprecated and slated for removal in Python 3.13.*",
"ignore:Passing unrecognized arguments to super",
"ignore:.*Reloading models is not advised as it can lead to inconsistencies, most notably with related models.*",
"ignore:.*FASTDEV_STRICT_IF.*",
"ignore:.*The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser.*",
"ignore:.*The frontend.Option class will be removed in Docutils 0.21 or later.*",
"ignore:.*The default date converter is deprecated as of Python 3.12; see the sqlite3 documentation for suggested replacement recipes.*",
]
# Silence warning about pytest 6.0
junit_family = "xunit1"