Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions to use #2

Open
douglasdcm opened this issue Jan 30, 2025 · 1 comment
Open

Add instructions to use #2

douglasdcm opened this issue Jan 30, 2025 · 1 comment

Comments

@douglasdcm
Copy link

douglasdcm commented Jan 30, 2025

Hi, how are you? I was trying this project, but while running the file smell_detector.py with the old Python version 3.6 I had this error. Which Python version are you using? Doe this project depends on external libraries that I need to install? Could you add the instructions use it, please?

python smell_detector.py ../../guara/
Traceback (most recent call last):
  File "smell_detector.py", line 88, in <module>
    main()
  File "smell_detector.py", line 32, in main
    results_list = project_rule_runner(files)
  File "/home/douglas/repo/tmp-projects/PythonTestSmellDetector/test_smell_rule_runners.py", line 16, in project_rule_runner
    result = smell.test_for_smell(python_files)
  File "/home/douglas/repo/tmp-projects/PythonTestSmellDetector/test_smells/project_smells.py", line 24, in test_for_smell
    production_methods = discover_production_methods(file_list)
  File "/home/douglas/repo/tmp-projects/PythonTestSmellDetector/test_smells/project_smells.py", line 161, in discover_production_methods
    production_files = python_parser.filter_python_files_complement(file_list)
  File "/home/douglas/repo/tmp-projects/PythonTestSmellDetector/python_parser.py", line 83, in filter_python_files_complement
    tree = ast.parse(f.read())
  File "/usr/local/lib/python3.6/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1039
    def TypedDict(typename, fields=_marker, /, *, total=True, closed=False, **kwargs):
                                            ^
SyntaxError: invalid syntax

@douglasdcm
Copy link
Author

Check PR #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant