|
1 | | -[tool.poetry] |
2 | | -name = "quick-xmltodict" |
3 | | -version = "0.1.2" |
4 | | -description = "Efficient XML-to-dict conversion backed by Rust" |
5 | | -authors = [ "Daniel Hjertholm <[email protected]>"] |
6 | | -package-mode = false |
7 | | - |
8 | 1 | [project] |
9 | 2 | name = "quick-xmltodict" |
10 | 3 | description = "Efficient XML-to-dict conversion backed by Rust" |
11 | 4 | version = "0.1.2" |
12 | | -keywords = ["xmltodict", "xml-to-dict", "xml", "fast", "rust"] |
13 | 5 | authors = [{ name = "Daniel Hjertholm", email = "[email protected]"}] |
14 | | -license = {file = "LICENSE"} |
| 6 | +readme = "README.md" |
| 7 | +license = "MIT" |
| 8 | +keywords = ["xmltodict", "xml-to-dict", "xml", "fast", "rust"] |
15 | 9 | requires-python = ">=3.10" |
16 | 10 | classifiers = [ |
17 | | - "Programming Language :: Rust", |
| 11 | + "Intended Audience :: Developers", |
18 | 12 | "Programming Language :: Python :: Implementation :: CPython", |
19 | 13 | "Programming Language :: Python :: Implementation :: PyPy", |
20 | | - "Programming Language :: Python :: 3", |
21 | | - "Intended Audience :: Developers", |
| 14 | + "Programming Language :: Python :: 3.10", |
| 15 | + "Programming Language :: Python :: 3.11", |
| 16 | + "Programming Language :: Python :: 3.12", |
| 17 | + "Programming Language :: Rust", |
22 | 18 | "Topic :: Text Processing :: Markup :: XML", |
23 | | - "License :: OSI Approved :: MIT License", |
24 | 19 | ] |
25 | | -dynamic = ["version"] |
26 | | -readme = "README.md" |
| 20 | +dependencies = [] |
27 | 21 |
|
28 | 22 | [project.urls] |
29 | | -Repository = "https://github.com/statnett/quick-xmltodict.git" |
30 | | - |
31 | | -[tool.poetry.dependencies] |
32 | | -python = "^3.10" |
33 | | - |
34 | | -[tool.poetry.group.dev.dependencies] |
35 | | -maturin = "*" |
36 | | -pytest = "*" |
37 | | -xmltodict = "*" |
38 | | -pre-commit = "*" |
39 | | - |
40 | | -[build-system] |
41 | | -requires = ["maturin>=1.5,<2.0"] |
42 | | -build-backend = "maturin" |
| 23 | +Repository = "https://github.com/statnett/quick-xmltodict" |
| 24 | + |
| 25 | +[dependency-groups] |
| 26 | +dev = [ |
| 27 | + "maturin>=1.8.1", |
| 28 | + "pre-commit>=4.0.1", |
| 29 | + "pytest>=8.3.4", |
| 30 | + "ruff>=0.9.1", |
| 31 | + "xmltodict>=0.14.2", |
| 32 | +] |
43 | 33 |
|
44 | 34 | [tool.maturin] |
45 | 35 | features = ["pyo3/extension-module"] |
46 | 36 |
|
47 | 37 | [tool.ruff] |
48 | | -target-version = "py310" |
49 | 38 | line-length = 120 |
50 | 39 |
|
51 | 40 | [tool.ruff.lint] |
52 | | -select = [ |
53 | | - "A", # flake8-builtins |
54 | | - "ANN", # flake8-annotations |
55 | | - "ARG", # flake8-unused-arguments |
56 | | - "B", # flake8-bugbear |
57 | | - "C4", # flake8-comprehensions |
58 | | - "C90", # mccabe |
59 | | - "COM", # flake8-commas |
60 | | - "D", # pydocstyle |
61 | | - "DTZ", # flake8-datetimez |
62 | | - "E", "W", # pycodestyle |
63 | | - "F", # Pyflakes |
64 | | - "FLY", # flynt |
65 | | - "FURB", # refurb |
66 | | - "G", # flake8-logging-format |
67 | | - "I", # isort |
68 | | - "LOG", # flake8-logging |
69 | | - "N", # pep8-nameing |
70 | | - "NPY", # numpy specific rules |
71 | | - "PERF", # Perflint |
72 | | - "PIE", # flake8-pie |
73 | | - "RUF", # Ruff specific rules |
74 | | - "S", # flake8-bandit |
75 | | - "SIM", # flake8-simplify |
76 | | - "T20", # flake8-print |
77 | | - "TCH001", # flake8-type-checking |
78 | | - "TRY", # tryceratops |
79 | | - "UP", # pyupgrade |
80 | | - "YTT", # flake8-2020 |
81 | | -] |
82 | | - |
83 | | -ignore = ['S101', 'ANN101', 'ANN102', 'ANN401', 'TRY003', 'D100', 'D101', 'D102', 'D103', 'D104', 'D105', 'D107'] |
84 | | - |
85 | | -# Allow autofix for all enabled rules (when `--fix`) is provided. |
86 | | -fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"] |
87 | | -unfixable = [] |
88 | | - |
89 | | -# Exclude a variety of commonly ignored directories. |
90 | | -exclude = [ |
91 | | - ".bzr", |
92 | | - ".direnv", |
93 | | - ".eggs", |
94 | | - ".git", |
95 | | - ".git-rewrite", |
96 | | - ".hg", |
97 | | - ".mypy_cache", |
98 | | - ".nox", |
99 | | - ".pants.d", |
100 | | - ".pytype", |
101 | | - ".ruff_cache", |
102 | | - ".src", |
103 | | - ".svn", |
104 | | - ".tox", |
105 | | - ".venv", |
106 | | - "__pypackages__", |
107 | | - "_build", |
108 | | - "buck-out", |
109 | | - "build", |
110 | | - "dist", |
111 | | - "node_modules", |
112 | | - "target", |
113 | | - "venv", |
114 | | -] |
115 | | - |
116 | | -# Allow unused variables when underscore-prefixed. |
117 | | -dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
118 | | - |
119 | | -[tool.ruff.lint.pydocstyle] |
120 | | -convention = "google" |
121 | | - |
122 | | -[tool.ruff.lint.per-file-ignores] |
123 | | -"tests/test*.py" = ["ANN001", "ANN201"] |
124 | | -"benchmarking.py" = ["T201"] |
| 41 | +extend-select = ["I", "RUF", "UP", "B", "PERF"] |
| 42 | +fixable = ["ALL"] |
125 | 43 |
|
126 | | -[tool.ruff.lint.flake8-import-conventions] |
127 | | -[tool.ruff.lint.flake8-import-conventions.aliases] |
128 | | -# Declare the default aliases. |
129 | | -numpy = "np" |
130 | | -pandas = "pd" |
131 | | -scipy = "sp" |
132 | | - |
133 | | -[tool.ruff.lint.isort] |
134 | | -known-first-party = [] |
| 44 | +[build-system] |
| 45 | +requires = ["maturin>=1.8,<2.0"] |
| 46 | +build-backend = "maturin" |
0 commit comments