Skip to content

Commit

Permalink
Disallow use of eval with pylint (comfyanonymous#4033)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored and pmason314 committed Jul 26, 2024
1 parent e6b041c commit 70622aa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Python Linting

on: [push, pull_request]

jobs:
pylint:
name: Run Pylint
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install Pylint
run: pip install pylint

- name: Run Pylint
run: pylint --rcfile=.pylintrc $(find . -type f -name "*.py")
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[MESSAGES CONTROL]
disable=all
enable=eval-used

0 comments on commit 70622aa

Please sign in to comment.