-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
88 lines (82 loc) · 2.92 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
[project]
name = "OpenFisca-Tunisia-Pension"
version = "4.0.0"
description = "OpenFisca Rules as Code model for Tunisia pensions."
readme = "README.md"
keywords = ["microsimulation", "tax", "benefit", "pension", "rac", "rules-as-code", "tunisia"]
authors = [
{name = "OpenFisca Team", email = "[email protected]"},
]
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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Information Analysis",
]
requires-python = ">= 3.9"
dependencies = [
'bottleneck >=1.4.2, <2.0.0',
'numpy >=1.24.3, <2',
'openfisca-core[web-api] >=41.5.0, <41.5.3',
'scipy >= 0.12',
]
[project.urls]
Homepage = "https://github.com/openfisca/openfisca-tunisia-pension"
Repository = "https://github.com/openfisca/openfisca-tunisia-pension"
Documentation = "https://openfisca.org/doc"
Issues = "https://github.com/openfisca/openfisca-tunisia-pension/issues"
Changelog = "https://github.com/openfisca/openfisca-tunisia-pension/blob/main/CHANGELOG.md"
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project.optional-dependencies]
dev = [
"autopep8 >=2.0.2, <3.0",
"Flake8-pyproject>=1.2.3, <2.0.0", # To read flake8 configuration from pyproject.toml
"flake8 >=6.0.0, <7.0.0",
"flake8-print >=5.0.0, <6.0.0",
"flake8-quotes >=3.3.2",
"pytest", # Let OpenFisca-Core decide pytest version
"scipy >=1.10.1, <2.0",
"requests >=2.28.2, <3.0",
"yamllint >=1.30.0, <2.0"
]
notebook = [
'ipykernel >= 4.8',
'jupyter-client >= 5.2',
'matplotlib >= 2.2',
'nbconvert >= 5.3',
'nbformat >= 4.4',
'pandas >= 0.22.0',
]
[tool.flake8]
# ; E128/133: We prefer hang-closing visual indents
# ; E251: We prefer `function(x = 1)` over `function(x=1)`
# ; E501: We do not enforce a maximum line length
# ; F403/405: We ignore * imports
# ; W503/504: We break lines before binary operators (Knuth's style)
hang-closing = true
ignore = ["E128","E251","F403","F405","E501","W503"]
docstring-quotes = "single"
inline-quotes = "single"
multiline-quotes = "single"
[tool.pep8]
hang-closing = true
ignore = ["E128","E251","F403","F405","E501","W503"]
in-place = true
[tool.pytest.ini_options]
addopts = "--showlocals --exitfirst --doctest-modules --disable-pytest-warnings"
testpaths = "tests"
python_files = "**/*.py"
filterwarnings = [
"error",
"ignore::UserWarning",
'ignore:function ham\(\) is deprecated:DeprecationWarning',
"ignore:invalid value encountered in divide:RuntimeWarning",
"ignore:invalid value encountered in multiply:RuntimeWarning",
"ignore:divide by zero encountered in divide:RuntimeWarning",
]