From 5d75a8736361c1c7b4e6711f1eeeb34439ac4e76 Mon Sep 17 00:00:00 2001 From: ErdiTk <24619655+ErdiTk@users.noreply.github.com> Date: Wed, 8 Mar 2023 21:56:10 +0100 Subject: [PATCH] Removed flake8-rst since it is not maintained and breaks with python3.10, with last update on 2020. --- .pre-commit-config.yaml | 8 -------- setup.cfg | 32 -------------------------------- 2 files changed, 40 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 484107af678a7..493701507b208 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -160,14 +160,6 @@ repos: types: [pyi] args: [scripts/run_stubtest.py] stages: [manual] - - id: flake8-rst - name: flake8-rst - description: Run flake8 on code snippets in docstrings or RST files - language: python - entry: flake8-rst - types: [rst] - args: [--filename=*.rst] - additional_dependencies: [flake8-rst==0.7.0, flake8==3.7.9] - id: inconsistent-namespace-usage name: 'Check for inconsistent use of pandas namespace' entry: python scripts/check_for_inconsistent_pandas_namespace.py diff --git a/setup.cfg b/setup.cfg index 88b61086e1e0f..77717f4347473 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,35 +33,3 @@ exclude = 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