-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
164 lines (139 loc) · 3.25 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[build-system]
build-backend = 'setuptools.build_meta'
requires = ['setuptools', 'setuptools_scm[toml]']
[tool.setuptools_scm]
[tool.setuptools.package-data]
jewcal = [
'py.typed',
]
[project]
authors = [{name = 'essel-dev'}]
classifiers = [
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Utilities',
'Typing :: Typed',
]
dependencies = [
"astral>=3.2",
]
description = 'Convert Gregorian to Jewish dates with holidays and zmanim (Diaspora/Israel).'
dynamic = ['version']
keywords = [
'jewish calendar',
'hebrew calendar',
'zmanim',
]
license = {file = 'LICENSE'}
name = 'jewcal'
readme = 'README.rst'
requires-python = '>=3.10'
[project.urls]
'Bug Tracker' = 'https://github.com/essel-dev/jewcal/issues'
'Changelog' = 'https://github.com/essel-dev/jewcal/releases'
'Documentation' = 'https://jewcal.readthedocs.io/'
'GitHub' = 'https://github.com/essel-dev/jewcal'
[project.scripts]
jewcal = 'jewcal.__main__:main'
[project.optional-dependencies]
dev = [
'pre-commit',
'tox',
'sphinx',
'sphinx-rtd-theme',
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
py{310,311,312,313}
ruff-format
ruff-lint
pylint
mypy
darglint
pre-commit
docs
jewcal
[testenv]
package = wheel
wheel_build_env = .pkg
deps =
coverage
py310: coverage[toml]
commands =
coverage run -m unittest discover
py313: coverage report -m
[testenv:pylint]
deps = pylint
commands = pylint src tests docs
[testenv:ruff-lint]
deps = ruff
commands = ruff check --fix
[testenv:ruff-format]
deps = ruff
commands = ruff format
[testenv:mypy]
deps = mypy
commands = mypy
[testenv:darglint]
deps = darglint
commands = darglint -s google src docs
[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files
[testenv:docs]
changedir=docs/source
deps =
sphinx
sphinx-rtd-theme
allowlist_externals = make
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:jewcal]
allowlist_externals = jewcal
commands = jewcal
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313, isort, ruff-format, ruff-lint, pylint, mypy, darglint, jewcal
"""
[tool.coverage.run]
source = [
'src',
]
[tool.ruff.lint]
ignore = [
'ANN101', # flake8-annotations : missing-type-self: deprecated
'PT009', # Use a regular `assert` instead of unittest-style `assertEqual`
]
select = [
'ALL',
]
[tool.ruff.lint.per-file-ignores]
'docs/source/conf.py' = ['INP001'] # __init__.py missing
'src/jewcal/__main__.py' = ['T201', 'T203'] # print, pprint
'src/jewcal/core.py' = ['SLF001'] # Private member accessed
[tool.ruff.lint.pydocstyle]
convention = 'google'
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.format]
docstring-code-format = true
quote-style = 'single'
[tool.mypy]
enable_error_code = ['ignore-without-code', 'redundant-expr', 'truthy-bool']
explicit_package_bases = true
files = 'src, tests, docs'
namespace_packages = true
show_error_codes = true
strict = true
warn_unreachable = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = 'jewcal.*'