Skip to content

Commit

Permalink
Merge branch 'master' into lalufu/feature-percent-s-alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ikamensh authored Aug 21, 2024
2 parents b4e19c6 + f43e564 commit 00b6bc4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff check -- --format=github .
- run: ruff check .
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ repos:
- --remove-all-unused-imports
exclude: test/integration/(actual|expected|samples).*
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.259
rev: v0.6.1
hooks:
- id: ruff
# args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
- repo: https://github.com/psf/blackˆc
rev: 22.10.0
hooks:
- id: black
Expand Down
15 changes: 10 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ module = "astor"
ignore_missing_imports = true

[tool.ruff]
line-length = 141
target-version = "py37"
exclude = ["build/**"]

[tool.ruff.lint]
extend-select = [
"C9",
"I",
Expand All @@ -71,18 +76,16 @@ extend-select = [
extend-ignore = [
"S101",
]
line-length = 141
target-version = "py37"

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 22

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
max-args = 7
max-branches = 18
max-statements = 67

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"test/*" = ["I", "S"]
"test/integration/*" = [
"F523",
Expand All @@ -93,3 +96,5 @@ max-statements = 67
"test/test_lexer.py" = ["F841"]
"test/test_pyproject.py" = ["E712"]
"test/test_styles.py" = ["S311"]
"**/tests/*" = ["S101", "ANN"]
"**/__init__.py" = ["F401"]

0 comments on commit 00b6bc4

Please sign in to comment.