-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved linter from prospector to ruff, updated deps
- Loading branch information
Showing
7 changed files
with
710 additions
and
506 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
line-length = 120 | ||
target-version = "py39" | ||
|
||
select = [ | ||
# pyflakes | ||
"F", | ||
# pycodestyle | ||
"E", | ||
"W", | ||
# mccabe | ||
"C90", | ||
# isort | ||
"I", | ||
# pydocstyle | ||
"D", | ||
# pyupgrade | ||
"UP", | ||
# pep8-naming | ||
"N", | ||
# flake8-blind-except | ||
"BLE", | ||
# flake8-2020 | ||
"YTT", | ||
# flake8-builtins | ||
"A", | ||
# flake8-comprehensions | ||
"C4", | ||
# flake8-debugger | ||
"T10", | ||
# flake8-errmsg | ||
"EM", | ||
# flake8-implicit-str-concat | ||
"ISC", | ||
# flake8-pytest-style | ||
"PT", | ||
# flake8-return | ||
"RET", | ||
# flake8-simplify | ||
"SIM", | ||
# flake8-unused-arguments | ||
"ARG", | ||
# pandas-vet | ||
"PD", | ||
# pygrep-hooks | ||
"PGH", | ||
# flake8-bugbear | ||
"B", | ||
# flake8-quotes | ||
"Q", | ||
# pylint | ||
"PL", | ||
# flake8-pie | ||
"PIE", | ||
# flake8-type-checking | ||
"TCH", | ||
# tryceratops | ||
"TRY", | ||
# flake8-use-pathlib | ||
"PTH", | ||
"RUF", | ||
# Numpy rules | ||
"NPY", | ||
# Implicit namespace packages | ||
"INP", | ||
# No relative imports | ||
"TID252", | ||
# f-strings over string concatenation | ||
"FLY", | ||
] | ||
|
||
ignore = [ | ||
# controversial | ||
"B006", | ||
# controversial | ||
"B008", | ||
"B010", | ||
# Magic constants | ||
"PLR2004", | ||
# Strings in error messages | ||
"EM101", | ||
"EM102", | ||
"EM103", | ||
# Exception strings | ||
"TRY003", | ||
# Varaibles before return | ||
"RET504", | ||
# Abstract raise into inner function | ||
"TRY301", | ||
# df as varaible name | ||
"PD901", | ||
# melt over stack | ||
"PD013", | ||
# No Any annotations | ||
"ANN401", | ||
# To many arguments | ||
"PLR0913", | ||
# Ignore because of formatting | ||
"ISC001", | ||
] | ||
|
||
|
||
exclude = [ | ||
"doc/sphinxext/*.py", | ||
"doc/build/*.py", | ||
"doc/temp/*.py", | ||
".eggs/*.py", | ||
"example_data", | ||
] | ||
|
||
|
||
[pydocstyle] | ||
convention = "numpy" | ||
|
||
[pyupgrade] | ||
# Preserve types, even if a file imports `from __future__ import annotations`. | ||
keep-runtime-typing = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.