Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions project_name/.github/workflows/ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -235,40 +235,6 @@ jobs:
run: uv run --no-sync -- pytest --cov-branch --cov-report=xml --junitxml=junit.xml
{%- endraw %}

pylint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
with:
cache-suffix: pylint
- name: Install packages
run: >-
uv sync
--exact
--all-extras
--no-default-groups
--locked
- name: List packages
run: uv pip list
# use pylint exitcode to fail only on errors.
- name: Run Pylint
run: |
set +e
uv run --no-sync --with pylint -- pylint src --output-format=github
result=$?
set -e
[ $((result & 1)) -ne 0 ] && echo "::error ::Pylint fatal(s) found"
[ $((result & 2)) -ne 0 ] && echo "::error ::Pylint error(s) found"
[ $((result & 4)) -ne 0 ] && echo "::warning ::Pylint warning(s) found"
[ $((result & 8)) -ne 0 ] && echo "::warning ::Pylint refactor(s) found"
[ $((result & 16)) -ne 0 ] && echo "::warning ::Pylint convention(s) found"
[ $((result & 32)) -ne 0 ] && echo "::error ::Pylint usage error"
exit $((result & 35))

pass:
if: {{ "${{ always() }}" }}
needs:
Expand All @@ -279,7 +245,6 @@ jobs:
- dependencies
- test
- test-pypy-and-prerelease
- pylint
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
Expand Down
5 changes: 0 additions & 5 deletions project_name/justfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ lint:
uv run --exact --all-extras --all-groups --with deptry -- deptry src/
uv run --exact prek run --all-files

# Run Pylint (slow, not used in other tasks)
pylint:
uv run --exact --with pylint -- pylint src
uv run --exact true

# Run tests with pytest
test:
uv run --exact --all-extras --no-default-groups --group test \
Expand Down
8 changes: 0 additions & 8 deletions project_name/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,3 @@ flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true
[tool.typos.default.extend-identifiers]
# a ruff rule code, not a misspelling of "copy"
CPY001 = "CPY001"


[tool.pylint]
py-version = "3.{{ python_min }}"
{%- if get_package_version_from_vcs %}
ignore-paths = [".*/_version.py"]
{%- endif %}
reports.output-format = "colorized"
Loading