Skip to content

Commit

Permalink
Migrate to pyproject.toml from config.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-cty committed Oct 21, 2024
1 parent 85dbe21 commit 3f5c512
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
27 changes: 24 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,37 @@ casd-dev = [
"scipy >=1.10.1, <2.0", # Only used to test de_net_a_brut reform
]


# ; 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)

[tool.flake8]
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 --doctest-modules"
testpaths = [ "openfisca_country_template/tests" ]
addopts = "--showlocals --exitfirst --doctest-modules --disable-pytest-warnings"
testpaths = "tests"
python_files = "**/*.py"
filterwarnings = [
"error",
"ignore::UserWarning",
'ignore:function ham\(\) is deprecated:DeprecationWarning'
'ignore:function ham\(\) is deprecated:DeprecationWarning',
"ignore:invalid value encountered in divide:RuntimeWarning",
]


[tool.pylint.messages_control]
disable = [
"invalid-name",
Expand Down
22 changes: 0 additions & 22 deletions setup.cfg

This file was deleted.

0 comments on commit 3f5c512

Please sign in to comment.