Skip to content

Commit 1dbf7e9

Browse files
blink1073pre-commit-ci[bot]
andauthoredDec 15, 2022
Fix lint (ipython#814)
* fix lint * fix typing * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e0e5024 commit 1dbf7e9

File tree

6 files changed

+5
-10
lines changed

6 files changed

+5
-10
lines changed
 

‎.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
- id: black
3535

3636
- repo: https://github.com/charliermarsh/ruff-pre-commit
37-
rev: v0.0.165
37+
rev: v0.0.178
3838
hooks:
3939
- id: ruff
4040
args: ["--fix"]

‎pyproject.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ docs = [
2828
"pydata-sphinx-theme",
2929
"sphinx"
3030
]
31-
lint = ["black>=22.6.0", "mdformat>0.7", "ruff>=0.0.156"]
32-
typing = ["mypy>=0.990"]
3331

3432
[tool.hatch.version]
3533
path = "traitlets/_version.py"
@@ -53,13 +51,14 @@ test = "python -m pytest -vv --cov traitlets --cov-branch --cov-report term-miss
5351
nowarn = "test -W default {args}"
5452

5553
[tool.hatch.envs.typing]
56-
features = ["test", "typing"]
54+
features = ["test"]
5755
dependencies = ["mypy>=0.990"]
5856
[tool.hatch.envs.typing.scripts]
5957
test = "mypy --install-types --non-interactive {args:.}"
6058

6159
[tool.hatch.envs.lint]
62-
features = ["lint"]
60+
dependencies = ["black==22.10.0", "mdformat>0.7", "ruff==0.0.178"]
61+
detached = true
6362
[tool.hatch.envs.lint.scripts]
6463
style = [
6564
"ruff {args:.}",
@@ -161,7 +160,7 @@ ignore = [
161160
# Line too long
162161
"E501",
163162
# Relative imports are banned
164-
"I252",
163+
"TID252",
165164
# Boolean ... in function definition
166165
"FBT001", "FBT002",
167166
# Module level import not at top of file

‎traitlets/config/configurable.py

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
from .loader import Config, DeferredConfig, LazyConfigValue, _is_section_key
2626

27-
2827
# -----------------------------------------------------------------------------
2928
# Helper classes for Configurables
3029
# -----------------------------------------------------------------------------

‎traitlets/config/loader.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
from ..utils import cast_unicode, filefind
1818

19-
2019
# -----------------------------------------------------------------------------
2120
# Exceptions
2221
# -----------------------------------------------------------------------------

‎traitlets/tests/test_traitlets_enum.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from traitlets import CaselessStrEnum, Enum, FuzzyEnum, HasTraits, TraitError, UseEnum
1010

11-
1211
# -----------------------------------------------------------------------------
1312
# TEST SUPPORT:
1413
# -----------------------------------------------------------------------------

‎traitlets/utils/getargspec.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import inspect
1212
from functools import partial
1313

14-
1514
# Unmodified from sphinx below this line
1615

1716

0 commit comments

Comments
 (0)