Skip to content

Commit 23d2176

Browse files
committed
Lint
1 parent f713e4b commit 23d2176

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

changes/probe.py

+15-5
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ def report_and_raise(probe_name, probe_result, failure_msg):
2222
return True
2323

2424

25+
def has_setup():
26+
"""`setup.py`"""
2527
return report_and_raise(
28+
'Has a setup.py',
29+
exists('setup.py'),
30+
'Your project needs a setup.py'
2631
)
2732

2833

29-
def has_setup():
30-
"""`setup.py`"""
31-
return report_and_raise('Has a setup.py', exists('setup.py'), 'Your project needs a setup.py')
3234
def has_binary(command):
3335
try:
3436
local.which(command)
@@ -48,12 +50,20 @@ def has_test_runner():
4850

4951
def has_changelog():
5052
"""CHANGELOG.md"""
51-
return report_and_raise('CHANGELOG.md', exists('CHANGELOG.md'), 'Create a CHANGELOG.md file')
53+
return report_and_raise(
54+
'CHANGELOG.md',
55+
exists('CHANGELOG.md'),
56+
'Create a CHANGELOG.md file'
57+
)
5258

5359

5460
def has_readme():
5561
"""README.md"""
56-
return report_and_raise('README.md', exists('README.md'), 'Create a README.md file')
62+
return report_and_raise(
63+
'README.md',
64+
exists('README.md'),
65+
'Create a README.md file'
66+
)
5767

5868

5969
def has_metadata(context):

0 commit comments

Comments
 (0)