Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply auto-formatters #391

Merged
merged 7 commits into from
Jan 22, 2024

Conversation

blink1073
Copy link
Contributor

@blink1073 blink1073 commented Jan 17, 2024

Next step from #388 (comment)

Used this config:

[tool.ruff.lint]
extend-select = [
  "B",           # flake8-bugbear
  "I",           # isort
  "C4",          # flake8-comprehensions
  "EM",          # flake8-errmsg
  "ICN",         # flake8-import-conventions
  "G",           # flake8-logging-format
  "PGH",         # pygrep-hooks
  "PIE",         # flake8-pie
  "PL",          # pylint
  "PTH",         # flake8-use-pathlib
  "PT",          # flake8-pytest-style
  "RET",         # flake8-return
  "RUF",         # Ruff-specific
  "SIM",         # flake8-simplify
  "T20",         # flake8-print
  "UP",          # pyupgrade
  "YTT",         # flake8-2020
  "EXE",         # flake8-executable
  "PYI",         # flake8-pyi
  "S",           # flake8-bandit
]
ignore = [
  "PLR",    # Design related pylint codes
  "S101",   # Use of `assert` detected
]
unfixable = [
  # Don't touch print statements
  "T201",
  # Don't touch unused imports
  "F401",
  "F403",
  # Don't touch noqa lines
  "RUF100",
]

[tool.ruff]
line-length = 100

[tool.ruff.format]
docstring-code-format = true

@blink1073 blink1073 force-pushed the automated-formatting-2 branch from ae94f01 to fad4b17 Compare January 17, 2024 02:00
@blink1073 blink1073 force-pushed the automated-formatting-2 branch from 8ccc9dd to 7f61340 Compare January 17, 2024 02:04
@blink1073 blink1073 merged commit 92edb77 into jupyter-server:main Jan 22, 2024
6 checks passed
@blink1073 blink1073 deleted the automated-formatting-2 branch January 22, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant