-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix utils test since docstring was used in test itself
Ignore the D401 error instead.
- Loading branch information
Showing
2 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This file is part of utils. | ||
# | ||
# Developed for the LSST Data Management System. | ||
# This product includes software developed by the LSST Project | ||
# (https://www.lsst.org). | ||
# See the COPYRIGHT file at the top-level directory of this distribution | ||
# for details of code ownership. | ||
# | ||
# Use of this source code is governed by a 3-clause BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
import os | ||
import sys | ||
import unittest | ||
|
||
import lsst.utils.tests | ||
|
||
SCANDIR = os.path.realpath(os.path.join(os.path.dirname(__file__), os.path.pardir)) | ||
|
||
|
||
class Flake8TestCase(lsst.utils.tests.ExecutablesTestCase): | ||
def test_flake8(self): | ||
"""Run flake8 on the source code starting in the parent directory.""" | ||
self.assertExecutable( | ||
sys.executable, args=["-m", "flake8", "-j", "auto", f"{SCANDIR}"], msg="Code failed flake8 check." | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |