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
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,17 @@ jobs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root

- name: Run linters
run: make lint
- name: Check dependencies
run: make check-dependencies

- name: Check codestyle
run: make check-codestyle

- name: ruff
run: make check-ruff-github

- name: mypy
run: make check-mypy

test:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: check-added-large-files
args: [--maxkb=10000]
args: [ --maxkb=10000 ]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-executables-have-shebangs
Expand All @@ -20,8 +20,10 @@ repos:
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- id: pretty-format-json
args: [ --autofix, --no-ensure-ascii ]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
rev: v0.11.8
hooks:
- id: ruff-format
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,19 @@ check-dependencies: check-poetry check-deptry
.PHONY: check-ruff
check-ruff:
poetry run ruff check $(CODE) --no-fix
.PHONY: check-codestyle
check-codestyle:
poetry run ruff format $(CODE) --check
{% if cookiecutter.git_platform == 'gitlab' %}
.PHONY: check-ruff-gitlab
check-ruff-gitlab:
poetry run ruff check $(CODE) --output-format=gitlab > ruff-report.json
{% endif %}
.PHONY: check-codestyle
check-codestyle:
poetry run ruff format $(CODE) --check
{% if cookiecutter.git_platform == 'github' %}
.PHONY: check-ruff-github
check-ruff-github:
poetry run ruff check $(CODE) --no-fix --output-format=github
{% endif %}

.PHONY: check-mypy
check-mypy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ pydantic = "^2.6.4"
{%- endif %}

[tool.poetry.group.dev.dependencies] # https://python-poetry.org/docs/master/managing-dependencies/
mypy = "^1.11.1"
pre-commit = "^3.8.0"
pytest = "^8.3.2"
mypy = "^1.15.0"
pre-commit = "^4.2.0"
pytest = "^8.3.5"
pytest-cov = "^5.0.0"
coverage = "^7.6.0"
typeguard = "^4.3.0"
ruff = "^0.5.5"
safety = "^3.2.4"
deptry = "^0.18.0"
coverage = "^7.8.0"
typeguard = "^4.4.2"
ruff = "^0.11.8"
safety = "^3.4.0"
deptry = "^0.23.0"
{%- if cookiecutter.git_platform == 'gitlab' %}
mypy-gitlab-code-quality = "^1.1.0"
mypy-gitlab-code-quality = "^1.3.0"
{%- endif %}

[tool.mypy] # https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
Expand Down
Loading