generated from openfisca/country-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
136 lines (126 loc) · 3.38 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=61" ]
[project]
name = "openfisca-nouvelle_caledonie"
version = "7.1.8"
description = "OpenFisca Rules as Code model for Nouvelle Calédonie."
readme = "README.md"
keywords = [ "benefit", "microsimulation", "rac", "rules-as-code", "tax" ]
maintainers = [ ]
authors = [ ]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
"openfisca-core[web-api]>=43",
]
optional-dependencies.dev = [
"isort>=5.13.2,<6",
"ruff>=0.6.9,<1",
"ruff-lsp>=0.0.57,<1",
"yamllint>=1.35.1",
]
urls.Changelog = "https://github.com/openfisca/openfisca-nouvelle_caledonie/blob/main/CHANGELOG.md"
urls.Documentation = "https://openfisca.org/doc"
urls.Homepage = "https://github.com/openfisca/openfisca-nouvelle_caledonie"
urls.Issues = "https://github.com/openfisca/openfisca-nouvelle_caledonie/issues"
urls.Repository = "https://github.com/openfisca/openfisca-nouvelle_caledonie"
[tool.ruff]
target-version = "py39"
format.docstring-code-line-length = 72
format.docstring-code-format = true
lint.select = [ "ALL" ]
lint.ignore = [
"ANN",
"COM812",
"D101",
"D102",
"D104",
"E501",
"I001",
"ISC001",
"N801",
"N805",
"N806",
"PLR2004",
"PTH100",
"PTH118",
"PTH120",
"PTH123",
]
lint.pydocstyle.convention = "google"
[tool.isort]
case_sensitive = true
combine_as_imports = true
force_alphabetical_sort_within_sections = false
group_by_package = true
honor_noqa = true
include_trailing_comma = true
known_first_party = [ "openfisca-nouvelle_caledonie" ]
known_openfisca = [ "openfisca_core", "openfisca_nouvelle_caledonie" ]
known_typing = [ "*collections.abc*", "*typing*", "*typing_extensions*" ]
known_types = [ "*types*" ]
multi_line_output = 3
profile = "black"
py_version = 39
sections = [
"FUTURE",
"TYPING",
"TYPES",
"STDLIB",
"THIRDPARTY",
"OPENFISCA",
"FIRSTPARTY",
"LOCALFOLDER",
]
[tool.pyproject-fmt]
column_width = 79
indent = 4
max_supported_python = "3.11"
[tool.pytest.ini_options]
addopts = "--exitfirst --showlocals --doctest-modules --disable-warnings --import-mode importlib"
testpaths = [ "openfisca_nouvelle_caledonie/tests" ]
python_files = "**/*.py"
[tool.tox]
requires = [ "tox>=4.20" ]
env_list = [ "py39", "py310", "py311", "lint", "dist" ]
[tool.tox.env_run_base]
allowlist_externals = [ "make" ]
commands = [ [ "make", "test" ] ]
commands_pre = [
[
"pip",
"install",
"--find-links",
".",
"openfisca-nouvelle_caledonie",
],
]
[tool.tox.env.lint]
allowlist_externals = [ "make" ]
basepython = [ "py39" ]
commands = [ [ "make", "lint" ] ]
commands_pre = [
[
"pip",
"install",
"--find-links",
".",
"openfisca-nouvelle_caledonie[dev]",
],
]
[tool.tox.env.dist]
basepython = [ "py39" ]
commands = [ [ "twine", "check", "dist/*" ] ]
commands_pre = [ [ "python", "-m", "build" ] ]
deps = [ "build", "twine" ]