Skip to content
Snippets Groups Projects
pyproject.toml 2.06 KiB
Newer Older
description = "Odoo addon to use redner (producer of reports and emails)"
dynamic = ["version"]
readme = "README.rst"
Axel Prel's avatar
Axel Prel committed
requires-python = "~=3.11"
license = { file = "LICENSE", name = "GNU Affero General Public License v3" }
keywords = ["odoo"]
authors = [{ name = "XCG Consulting" }]
classifiers = [
  "Programming Language :: Python",
  "Programming Language :: Python :: 3",
Axel Prel's avatar
Axel Prel committed
  "Programming Language :: Python :: 3.11",
Axel Prel's avatar
Axel Prel committed
  "Framework :: Odoo :: 18.0",
Vincent Hatakeyama's avatar
Vincent Hatakeyama committed
  "License :: OSI Approved :: GNU Affero General Public License v3",
Axel Prel's avatar
Axel Prel committed
  "odoo==18.0.*",
  "odoo-addon-converter >=18.0.1,<18.0.4",
  "requests_unixsocket",
Axel Prel's avatar
Axel Prel committed
doc = ["sphinx"]
test = []

[project.urls]
repository = "https://orus.io/xcg/odoo-modules/redner"
Axel Prel's avatar
Axel Prel committed
changelog = "https://orus.io/xcg/odoo-modules/redner/-/blob/branch/18.0/NEWS.rst"
documentation = "https://xcg.pages.orus.io/odoo-modules/redner/en/"
Axel Prel's avatar
Axel Prel committed
requires = ["hatchling >=1.19", "hatch-vcs"]
build-backend = "hatchling.build"
Axel Prel's avatar
Axel Prel committed
[tool.hatch.build]
exclude = [
  "/doc/",
  "/.editorconfig",
Axel Prel's avatar
Axel Prel committed
  "/eslint.config.cjs",
  "/.gitlab-ci.yml",
Axel Prel's avatar
Axel Prel committed
  "/.hgignore",
  "/.hgtags",
Axel Prel's avatar
Axel Prel committed
  "/prettier.config.cjs",
Vincent Hatakeyama's avatar
Vincent Hatakeyama committed
  "/.yamllint.yaml",
Axel Prel's avatar
Axel Prel committed
]
Axel Prel's avatar
Axel Prel committed
[tool.hatch.build.targets.wheel]
include = [
  "*.csv",
  "/i18n/",
  "/static/",
  "README.rst",
  "*.xml",
  "*.py",
  "*.svg",
Vincent Hatakeyama's avatar
Vincent Hatakeyama committed
  "*.png",
Axel Prel's avatar
Axel Prel committed
]
Axel Prel's avatar
Axel Prel committed
[tool.hatch.build.targets.wheel.sources]
"" = "odoo/addons/redner"
Axel Prel's avatar
Axel Prel committed
[tool.hatch.version]
source = "vcs"
Houzefa Abbasbhay's avatar
Houzefa Abbasbhay committed
[tool.isort]
Axel Prel's avatar
Axel Prel committed
section-order = [
  "future",
  "standard-library",
  "third-party",
  "odoo",
  "odoo-addons",
  "first-party",
Vincent Hatakeyama's avatar
Vincent Hatakeyama committed
  "local-folder",
Axel Prel's avatar
Axel Prel committed

[tool.isort.sections]
"odoo" = ["odoo"]
"odoo-addons" = ["odoo.addons"]

[tool.ruff.lint.mccabe]
max-complexity = 16

[tool.ruff]
Axel Prel's avatar
Axel Prel committed
target-version = "py311"
Axel Prel's avatar
Axel Prel committed

[tool.ruff.lint]
extend-select = [
  "B",
  "C90",
  "E501", # line too long (default 88)
Vincent Hatakeyama's avatar
Vincent Hatakeyama committed
  "I",    # isort
  "UP",   # pyupgrade
Axel Prel's avatar
Axel Prel committed
]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
Vincent Hatakeyama's avatar
Vincent Hatakeyama committed
"__manifest__.py" = ["B018"]     # useless expression