Skip to content

Commit 3b17b84

Browse files
committed
switch to using .flake8 config file
1 parent e456c0f commit 3b17b84

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Diff for: .flake8

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[flake8]
2+
max_line_length = 88
3+
per-file-ignores =
4+
# too many leading '#' for block comment
5+
test/*:E266
6+
# line too long (several test strs)
7+
test_granules.py:E501
8+
# imported but unused
9+
__init__.py:F401

Diff for: .github/workflows/linter_actions.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
- name: Run black linter
1414
uses: psf/black@stable
1515
# use the flake8 linter to annotate improperly formatted code
16+
# note linter arguments are supplied via the .flake8 config file
1617
- name: Annotate PR after running flake8
1718
uses: TrueBrain/actions-flake8@v2
18-
with:
19-
max_line_length: 88
20-
extra_arguments:
21-
--per-file-ignores=__init__.py:F401 #test_granules.py:E501
19+

0 commit comments

Comments
 (0)