-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
91 lines (84 loc) · 2.73 KB
/
pyproject.toml
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
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core>=3.4.0"]
[project.urls]
Homepage = "https://pypi.org/project/incipyt"
Download = "https://pypi.org/project/incipyt/#files"
Changelog = "https://github.com/NotANameServer/incipyt/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/NotANameServer/incipyt/issues"
Documentation = "https://github.com/NotANameServer/incipyt/wiki"
"Source Code" = "https://github.com/NotANameServer/incipyt"
[project]
authors = [
{name = "Not at Name", email = "[email protected]"},
]
description = "incipyt is a command-line tool that bootstraps a python project."
maintainers = [
{name = "Not at Name", email = "[email protected]"},
]
name = "incipyt"
readme = "README.md"
requires-python = ">=3.8, <4.0"
version = "0.4.0"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
]
dependencies = [
"click",
"signalslot",
"tomli_w",
"tomli; python_version<'3.11'"
]
[project.optional-dependencies]
dev = [
"flit==3.9.0",
"pre-commit==3.3.3",
]
doc = [
"m2r2==0.3.2",
"sphinxcontrib-apidoc==0.3.0",
"sphinx_rtd_theme==1.2.2",
]
test = [
"pytest-cov==4.1.0",
"pytest-subprocess==1.5.0",
]
[project.scripts]
incipyt = "incipyt.__main__:main"
[tool.black]
line-length = 98 # Compatibility with GitHub web editor
[tool.ruff]
fixable = [
"B", "C4", "D", "E", "ERA", "F", "G", "I", "PIE", "PLC", "Q", "RUF", "SIM", "W",
]
format = "github"
ignore = [
"B024", "B027", # Disable rules about missing abstract decorators
"D100", "D104", "D105", "D107", "D203", "D211", "D213",
# Ease rules for pydocstyle (module/package/magic method/empty lines)
"E501", "W505", # Disable rules about line-too-long, black does that
"FBT002", #Disable "Boolean default value in function definition" rule
"PLC1901", # Disable "(value == '') can be simplified to (not value)"
"RUF012", # Disable "should be annotated with typing.ClassVar"
]
select = [
"B", "C4", "D", "E", "ERA", "F", "G", "I", "PIE", "PLC", "Q", "RUF", "SIM", "W",
"A", "BLE", "FBT", "ISC", "N", "PLW", "PTH", "S", "YTT",
]
show-fixes = true
show-source = true
[tool.ruff.per-file-ignores]
# Disable pydocstyle for internal modules
"incipyt/**/__*__.py" = ["D"]
"incipyt/**/_*/**/*.py" = ["D"]
# Disable pydocstyle for template files
"incipyt/templates/**/*.py" = ["D", "N999"]
"tests/**/*.py" = ["D"] # Disable pydocstyle for python test files
"incipyt/**/__init__.py" = ["F401"] # Disable "unused-import" in __init__ files
"tests/**/test_*.py" = ["S101"] # Disable detection of assert usage in python test files