Skip to content

Commit

Permalink
More cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
benjello committed Nov 26, 2024
1 parent f2d245c commit 89184c1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 51 deletions.
27 changes: 22 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [
'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',
'wquantiles >=0.6, < 0.7'
]

[project.urls]
Expand All @@ -51,7 +51,7 @@ build-collection = "openfisca_survey_manager.scripts.build_collection:main"
[project.optional-dependencies]
matching = [
'feather',
'rpy2 >=3.5.10, < 4.0',
'rpy2 >=3.5.10, < 4.0'
]
dev = [
'autopep8 >=2.0.2, < 3',
Expand All @@ -65,18 +65,18 @@ dev = [
'pytest >=8.3.3, < 9.0',
'pytest-cov >=4.0.0, < 7.0',
'scipy >=1.10.1, < 2.0',
'pytest-order >=1.1.0, <2.0',
'pytest-order >=1.1.0, <2.0'
]
casd = [
'autopep8 >=2.0.2, < 3',
'flake8 >=6.0.0, < 8.0',
'pycodestyle >=2.10.0, < 3.0',
'pytest >=7.2.2, < 8.0',
'scipy >=1.10.1, < 2.0',
'scipy >=1.10.1, < 2.0'
]
sas = [
'pyreadstat >=1.2.1, < 2.0',
'sas7bdat >=2.2.3, < 3.0',
'sas7bdat >=2.2.3, < 3.0'
]

[tool.flake8]
Expand All @@ -101,3 +101,20 @@ 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
46 changes: 0 additions & 46 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,49 +1,3 @@
; 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).

[flake8]
extend-ignore = D
hang-closing = true
ignore = E128,E251,F403,F405,E501,RST301,W503,W504,T001
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

[pylint.message_control]
disable = all
enable = C0115,C0116,R0401
score = no

[coverage:paths]
source = . */site-packages

[coverage:run]
branch = true
source = openfisca_survey_manager

[coverage:report]
fail_under = 75
show_missing = true
skip_covered = true
skip_empty = true

[tool:pytest]
addopts = --doctest-modules --disable-pytest-warnings --showlocals
; addopts = --showlocals --exitfirst --doctest-modules --disable-pytest-warnings --cov=openfisca_survey_manager
doctest_optionflags = ELLIPSIS IGNORE_EXCEPTION_DETAIL NUMBER NORMALIZE_WHITESPACE
python_files = **/*.py
testpaths = openfisca_survey_manager

[mypy]
ignore_missing_imports = True
install_types = True
Expand Down

0 comments on commit 89184c1

Please sign in to comment.