Skip to content

Check if a program only uses a subset of the Python language.

License

Notifications You must be signed in to change notification settings

DanielVernall/allowed

 
 

Repository files navigation

Courses often use a restricted subset of a programming language and its library, for various reasons: reduce cognitive load, focus on concepts, simplify marking, etc.

This program checks if your Python files and notebooks only use certain constructs, which you can configure.

Like all static analysis tools, allowed isn't perfect and will never be. There may be false positives (code reported to be a violation, but isn't) and false negatives (code that uses disallowed constructs but isn't reported).

If you're an M269 student or tutor, read the quick guide; otherwise go through the full manual:

Licences

The code and text in this repository are Copyright © 2023 by The Open University, UK. The code is licensed under a BSD-3-clause licence. The text is licensed under a Creative Commons Attribution 4.0 International Licence.

About

Check if a program only uses a subset of the Python language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 77.1%
  • Jupyter Notebook 20.1%
  • Shell 2.8%