Skip to content

Commit

Permalink
Update pyproject.toml with Ruff and Mypy configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Feb 20, 2024
1 parent 1be03e1 commit d079be8
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,35 @@ dev = [
]

[project.entry-points."pynxtools.reader"]
mpes = "pynxtools_mpes.reader:MPESReader"
mpes = "pynxtools_mpes.reader:MPESReader"

[tool.ruff]
include = ["pynxtools/*.py", "tests/*.py"]
select = [
"E", # pycodestyle
"W", # pycodestyle
"PL", # pylint
]
ignore = [
"E501", # Line too long ({width} > {limit} characters)
"E701", # Multiple statements on one line (colon)
"E731", # Do not assign a lambda expression, use a def
"E402", # Module level import not at top of file
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"PLR2004", # Magic value used instead of constant
"PLW0603", # Using the global statement
"PLW2901", # redefined-loop-name
"PLR1714", # consider-using-in
"PLR5501", # else-if-used
]
fixable = ["ALL"]

[tool.mypy]
strict = false
ignore_missing_imports = true
follow_imports = "silent"
no_strict_optional = true
disable_error_code = "import, annotation-unchecked"

0 comments on commit d079be8

Please sign in to comment.