Mentions légales du service

Skip to content
Snippets Groups Projects
Unverified Commit fd495494 authored by pre-commit-ci[bot]'s avatar pre-commit-ci[bot] Committed by GitHub
Browse files

chore: update pre-commit hooks (#112)

* chore: update pre-commit hooks

updates:
- [github.com/psf/black-pre-commit-mirror: 23.9.1 → 23.10.1](https://github.com/psf/black-pre-commit-mirror/compare/23.9.1...23.10.1)
- [github.com/astral-sh/ruff-pre-commit: v0.1.0 → v0.1.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.0...v0.1.3

)

* chore: move to ruff-format

Signed-off-by: default avatarHenry Schreiner <henryschreineriii@gmail.com>

---------

Signed-off-by: default avatarHenry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: default avatarpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: default avatarHenry Schreiner <henryschreineriii@gmail.com>
parent 5dcff611
No related branches found
No related tags found
No related merge requests found
......@@ -33,19 +33,14 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
# Black, the code formatter, natively supports pre-commit
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black
exclude: ^(docs)
# Check linting and style issues
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.0"
rev: "v0.1.3"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format
exclude: ^(docs)
# Changes tabs to spaces
- repo: https://github.com/Lucas-C/pre-commit-hooks
......
......@@ -50,15 +50,16 @@ build-verbosity = 1
[tool.ruff]
select = [
"E", "F", "W", # flake8
src = ["src"]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
......@@ -75,16 +76,9 @@ select = [
"NPY", # NumPy specific rules
"PD", # pandas-vet
]
extend-ignore = [
ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
]
src = ["src"]
unfixable = [
"T20", # Removes print statements
"F841", # Removes unused variables
]
flake8-unused-arguments.ignore-variadic-names = true
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.per-file-ignores]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment