| 1 |
# SPDX-FileCopyrightText: © 2023 Christian BUHTZ <[email protected]> |
| 2 |
# |
| 3 |
# SPDX-License-Identifier: CC0-1.0 |
| 4 |
# |
| 5 |
# This file is released under Creative Commons Zero 1.0 (CC0-1.0) and part of |
| 6 |
# the Python Distribution Package "buhtzology" which as a whole is released |
| 7 |
# under GNU General Public License v3 (GPLv3). |
| 8 |
# See LICENSES directory or go to <https://spdx.org/licenses/CC0-1.0.html> |
| 9 |
# and <https://spdx.org/licenses/GPL-3.0-only.html>. |
| 10 |
[build-system] |
| 11 |
requires = ["setuptools"] |
| 12 |
build-backend = "setuptools.build_meta" |
| 13 |
|
| 14 |
[project] |
| 15 |
name = "hyperorg" |
| 16 |
version = "0.2.0" |
| 17 |
description = """ |
| 18 |
Converts Org-mode and Org-roam files into HTML for serverless local use.""" |
| 19 |
readme = "README.md" |
| 20 |
requires-python = ">=3.11" |
| 21 |
keywords = ["emacs", |
| 22 |
"org", |
| 23 |
"orgmode", |
| 24 |
"orgroam", |
| 25 |
"html", |
| 26 |
"css", |
| 27 |
"zettelkasten"] |
| 28 |
license = "GPL-3.0-only" |
| 29 |
classifiers = [ |
| 30 |
"Programming Language :: Python", |
| 31 |
"Environment :: Console", |
| 32 |
"Intended Audience :: Education", |
| 33 |
"Intended Audience :: Science/Research", |
| 34 |
"Intended Audience :: Developers", |
| 35 |
"Intended Audience :: Information Technology", |
| 36 |
"Intended Audience :: System Administrators", |
| 37 |
"Intended Audience :: Other Audience", |
| 38 |
"Operating System :: OS Independent", |
| 39 |
"Topic :: Education", |
| 40 |
"Topic :: Office/Business", |
| 41 |
"Topic :: Scientific/Engineering", |
| 42 |
"Topic :: Scientific/Engineering :: Information Analysis", |
| 43 |
"Topic :: Sociology", |
| 44 |
"Topic :: Text Editors :: Emacs", |
| 45 |
"Topic :: Text Processing :: Markup", |
| 46 |
"Topic :: Text Processing :: Markup :: HTML", |
| 47 |
"Topic :: Utilities" |
| 48 |
] |
| 49 |
authors = [ |
| 50 |
{name = "Christian Buhtz", email = "[email protected]"} |
| 51 |
] |
| 52 |
|
| 53 |
dependencies = [ |
| 54 |
"orgparse", |
| 55 |
"python-dateutil", |
| 56 |
"packaging", |
| 57 |
] |
| 58 |
|
| 59 |
[project.optional-dependencies] |
| 60 |
develop = [ |
| 61 |
"pytest", # Not mandatory |
| 62 |
"pyfakefs >= 5.7.0", # Fake filesystems for unit testing |
| 63 |
"flake8", |
| 64 |
"ruff >= 0.6.0", # PEP8 and some more checks (via unittest) |
| 65 |
"pylint >= 3.3.0", # Find code smells and common bad coding habit |
| 66 |
"pygments", # Some unittests not working without |
| 67 |
"codespell", # common typos |
| 68 |
"reuse >= 5.0.2", # REUSE specification |
| 69 |
] |
| 70 |
|
| 71 |
[project.urls] |
| 72 |
homepage = "https://codeberg.org/buhtz/hyperorg" |
| 73 |
repository = "https://codeberg.org/buhtz/hyperorg" |
| 74 |
changelog = "https://codeberg.org/buhtz/hyperorg/src/CHANGELOG.md" |
| 75 |
|
| 76 |
[project.scripts] |
| 77 |
hyperorg = "hyperorg.__main__:main" |
| 78 |
|
| 79 |
[tool.setuptools.package-dir] |
| 80 |
hyperorg = "src/hyperorg" |
| 81 |
|
| 82 |
[tool.ruff] |
| 83 |
# Ruff counting branches different from PyLint. |
| 84 |
# See: <https://www.reddit.com/r/learnpython/comments/ |
| 85 |
# 1buojae/comment/kxu0mp3> |
| 86 |
pylint.max-branches=13 |
| 87 |
|
| 88 |
[tool.codespell] |
| 89 |
skip = [ |
| 90 |
"pyproject.toml", |
| 91 |
".git", |
| 92 |
"__pycache__", |
| 93 |
".pytest_cache", |
| 94 |
".ruff_cache", |
| 95 |
".mypy_cache", |
| 96 |
"build", |
| 97 |
"*.egg-info", |
| 98 |
"docs", |
| 99 |
"#*.py#", |
| 100 |
".venv", |
| 101 |
"venv", |
| 102 |
"*.html", |
| 103 |
"pygments.css", |
| 104 |
] |
| 105 |
|
| 106 |
enable-colors = true |
| 107 |
# Print N lines of surrounding context |
| 108 |
context = 1 |
| 109 |
# Check hidden files also |
| 110 |
check-hidden = true |
| 111 |
|
| 112 |
# Dictionaries to use (default: "clear,rare"). Current: all. |
| 113 |
builtin = [ |
| 114 |
"clear", |
| 115 |
"rare", |
| 116 |
"informal", |
| 117 |
"usage", |
| 118 |
"code", |
| 119 |
"names", |
| 120 |
"en-GB_to_en-US", |
| 121 |
] |
| 122 |
|
| 123 |
|
| 124 |
# Print number of errors as last line on stderr |
| 125 |
count = true |
| 126 |
|
| 127 |
# Simulate "# noqa" and ignore all lines with |
| 128 |
# "# codespell-ignore" at the end. |
| 129 |
# Credits: https://github.com/codespell-project/codespell/ |
| 130 |
# issues/1212#issuecomment-1721152455 |
| 131 |
ignore-regex = ".*# codespell-ignore$" |
| 132 |
# Allowed (ignored) words |
| 133 |
ignore-words-list = ["assertIn"] |
| 134 |
# Allowed (ignored) words in URLs and URIs |
| 135 |
uri-ignore-words-list = ["master"] |