/
githubmirror
/
pandas
Обзор
Документация
Войти
/
githubmirror
/
pandas
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v2.0.3
setup.cfg
67 строк
2 KB
Joris Van den Bossche
DEV/STYLE: use ruff for linting (#50160)
10 янв 2023, 21:36
Не верифицирован
10 янв 2023, 21:36
db8af0e
Код
Авторство
О чём код?
[flake8] max-line-length = 88 # Although ruff is now the main linter for style checks, this section # is still needed for validate_docstrings.py and flake8-pyi ignore = # space before : (needed for how black formats slicing) E203, # line break before binary operator W503, # line break after binary operator W504, # module level import not at top of file E402, # do not assign a lambda expression, use a def E731, # found modulo formatter (incorrect picks up mod operations) Y002, # Use "_typeshed.Self" instead of class-bound TypeVar Y019, # Docstrings should not be included in stubs Y021, # Use typing_extensions.TypeAlias for type aliases Y026, # Use "collections.abc.*" instead of "typing.*" (PEP 585 syntax) Y027, # while int | float can be shortened to float, the former is more explicit Y041 exclude = doc/sphinxext/*.py, doc/build/*.py, doc/temp/*.py, .eggs/*.py, versioneer.py, # exclude asv benchmark environments from linting env [flake8-rst] max-line-length = 84 bootstrap = import numpy as np import pandas as pd # avoiding error when importing again numpy or pandas np # (in some cases we want to do it to show users) pd ignore = # space before : (needed for how black formats slicing) E203, # module level import not at top of file E402, # line break before binary operator W503, # Classes/functions in different blocks can generate those errors # expected 2 blank lines, found 0 E302, # expected 2 blank lines after class or function definition, found 0 E305, # We use semicolon at the end to avoid displaying plot objects # statement ends with a semicolon E703, # comparison to none should be 'if cond is none:' E711, exclude = doc/source/development/contributing_docstring.rst, # work around issue of undefined variable warnings # https://github.com/pandas-dev/pandas/pull/38837#issuecomment-752884156 doc/source/getting_started/comparison/includes/*.rst