Skip to content

Commit

Permalink
chore(ci): add pylint workflow (#400)
Browse files Browse the repository at this point in the history
* add pylint workflow

* move pylint config

* update lockfile
  • Loading branch information
CFenner authored Sep 23, 2024
1 parent af7d6ec commit e9b7ca6
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 30 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,25 @@ jobs:
run: poetry install --no-interaction
- name: 🚀 Check code for common misspellings
run: poetry run codespell **/*.py
pylint:
name: pylint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: 🏗 Set up Poetry
run: pipx install poetry
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/[email protected]
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: 🏗 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 🏗 Install Python dependencies
run: poetry install --no-interaction
- name: 🚀 Run pylint
run: poetry run pylint **/*.py
29 changes: 0 additions & 29 deletions .pylintrc

This file was deleted.

124 changes: 123 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,37 @@ types-requests = ">=2.31"

[tool.poetry.group.dev.dependencies]
codespell = "^2.3.0"
pylint = "^3.2.6"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"

[tool.pylint."MESSAGES CONTROL"]
disable = [
"duplicate-code",
"fixme",
"line-too-long",
"invalid-name",
"too-many-public-methods",
"too-few-public-methods",
# FIXME:
"arguments-differ",
"attribute-defined-outside-init",
"bad-classmethod-argument",
"chained-comparison",
"consider-merging-isinstance",
"consider-using-dict-items",
"consider-using-generator",
"deprecated-decorator",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"missing-timeout",
"raise-missing-from",
"unspecified-encoding",
"useless-object-inheritance",
"useless-parent-delegation",
]

[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

0 comments on commit e9b7ca6

Please sign in to comment.