-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (132 loc) · 4.02 KB
/
Copy pathpyproject.toml
File metadata and controls
150 lines (132 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "nf-icons"
version = "0.1.1"
description = "Typed Python access to every Nerd Fonts glyph."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "programmersd21", email = "geniussantu1983@gmail.com" }]
keywords = ["nerd-fonts", "icons", "glyphs", "terminal", "cli", "tui"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Terminals",
"Typing :: Typed",
]
dependencies = ["rapidfuzz>=3.0"]
[project.optional-dependencies]
dev = [
"build>=1.2",
"mypy>=1.10",
"pillow>=11",
"pytest>=8",
"ruff>=0.6",
"pyright>=1.1",
]
[project.scripts]
nerdicons = "nerdicons.cli:main"
[project.urls]
Homepage = "https://github.com/programmersd21/nerdicons"
Documentation = "https://github.com/programmersd21/nerdicons#readme"
Repository = "https://github.com/programmersd21/nerdicons"
Issues = "https://github.com/programmersd21/nerdicons/issues"
Changelog = "https://github.com/programmersd21/nerdicons/blob/main/CHANGELOG.md"
# ---------------------------------------------------------------------------
# Build
# ---------------------------------------------------------------------------
[tool.hatch.build.targets.wheel]
packages = ["src/nerdicons"]
[tool.hatch.build.targets.sdist]
include = [
"src/nerdicons",
"generator",
"docs",
"examples",
"README.md",
"LICENSE",
"CHANGELOG.md",
"CONTRIBUTING.md",
"SECURITY.md",
]
# ---------------------------------------------------------------------------
# Ruff
# ---------------------------------------------------------------------------
[tool.ruff]
target-version = "py311"
line-length = 100
exclude = [
".venv",
"build",
"dist",
# Generated icon modules — linting these is pointless and slow.
"src/nerdicons/icons.py",
"src/nerdicons/cod.py",
"src/nerdicons/custom.py",
"src/nerdicons/dev.py",
"src/nerdicons/extra.py",
"src/nerdicons/fa.py",
"src/nerdicons/fae.py",
"src/nerdicons/iec.py",
"src/nerdicons/indent.py",
"src/nerdicons/indentation.py",
"src/nerdicons/linux.py",
"src/nerdicons/md.py",
"src/nerdicons/oct.py",
"src/nerdicons/pl.py",
"src/nerdicons/ple.py",
"src/nerdicons/pom.py",
"src/nerdicons/seti.py",
"src/nerdicons/weather.py",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"RUF", # ruff-specific rules
]
[tool.ruff.lint.isort]
known-first-party = ["nerdicons", "generator"]
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
# ---------------------------------------------------------------------------
# Type checking
# ---------------------------------------------------------------------------
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "strict"
include = ["src", "tests"]
reportMissingImports = false
[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true
follow_imports = "skip"
exclude = "^src/nerdicons/(cod|custom|dev|extra|fa|fae|iec|indent|indentation|linux|md|oct|pl|ple|pom|seti|weather|icons)\\.py$"
[[tool.mypy.overrides]]
module = ["rapidfuzz.*", "numpy", "numpy.*"]
ignore_missing_imports = true
follow_imports = "skip"
# ---------------------------------------------------------------------------
# Testing
# ---------------------------------------------------------------------------
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --tb=short"
pythonpath = ["."]