This commit is contained in:
wassname
2020-11-02 19:48:50 +08:00
parent 4d402aa862
commit 94c06cf913
2 changed files with 0 additions and 28 deletions
-25
View File
@@ -1,25 +0,0 @@
import sys
REQUIRED_PYTHON = "python3"
def main():
system_major = sys.version_info.major
if REQUIRED_PYTHON == "python":
required_major = 2
elif REQUIRED_PYTHON == "python3":
required_major = 3
else:
raise ValueError("Unrecognized python interpreter: {}".format(
REQUIRED_PYTHON))
if system_major != required_major:
raise TypeError(
"This project requires Python {}. Found: Python {}".format(
required_major, sys.version))
else:
print(">>> Development environment passes all tests!")
if __name__ == '__main__':
main()
-3
View File
@@ -1,3 +0,0 @@
[flake8]
max-line-length = 79
max-complexity = 10