Skip to content

Commit

Permalink
tester
Browse files Browse the repository at this point in the history
  • Loading branch information
eddienakamoto committed Sep 27, 2024
1 parent fd52f4e commit 58c522d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint with Pylint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pylint
- name: Run Pylint
run: |
pylint code-standard --rcfile=.pylintrc
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fail-under=10
#from-stdin=

# Files or directories to be skipped. They should be base names, not paths.
ignore=CVS, venv, .venv, .git, __pycache__, .tox, .eggs
ignore=CVS, venv, .venv, .git, __pycache__, .tox, .eggs, .github

# Add files or directories matching the regular expressions patterns to the
# ignore-list. The regex matches against paths and can be in Posix or Windows
Expand Down
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
)

s += "hola"

fail = "This will be longer and unaffected by black: adsf asdfas fdas fdas dfas fdas dfa sfd asdf asdf asdf sdf adfasff"
print(s)
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exclude = '''
| \venv
| _build
| __pycache__
| .github
| buck-out
| build
| dist
Expand Down

0 comments on commit 58c522d

Please sign in to comment.