File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -218,4 +218,8 @@ jobs:
218
218
run : |
219
219
pip3 install flake8 flake8-import-order
220
220
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
221
225
flake8
Original file line number Diff line number Diff line change
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
+ ##===----------------------------------------------------------------------===##
You can’t perform that action at this time.
0 commit comments