Skip to content

Commit de5afb6

Browse files
authored
CLN: Consolidate Dependencies (#53863)
* CLN: Dependencies * Move back togglepromt * Add tokenize-rt * Use hauntsaninja/black-pre-commit-mirror
1 parent 031f8c8 commit de5afb6

File tree

4 files changed

+11
-33
lines changed

4 files changed

+11
-33
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,11 @@ default_stages: [
1515
ci:
1616
autofix_prs: false
1717
repos:
18-
- repo: local
18+
- repo: https://github.com/hauntsaninja/black-pre-commit-mirror
19+
# black compiled with mypyc
20+
rev: 23.3.0
1921
hooks:
20-
# NOTE: we make `black` a local hook because if it's installed from
21-
# PyPI (rather than from source) then it'll run twice as fast thanks to mypyc
22-
- id: black
23-
name: black
24-
description: "Black: The uncompromising Python code formatter"
25-
entry: black
26-
language: python
27-
require_serial: true
28-
types_or: [python, pyi]
29-
additional_dependencies: [black==23.3.0]
22+
- id: black
3023
- repo: https://github.com/charliermarsh/ruff-pre-commit
3124
rev: v0.0.270
3225
hooks:
@@ -74,7 +67,7 @@ repos:
7467
--linelength=88,
7568
'--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size'
7669
]
77-
- repo: https://github.com/pycqa/pylint
70+
- repo: https://github.com/pylint-dev/pylint
7871
rev: v3.0.0a6
7972
hooks:
8073
- id: pylint
@@ -93,11 +86,6 @@ repos:
9386
|^pandas/conftest\.py # keep excluded
9487
args: [--disable=all, --enable=redefined-outer-name]
9588
stages: [manual]
96-
- id: pylint
97-
alias: unspecified-encoding
98-
name: Using open without explicitly specifying an encoding
99-
args: [--disable=all, --enable=unspecified-encoding]
100-
stages: [manual]
10189
- repo: https://github.com/PyCQA/isort
10290
rev: 5.12.0
10391
hooks:

environment.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- lxml>=4.8.0
4040
- matplotlib>=3.6.1
4141
- numba>=0.55.2
42-
- numexpr>=2.8.0 # pin for "Run checks on imported code" job
42+
- numexpr>=2.8.0
4343
- openpyxl>=3.0.10
4444
- odfpy>=1.4.1
4545
- py
@@ -75,14 +75,10 @@ dependencies:
7575
- cxx-compiler
7676

7777
# code checks
78-
- black=23.3.0
79-
- cpplint
80-
- flake8=6.0.0
81-
- isort>=5.2.1 # check that imports are in the right order
82-
- mypy=1.2
78+
- flake8=6.0.0 # run in subprocess over docstring examples
79+
- mypy=1.2 # pre-commit uses locally installed mypy
80+
- tokenize-rt # scripts/check_for_inconsistent_pandas_namespace.py
8381
- pre-commit>=2.15.0
84-
- pyupgrade
85-
- ruff=0.0.215
8682

8783
# documentation
8884
- gitpython # obtain contributors from git for whatsnew
@@ -118,6 +114,6 @@ dependencies:
118114
- pygments # Code highlighting
119115

120116
- pip:
121-
- sphinx-toggleprompt
117+
- sphinx-toggleprompt # conda-forge version has stricter pins on jinja2
122118
- typing_extensions; python_version<"3.11"
123119
- tzdata>=2022.1

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ exclude = [
331331
".eggs/*.py",
332332
# vendored files
333333
"pandas/util/version/*",
334-
"versioneer.py",
335334
# exclude asv benchmark environments from linting
336335
"env",
337336
]
@@ -445,7 +444,6 @@ disable = [
445444
"super-init-not-called",
446445
"try-except-raise",
447446
"unnecessary-lambda",
448-
"unspecified-encoding",
449447
"unused-argument",
450448
"unused-variable",
451449
"using-constant-test"

requirements-dev.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,10 @@ seaborn
5252
moto
5353
flask
5454
asv>=0.5.1
55-
black==23.3.0
56-
cpplint
5755
flake8==6.0.0
58-
isort>=5.2.1
5956
mypy==1.2
57+
tokenize-rt
6058
pre-commit>=2.15.0
61-
pyupgrade
62-
ruff==0.0.215
6359
gitpython
6460
gitdb
6561
natsort

0 commit comments

Comments
 (0)