Skip to content

Commit

Permalink
Update add-trailing-comma to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Jul 21, 2023
1 parent 0d5edff commit 3c9454b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
python-version: "3.11"
- run: pip install add-trailing-comma
- name: Analysing the code with add-trailing-comma
run: add-trailing-comma $(git ls-files '**.py*') --py36-plus
run: add-trailing-comma $(git ls-files '**.py*')
Pyright:
runs-on: windows-latest
strategy:
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.5.1 # Must match requirements-dev.txt
rev: v3.0.0 # Must match requirements-dev.txt
hooks:
- id: add-trailing-comma

ci:
autoupdate_branch: dev
skip:
# Ignore until Linux support. We don't want lf everywhere yet
# And crlf fails on CI because pre-commit runs on linux
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"commands": [
{
"match": "\\.pyi?",
"cmd": "add-trailing-comma ${file} --py36-plus"
"cmd": "add-trailing-comma ${file}"
},
]
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $exitCodes = 0

Write-Host "`nRunning formatting..."
autopep8 src/ --recursive --in-place
add-trailing-comma $(git ls-files '**.py*') --py36-plus
add-trailing-comma $(git ls-files '**.py*')

Write-Host "`nRunning Ruff..."
ruff check . --fix
Expand Down
2 changes: 1 addition & 1 deletion scripts/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-r requirements.txt
#
# Linters & Formatters
add-trailing-comma>=2.5.1 # Added support for with statement # Must match .pre-commit-config.yaml
add-trailing-comma>=3.0.0 # Added support for with statement # Must match .pre-commit-config.yaml
autopep8>=2.0.2 # New checks # Must match .pre-commit-config.yaml
ruff>=0.0.276 # Fix ignored "ignore" configuration + cache fixes # Must match .pre-commit-config.yaml
#
Expand Down

0 comments on commit 3c9454b

Please sign in to comment.