-
Notifications
You must be signed in to change notification settings - Fork 99
/
pyproject.toml
94 lines (88 loc) · 3.03 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
[project]
name = "OpenFisca-France"
version = "169.13.0"
description = "OpenFisca Rules as Code model for France."
readme = "README.md"
keywords = ["microsimulation", "tax", "benefit", "rac", "rules-as-code", "france"]
authors = [
{name = "OpenFisca Team", email = "contact@openfisca.fr"},
]
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 = [
"numpy >=1.24.3, <2",
"openfisca-core[web-api] >=43, <44"
]
[project.urls]
Homepage = "https://github.com/openfisca/openfisca-france"
Repository = "https://github.com/openfisca/openfisca-france"
Documentation = "https://openfisca.org/doc"
Issues = "https://github.com/openfisca/openfisca-france/issues"
Changelog = "https://github.com/openfisca/openfisca-france/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"
]
inversion_revenus = [
"scipy >=1.10.1, <2.0",
]
de_net_a_brut = [
"scipy >=1.10.1, <2.0",
]
taxipp = [
"pandas >=1.5.3, <2.0",
]
casd-dev = [
# Same as dev with packages not available at CASD removed
"autopep8 >=2.0.2, <3.0",
"pytest", # Let OpenFisca-Core decide pytest version
"requests >=2.28.2, <3.0",
"scipy >=1.10.1, <2.0", # Only used to test de_net_a_brut reform
]
[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",
]