|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.0.0"] |
| 3 | + |
| 4 | +[project] |
| 5 | +name = "python-docx" |
| 6 | +authors = [{name = "Steve Canny", email = "stcanny@gmail.com"}] |
| 7 | +classifiers = [ |
| 8 | + "Development Status :: 5 - Production/Stable", |
| 9 | + "Environment :: Console", |
| 10 | + "Intended Audience :: Developers", |
| 11 | + "License :: OSI Approved :: MIT License", |
| 12 | + "Operating System :: OS Independent", |
| 13 | + "Programming Language :: Python", |
| 14 | + "Programming Language :: Python :: 3", |
| 15 | + "Programming Language :: Python :: 3.7", |
| 16 | + "Programming Language :: Python :: 3.8", |
| 17 | + "Programming Language :: Python :: 3.9", |
| 18 | + "Programming Language :: Python :: 3.10", |
| 19 | + "Programming Language :: Python :: 3.11", |
| 20 | + "Topic :: Office/Business :: Office Suites", |
| 21 | + "Topic :: Software Development :: Libraries", |
| 22 | +] |
| 23 | +dependencies = [ |
| 24 | + "lxml>=2.3.2", |
| 25 | +] |
| 26 | +description = "Create, read, and update Microsoft Word .docx files." |
| 27 | +dynamic = ["version"] |
| 28 | +keywords = ["docx", "office", "openxml", "word"] |
| 29 | +license = { text = "MIT" } |
| 30 | +readme = "README.rst" |
| 31 | +requires-python = ">=3.7" |
| 32 | + |
| 33 | +[project.urls] |
| 34 | +Changelog = "https://github.com/python-openxml/python-docx/blob/master/HISTORY.rst" |
| 35 | +Documentation = "https://python-docx.readthedocs.org/en/latest/" |
| 36 | +Homepage = "https://github.com/python-openxml/python-docx" |
| 37 | +Repository = "https://github.com/python-openxml/python-docx" |
| 38 | + |
| 39 | +[tool.black] |
| 40 | +target-version = ["py37", "py38", "py39", "py310", "py311"] |
| 41 | + |
| 42 | +[tool.pytest.ini_options] |
| 43 | +norecursedirs = [ |
| 44 | + "doc", |
| 45 | + "docx", |
| 46 | + "*.egg-info", |
| 47 | + "features", |
| 48 | + ".git", |
| 49 | + "ref", |
| 50 | + "_scratch", |
| 51 | + ".tox", |
| 52 | +] |
| 53 | +python_files = ["test_*.py"] |
| 54 | +python_classes = ["Test", "Describe"] |
| 55 | +python_functions = ["it_", "they_", "and_it_", "but_it_"] |
| 56 | + |
| 57 | +[tool.ruff] |
| 58 | +exclude = [] |
| 59 | +ignore = [ |
| 60 | + "COM812", # -- over-aggressively insists on trailing commas where not desired -- |
| 61 | +] |
| 62 | +select = [ |
| 63 | + # "C4", # -- flake8-comprehensions -- |
| 64 | + "COM", # -- flake8-commas -- |
| 65 | + "E", # -- pycodestyle errors -- |
| 66 | + "F", # -- pyflakes -- |
| 67 | + # "I", # -- isort (imports) -- |
| 68 | + "PLR0402", # -- Name compared with itself like `foo == foo` -- |
| 69 | + # "PT", # -- flake8-pytest-style -- |
| 70 | + # "SIM", # -- flake8-simplify -- |
| 71 | + "UP015", # -- redundant `open()` mode parameter (like "r" is default) -- |
| 72 | + "UP018", # -- Unnecessary {literal_type} call like `str("abc")`. (rewrite as a literal) -- |
| 73 | + "UP032", # -- Use f-string instead of `.format()` call -- |
| 74 | + "UP034", # -- Avoid extraneous parentheses -- |
| 75 | +] |
| 76 | +target-version = "py37" |
| 77 | + |
| 78 | +[tool.setuptools.dynamic] |
| 79 | +version = {attr = "docx.__version__"} |
0 commit comments