A project health checker
The problem
Write a Python tool that looks at a project described by plain data and reports whether it is healthy for new contributors: its files, licenses of dependencies, README sections and open issues.
Requirements
- Check for README, LICENSE, CONTRIBUTING and CODE_OF_CONDUCT files
- Check every dependency license against a policy for the project's own license
- Score a README for a title and install, usage and license sections
- Print a report with a verdict and the list of things to fix
Technologies
- Python 3
- Strings and lists
- Dictionaries
- Sets
Step by step
- Describe a sample project as Python data: file names, dependencies with licenses, README lines and issues.
- Write one function for each check and test it with small examples.
- Combine the checks into a report with a score and a verdict.
- Run it on three different sample projects and compare the reports.
Expected result
A command-line program that turns a project description into a short health report.
How it is evaluated
- Each check is a separate, tested function
- License rules are written down in one place
- The report lists specific things to fix
- Edge cases such as an empty file list work
Ways to improve it
- Read the data from a text file
- Add a check for stale issues
- Add a score for response time to new issues