Skip to content

Commit 49b654a

Browse files
authored
Merge pull request #161 from awdeorio/lint-fix
Fix pylint error
2 parents cb010b6 + 4a6af96 commit 49b654a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
# Upload coverage report
5656
# https://github.com/codecov/codecov-action
5757
- name: Upload coverage report
58-
uses: codecov/codecov-action@v2
58+
uses: codecov/codecov-action@v4
5959
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
61+
slug: awdeorio/mailmerge
6062
fail_ci_if_error: true

mailmerge/__main__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
type=click.Choice(["colorized", "text", "raw"]),
6363
help="Output format (colorized).",
6464
)
65-
def main(sample, dry_run, limit, no_limit, resume,
65+
def main(*, sample, dry_run, limit, no_limit, resume,
6666
template_path, database_path, config_path,
6767
output_format):
6868
"""
@@ -74,7 +74,6 @@ def main(sample, dry_run, limit, no_limit, resume,
7474
# We need an argument for each command line option. That also means a lot
7575
# of local variables.
7676
# pylint: disable=too-many-arguments
77-
# pylint: disable=too-many-positional-arguments
7877
# pylint: disable=too-many-locals
7978

8079
# Convert paths from string to Path objects
@@ -143,9 +142,7 @@ def main(sample, dry_run, limit, no_limit, resume,
143142

144143

145144
if __name__ == "__main__":
146-
# No value for parameter, that's how click works
147-
# pylint: disable=no-value-for-parameter
148-
main()
145+
main() # pylint: disable=missing-kwoa
149146

150147

151148
def check_input_files(template_path, database_path, config_path, sample):

0 commit comments

Comments
 (0)