Skip to content

Commit

Permalink
Update ruff version, with adopt ruff formater and ruff linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksymilian-Plywaczyk committed Oct 25, 2023
1 parent 9cb6815 commit 538f256
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Smart-Pot-API/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ repos:

hooks:
- id: name-tests-test
args: [--pytest-test-first]
args: [ --pytest-test-first ]
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: requirements.txt
- id: detect-private-key
- id: check-merge-conflict
- id: check-added-large-files
args: [--enforce-all]
args: [ --enforce-all ]
- repo:
https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
# Ruff version.
rev: v0.1.2
hooks:
- id: ruff-format
Expand Down
10 changes: 10 additions & 0 deletions Smart-Pot-API/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,13 @@ target-version = "py310"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10

[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# isort
"I",
]

0 comments on commit 538f256

Please sign in to comment.