Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amineHY committed Mar 2, 2024
1 parent 0b89335 commit 1229d61
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ jobs:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install pylint
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
source $HOME/.poetry/env
- name: Install project dependencies
run: poetry install

- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
poetry run pylint $(git ls-files '*.py')
33 changes: 33 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[MASTER]

# Specify the maximum allowed line length
max-line-length=100

# Set the output format (e.g., text, colorized, JSON)
output-format=text

[MESSAGES CONTROL]

# Ignore certain types of errors or warnings
disable=
W1203 # Use lazy % formatting in logging functions

[BASIC]

# Specify additional builtins (comma-separated list)
additional-builtins=

[FORMAT]

# Enable or disable various aspects of formatting
...

[TYPECHECK]

# Enable or disable type checking
...

[REPORTS]

# Configure reports (e.g., reports=no, reports=yes)
...

0 comments on commit 1229d61

Please sign in to comment.