-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpyproject.toml
137 lines (125 loc) · 4.6 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
[project]
name = "OpenFisca-Survey-Manager"
version = "3.0.4"
description = "A tool for managing survey/administrative data and import them in OpenFisca"
readme = "README.md"
keywords = ["microsimulation", "tax", "benefit", "rac", "rules-as-code", "survey", "data"]
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 = [
'chardet >=5.1.0, < 6.0',
'configparser >=5.3.0, < 8.0',
'humanize >=4.6.0, < 5.0',
'numpy >=1.24.2, <2.0',
'openfisca-core >=43.0.0, <44.0.0',
'pandas >=2.0.3, < 3.0',
'pyarrow >=13.0.0, < 19.0.0',
'pyxdg >=0.28, < 0.29',
'PyYAML >=6.0, < 7.0',
'tables >=3.8.0, < 4.0',
'tabulate >=0.9.0, < 0.10.0',
'weightedcalcs >=0.1.2, < 0.2.0',
'wquantiles >=0.6, < 0.7'
]
[project.urls]
Homepage = "https://github.com/openfisca/openfisca-survey-manager"
Repository = "https://github.com/openfisca/openfisca-survey-manager"
Issues = "https://github.com/openfisca/openfisca-survey-manager/issues"
Changelog = "https://github.com/openfisca/openfisca-survey-manager/blob/main/CHANGELOG.md"
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project.scripts]
# Command-line scripts
build-collection = "openfisca_survey_manager.scripts.build_collection:main"
[project.optional-dependencies]
matching = [
# 'feather',
'rpy2 >=3.5.10, < 4.0'
]
dev = [
'autopep8 >=2.0.2, < 3',
'coveralls >=3.3.1, < 5.0',
'Flake8-pyproject >=1.2.3, <2.0.0', # To read flake8 configuration from pyproject.toml
'flake8 >=6.0.0, < 8.0',
'flake8-bugbear >=23.3.12, < 25.0',
'flake8-docstrings >=1.7.0, < 2.0',
'flake8-print >=5.0.0, < 6.0',
'flake8-rst-docstrings >=0.3.0, < 0.4.0',
'openfisca-country-template >=7.1.5, <8.0.0',
'pytest', # Let OpenFisca-Core decide pytest version
'pytest-cov',
'scipy >=1.10.1, < 2.0',
'pytest-order'
]
casd = [
'autopep8 >=2.0.2, < 3',
'flake8 >=6.0.0, < 8.0',
'pycodestyle >=2.10.0, < 3.0',
'pytest',
'scipy >=1.10.1, < 2.0'
]
sas = [
'pyreadstat >=1.2.1, < 2.0',
'sas7bdat >=2.2.3, < 3.0'
]
[tool.flake8]
# ; C011X: We (progressively) document the code base.
# -; D10X: We (progressively) check docstrings (see https://www.pydocstyle.org/en/2.1.1/error_codes.html#grouping).
# -; DARXXX: We (progressively) check docstrings (see https://github.com/terrencepreilly/darglint#error-codes).
# -; 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.
# -; R0401: We avoid cyclic imports —required for unit/doc tests.
# -; RST301: We use Google Python Style (see https://pypi.org/project/flake8-rst-docstrings/)
# -; W503/504: We break lines before binary operators (Knuth's style).
hang-closing = true
ignore = ["E128", "E251", "F403", "F405", "E501", "RST301", "W503", "W504", "T001"]
docstring-quotes = "single"
inline-quotes = "single"
multiline-quotes = "single"
extend-ignore = "D"
in-place = true
include-in-doctest = ["openfisca_core/commons", "openfisca_core/types"]
rst-directives = ["attribute", "deprecated", "seealso", "versionadded", "versionchanged"]
rst-roles = ["any", "attr", "class", "exc", "func", "meth", "obj"]
strictness = "short"
[tool.pylint.message_control]
disable = ["all"]
enable = ["C0115", "C0116", "R0401"]
score = ["no"]
[tool.pep8]
hang-closing = true
ignore = ["E128","E251","F403","F405","E501","W503"]
in-place = true
[tool.pytest.ini_options]
addopts = "--doctest-modules --disable-pytest-warnings --showlocals"
testpaths = "openfisca_survey_manager"
doctest_optionflags = "ELLIPSIS IGNORE_EXCEPTION_DETAIL NUMBER NORMALIZE_WHITESPACE"
python_files = ["**/*.py"]
[tool.coverage.paths]
source = [
".",
"*/site-packages"
]
[tool.coverage.run]
branch = true
source = ["openfisca_survey_manager"]
[tool.coverage.report]
fail_under = 75
show_missing = true
skip_covered = true
skip_empty = true