Skip to content

Commit c9a4e25

Browse files
authored
Merge pull request #29 from swiftlang/fb-pythong-ignore
Ignore some python formatting errors for licenses
2 parents 554f655 + 6a28afb commit c9a4e25

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.github/workflows/configs/.flake8

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[flake8]
2+
3+
ignore =
4+
# These are needed to make our license headers pass the linting
5+
E265,
6+
E266,
7+
8+
# 10% larger than the standard 80 character limit. Conforms to the black
9+
# standard and Bugbear's B950.
10+
max-line-length = 88

.github/workflows/soundness.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,8 @@ jobs:
218218
run: |
219219
pip3 install flake8 flake8-import-order
220220
cd ${GITHUB_WORKSPACE}
221+
if [ ! -f ".flake8" ]; then
222+
echo "Downloading default flake8 config file"
223+
curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/configs/.flake8.yml > .flake8
224+
fi
221225
flake8

tests/test.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env python3
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the Swift.org open source project
5+
##
6+
## Copyright (c) 2020 Apple Inc. and the Swift.org project authors
7+
## Licensed under Apache License v2.0
8+
##
9+
## See LICENSE.txt for license information
10+
## See CONTRIBUTORS.txt for the list of Swift.org project authors
11+
##
12+
## SPDX-License-Identifier: Apache-2.0
13+
##
14+
##===----------------------------------------------------------------------===##

0 commit comments

Comments
 (0)