Skip to content

Commit

Permalink
add more lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Aug 10, 2023
1 parent 765f009 commit b31dac4
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ write_to = "gliderpy/_version.py"
write_to_template = "__version__ = '{version}'"
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"

[tool.pytest.ini_options]
filterwarnings = [
"error:::gliderpy.*",
"ignore::UserWarning",
"ignore::RuntimeWarning",
]

[tool.ruff]
select = [
"A", # flake8-builtins
Expand All @@ -62,6 +55,13 @@ select = [
"I", # import sorting
"T20", # flake8-print
"UP", # upgrade
"ERA", # flake8-eradicate/eradicate (remove commented out code)
"PIE", # flake8-pie (misc lints)
"SIM", # flake8-simplify (reduce code complexity)
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"N", # pep8-naming
"RUF", # Ruff-specific rules
]
target-version = "py38"
line-length = 79
Expand All @@ -70,6 +70,14 @@ line-length = 79
"docs/source/conf.py" = [
"E402",
"A001",
"ERA001",
]

[tool.pytest.ini_options]
filterwarnings = [
"error:::gliderpy.*",
"ignore::UserWarning",
"ignore::RuntimeWarning",
]

[tool.check-manifest]
Expand Down

0 comments on commit b31dac4

Please sign in to comment.