-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
116 lines (110 loc) · 2.67 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
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
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.metadata]
module = "pythonbible"
author = "Nathan Patton"
author-email = "npatton@gmail.com"
home-page = "https://docs.python.bible"
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License"
]
requires = []
description-file = "README.md"
requires-python = ">=3.8"
[tool.flit.metadata.urls]
Documentation = "https://docs.python.bible"
Source = "https://github.com/avendesora/pythonbible"
[tool.ruff.lint]
select = [
"A",
"ANN",
"ARG",
"B",
"BLE",
"COM",
"C4",
"C90",
"D",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FBT",
"G",
"I",
"ICN",
"INP",
"ISC",
"N",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"T10",
"T20",
"W",
]
ignore = [
"COM812", # conflicts with formatter
"D100",
"D101",
"D102",
"D103",
"D104",
"D205",
"D203",
"D213",
"ISC001", # conflicts with formatter
]
[tool.ruff.lint.per-file-ignores]
"docs/source/conf.py" = ["A001", "E501"]
"pythonbible/__init__.py" = ["F401"]
"pythonbible/bible/bible.py" = ["PLR0913", "FBT"]
"pythonbible/books.py" = ["ARG003", "PYI034"]
"pythonbible/book_groups.py" = ["ARG003", "PYI034"]
"pythonbible/counters/book_counter.py" = ["TCH001"]
"pythonbible/counters/chapter_counter.py" = ["TCH001"]
"pythonbible/counters/verse_counter.py" = ["TCH001"]
"pythonbible/errors.py" = ["PLR0913"]
"pythonbible/formatter.py" = ["ANN401", "FBT", "PLR0911"]
"pythonbible/parser.py" = ["PLR2004"]
"pythonbible/roman_numeral_util.py" = ["E741"]
"pythonbible/versions.py" = ["ARG003", "PYI034"]
"tests/*.py" = ["D100", "D103", "D104", "PLR2004", "S101", "TRY301"]
"tests/conftest.py" = ["E501", "RUF"]
"tests/errors_test.py" = ["PT017"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.mypy]
exclude = ["pythonbible/bible/asv/*", "pythonbible/bible/kjv/*", ".*_test.py"]