We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af45b41 commit a440c20Copy full SHA for a440c20
pyflakes/api.py
@@ -117,6 +117,10 @@ def isPythonFile(filename):
117
if filename.endswith('.py'):
118
return True
119
120
+ # Avoid obvious Emacs backup files
121
+ if filename.endswith("~"):
122
+ return False
123
+
124
max_bytes = 128
125
126
try:
pyflakes/test/test_api.py
@@ -180,6 +180,7 @@ def test_recurses(self):
180
"""
181
os.mkdir(os.path.join(self.tempdir, 'foo'))
182
apath = self.makeEmptyFile('foo', 'a.py')
183
+ self.makeEmptyFile('foo', 'a.py~')
184
os.mkdir(os.path.join(self.tempdir, 'bar'))
185
bpath = self.makeEmptyFile('bar', 'b.py')
186
cpath = self.makeEmptyFile('c.py')
0 commit comments