Skip to content

Commit

Permalink
Cleanup config files (NVIDIA#11266)
Browse files Browse the repository at this point in the history
This PR cleans up some of the outstanding cruft in our various linter configs. Contributes to NVIDIA#10758

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Ashwin Srinath (https://github.com/shwina)

URL: rapidsai/cudf#11266
  • Loading branch information
vyasr authored Jul 15, 2022
1 parent ec0b32b commit 7342a36
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 64 deletions.
39 changes: 5 additions & 34 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,12 @@ repos:
rev: 5.10.1
hooks:
- id: isort
alias: isort-cudf
name: isort-cudf
args: ["--settings-path=python/cudf/setup.cfg"]
files: python/cudf/.*
exclude: __init__.py$
types: [text]
# Use the config file specific to each subproject so that each
# project can specify its own first/third-party packages.
args: ["--config-root=python/", "--resolve-all-configs"]
files: python/.*
exclude: (__init__.py|setup.py)$
types_or: [python, cython, pyi]
- id: isort
alias: isort-cudf-kafka
name: isort-cudf-kafka
args: ["--settings-path=python/cudf_kafka/setup.cfg"]
files: python/cudf_kafka/.*
types: [text]
types_or: [python, cython]
- id: isort
alias: isort-custreamz
name: isort-custreamz
args: ["--settings-path=python/custreamz/setup.cfg"]
files: python/custreamz/.*
- id: isort
alias: isort-dask-cudf
name: isort-dask-cudf
args: ["--settings-path=python/dask_cudf/setup.cfg"]
files: python/dask_cudf/.*
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
Expand All @@ -40,8 +22,6 @@ repos:
rev: 3.8.3
hooks:
- id: flake8
alias: flake8
name: flake8
args: ["--config=setup.cfg"]
files: python/.*\.(py|pyx|pxd)$
types: [file]
Expand All @@ -56,15 +36,6 @@ repos:
hooks:
- id: pydocstyle
args: ["--config=setup.cfg"]
exclude: |
(?x)^(
ci|
cpp|
conda|
docs|
java|
notebooks
)
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v11.1.0
hooks:
Expand Down
20 changes: 1 addition & 19 deletions python/cudf/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ known_dask=
dask_cuda
known_rapids=
rmm
cuml
cugraph
dask_cudf
known_first_party=
cudf
default_section=THIRDPARTY
Expand All @@ -44,19 +41,4 @@ skip=
buck-out
build
dist
__init__.py

[tool:pytest]
addopts =
--benchmark-warmup=off
--benchmark-warmup-iterations=0
--benchmark-min-rounds=1
--benchmark-columns="min, max, mean, stddev, outliers, rounds"

python_files =
bench_*
test_*

python_functions =
bench_*
test_*
__init__.py
4 changes: 1 addition & 3 deletions python/cudf_kafka/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, NVIDIA CORPORATION.
# Copyright (c) 2020-2022, NVIDIA CORPORATION.

[versioneer]
VCS = git
Expand All @@ -23,8 +23,6 @@ known_dask=
known_rapids=
rmm
cudf
cuml
cugraph
dask_cudf
known_first_party=
cudf_kafka
Expand Down
3 changes: 1 addition & 2 deletions python/custreamz/custreamz/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright (c) 2020, NVIDIA CORPORATION.
# Copyright (c) 2020-2022, NVIDIA CORPORATION.
import socket

import pytest

from custreamz import kafka


Expand Down
4 changes: 1 addition & 3 deletions python/custreamz/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, NVIDIA CORPORATION.
# Copyright (c) 2020-2022, NVIDIA CORPORATION.

[versioneer]
VCS = git
Expand All @@ -22,8 +22,6 @@ known_dask=
known_rapids=
rmm
cudf
cuml
cugraph
dask_cudf
known_first_party=
streamz
Expand Down
4 changes: 1 addition & 3 deletions python/dask_cudf/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, NVIDIA CORPORATION.
# Copyright (c) 2020-2022, NVIDIA CORPORATION.

[versioneer]
VCS = git
Expand All @@ -21,8 +21,6 @@ known_dask=
dask_cuda
known_rapids=
rmm
cuml
cugraph
cudf
known_first_party=
dask_cudf
Expand Down

0 comments on commit 7342a36

Please sign in to comment.