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 documentation for forbidden-io-functions option of forbidden_io_function_checker #947

Merged

Conversation

vsahni3
Copy link
Contributor

@vsahni3 vsahni3 commented Sep 15, 2023

Motivation and Context

There is currently no documentation for the forbidden-io-functions configuration option of the forbidden_io_function_checker. This can make it difficult for users to know about its existence, how to use it, and what additional flexibility it offers.

Your Changes

This pull request adds documentation for the above configuration option detailing its purpose, how to use it, and what it should be used for.

Type of change (select all that apply):

  • Documentation update (change that modifies or updates documentation only)

Testing

To ensure the documentation is readable and well-formatted, I built the documentation website to see how the users would view it and made sure everything was as expected.

Checklist

  • I have performed a self-review of my own code.
  • I have verified that the CI tests have passed.
  • I have reviewed the test coverage changes reported on Coveralls.

@coveralls
Copy link
Collaborator

coveralls commented Sep 15, 2023

Pull Request Test Coverage Report for Build 6241107158

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.747%

Totals Coverage Status
Change from base Build 6236071654: 0.0%
Covered Lines: 3373
Relevant Lines: 3560

💛 - Coveralls

Copy link
Contributor

@david-yz-liu david-yz-liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsahni3 great work. I left two inline comments. Additionally, please add your name to the list of contributors (at the bottom of the README).

@@ -2131,6 +2131,17 @@ if __name__ == "__main__":
name = input()
```

By default, [`input`], [`open`] and [`print`] are not allowed. However, you can choose which I/O functions specifically to disallow using the forbidden-io-functions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write the option name forbidden-io-functions inside backticks (`) so that it appears in code font.

@@ -2131,6 +2131,17 @@ if __name__ == "__main__":
name = input()
```

By default, [`input`], [`open`] and [`print`] are not allowed. However, you can choose which I/O functions specifically to disallow using the forbidden-io-functions
option. This takes a list of built-in function names that should not be used. For example,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the word "built-in". (The functions could be from anywhere.)

@david-yz-liu david-yz-liu merged commit 96ee429 into pyta-uoft:master Sep 20, 2023
6 checks passed
@david-yz-liu
Copy link
Contributor

Great work @vsahni3!

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

Successfully merging this pull request may close these issues.

3 participants