Skip to content
Snippets Groups Projects
Unverified Commit b9c44dcb authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Ruff minimal config

parent a1741cdf
No related branches found
No related tags found
No related merge requests found
Pipeline #80537 passed
[flake8]
max-line-length = 88
exclude = .git,__pycache__
ignore = E203,E501,W503
[settings]
# Compatible with black
profile = black
default_section=FIRSTPARTY
known_first_party = arkindex,arkindex_common,arkindex_worker
known_third_party =PIL,apistar,gitlab,gnupg,peewee,playhouse,pytest,requests,responses,setuptools,sh,shapely,tenacity,yaml,zstandard
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.278
hooks:
- id: isort
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: "^worker-{{cookiecutter.slug}}/"
- repo: https://github.com/ambv/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- 'flake8-coding==1.3.2'
- 'flake8-debugger==4.1.2'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
......
[tool.ruff]
exclude = [".git", "__pycache__"]
ignore = ["E501"]
select = ["E", "F", "T1", "W", "I"]
[tool.ruff.isort]
known-first-party = ["arkindex", "arkindex_common", "arkindex_worker"]
known-third-party = [
"PIL",
"apistar",
"gitlab",
"gnupg",
"peewee",
"playhouse",
"pytest",
"requests",
"responses",
"setuptools",
"sh",
"shapely",
"tenacity",
"yaml",
"zstandard",
]
[flake8]
max-line-length = 150
exclude = .git,__pycache__
ignore = E203,E501,W503
[settings]
# Compatible with black
profile = black
default_section=FIRSTPARTY
known_first_party = arkindex,arkindex_worker
known_third_party = pytest,setuptools
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.278
hooks:
- id: isort
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/ambv/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- 'flake8-coding==1.3.2'
- 'flake8-debugger==4.1.2'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
......
[tool.ruff]
exclude = [".git", "__pycache__"]
ignore = ["E501"]
select = ["E", "F", "T1", "W", "I"]
[tool.ruff.isort]
known-first-party = ["arkindex", "arkindex_worker"]
known-third-party = ["pytest", "setuptools"]
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