Skip to content

Commit c2171c0

Browse files
committed
Swift: remove double newlines in schema
While PEP8 mandates those, they look bad in the schema file. `autopep8` already ignores those, and they were single newlines at some point until an overeager IDE has "fixed" them at some point without me realizing. Also, the pre-commit configuration was updated to take `schema.py` into account.
1 parent 4b9b35d commit c2171c0

File tree

2 files changed

+2
-281
lines changed

2 files changed

+2
-281
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
rev: v1.6.0
2020
hooks:
2121
- id: autopep8
22-
files: ^swift/codegen/.*\.py
22+
files: ^swift/.*\.py
2323

2424
- repo: local
2525
hooks:
@@ -44,7 +44,7 @@ repos:
4444

4545
- id: swift-codegen
4646
name: Run Swift checked in code generation
47-
files: ^swift/(codegen/|.*/generated/|ql/lib/(swift\.dbscheme$|codeql/swift/elements))
47+
files: ^swift/(schema.py$|codegen/|.*/generated/|ql/lib/(swift\.dbscheme$|codeql/swift/elements))
4848
language: system
4949
entry: bazel run //swift/codegen -- --quiet
5050
pass_filenames: false

0 commit comments

Comments
 (0)