|
| 1 | +# scriv's pyproject.toml |
| 2 | + |
| 3 | +[project] |
| 4 | +name = "scriv" |
| 5 | +description = "Scriv changlog management tool" |
| 6 | +authors = [ |
| 7 | + { name = "Ned Batchelder", email = "[email protected]"}, |
| 8 | +] |
| 9 | +license.text = "Apache-2.0" |
| 10 | +classifiers = [ |
| 11 | + "Development Status :: 5 - Production/Stable", |
| 12 | + "Intended Audience :: Developers", |
| 13 | + "License :: OSI Approved :: Apache Software License", |
| 14 | + "Programming Language :: Python", |
| 15 | + "Programming Language :: Python :: 3", |
| 16 | + "Programming Language :: Python :: 3.9", |
| 17 | + "Programming Language :: Python :: 3.10", |
| 18 | + "Programming Language :: Python :: 3.11", |
| 19 | + "Programming Language :: Python :: 3.12", |
| 20 | + "Programming Language :: Python :: 3.13", |
| 21 | +] |
| 22 | + |
| 23 | +requires-python = ">= 3.9" |
| 24 | + |
| 25 | +dynamic = ["readme", "version", "dependencies"] |
| 26 | + |
| 27 | +[project.urls] |
| 28 | +"Mastodon" = "https://hachyderm.io/@nedbat" |
| 29 | +"Funding" = "https://github.com/sponsors/nedbat" |
| 30 | +"Issues" = "https://github.com/nedbat/scriv/issues" |
| 31 | +"Source" = "https://github.com/nedbat/scriv" |
| 32 | +"Home" = "https://github.com/nedbat/scriv" |
| 33 | +"Documentation" = "https://scriv.readthedocs.io" |
| 34 | + |
| 35 | +[project.scripts] |
| 36 | +scriv = "scriv.cli:cli" |
| 37 | + |
| 38 | +[project.optional-dependencies] |
| 39 | +toml = [ |
| 40 | + "tomli; python_version < \"3.11\"" |
| 41 | +] |
| 42 | +yaml = [ |
| 43 | + "pyyaml" |
| 44 | +] |
| 45 | + |
1 | 46 | [build-system] |
2 | 47 | requires = ["setuptools"] |
3 | 48 | build-backend = "setuptools.build_meta" |
| 49 | + |
| 50 | +[tool.setuptools.packages.find] |
| 51 | +where = ["src"] |
| 52 | + |
| 53 | +[tool.setuptools.package-data] |
| 54 | +scriv = [ |
| 55 | + "templates/*.*", |
| 56 | +] |
| 57 | + |
| 58 | +[tool.setuptools.dynamic] |
| 59 | +version.attr = "scriv.__version__" |
| 60 | +readme.file = ["README.rst", "CHANGELOG.rst"] |
| 61 | +dependencies.file = ["requirements/core.txt"] |
| 62 | + |
| 63 | +[tool.scriv] |
| 64 | +ghrel_template = "file: ghrel_template.md.j2" |
| 65 | +rst_header_chars = "-." |
| 66 | +version = "literal: src/scriv/__init__.py: __version__" |
| 67 | + |
| 68 | +[tool.isort] |
| 69 | +indent = " " |
| 70 | +line_length = 80 |
| 71 | +multi_line_output = 3 |
| 72 | +include_trailing_comma = true |
| 73 | + |
| 74 | +[tool.pytest] |
| 75 | +addopts = "-rfe" |
| 76 | +norecursedirs = [".*", "docs", "requirements"] |
| 77 | + |
| 78 | +[tool.coverage.run] |
| 79 | +branch = true |
| 80 | +source = [ |
| 81 | + "scriv", |
| 82 | + "tests", |
| 83 | +] |
| 84 | +omit = [ |
| 85 | + "*/__main__.py", |
| 86 | +] |
| 87 | + |
| 88 | +[tool.coverage.report] |
| 89 | +precision = 2 |
| 90 | +exclude_also = [ |
| 91 | + "def __repr__", |
| 92 | +] |
| 93 | + |
| 94 | +[tool.coverage.paths] |
| 95 | +source = [ |
| 96 | + "src", |
| 97 | + "*/site-packages", |
| 98 | +] |
| 99 | + |
| 100 | +others = [ |
| 101 | + ".", |
| 102 | + "*/scriv", |
| 103 | +] |
| 104 | + |
| 105 | +[tool.mypy] |
| 106 | +python_version = "3.9" |
| 107 | +show_column_numbers = true |
| 108 | +show_error_codes = true |
| 109 | +ignore_missing_imports = true |
| 110 | +check_untyped_defs = true |
| 111 | +warn_return_any = true |
| 112 | + |
| 113 | +[tool.doc8] |
| 114 | +max-line-length = 80 |
| 115 | + |
| 116 | +[tool.pycodestyle] |
| 117 | +exclude = [".git", ".tox"] |
| 118 | +# E203 = whitespace before ':' |
| 119 | +# E501 line too long |
| 120 | +# W503 line break before binary operator |
| 121 | +ignore = ["E203", "E501", "W503"] |
| 122 | + |
| 123 | +[tool.pydocstyle] |
| 124 | +# D105 = Missing docstring in magic method |
| 125 | +# D200 = One-line docstring should fit on one line with quotes |
| 126 | +# D203 = 1 blank line required before class docstring |
| 127 | +# D212 = Multi-line docstring summary should start at the first line |
| 128 | +# D406 = Section name should end with a newline (numpy style) |
| 129 | +# D407 = Missing dashed underline after section (numpy style) |
| 130 | +# D413 = Missing blank line after last section (numpy style) |
| 131 | +ignore = ["D105", "D200", "D203", "D212", "D406", "D407", "D413"] |
0 commit comments