File tree Expand file tree Collapse file tree 9 files changed +149
-16
lines changed Expand file tree Collapse file tree 9 files changed +149
-16
lines changed Original file line number Diff line number Diff line change 1717 python-version : ' 3.11'
1818 - name : Python version
1919 run : python --version
20- - name : Mypy installation
21- run : pip install --user mypy pydantic types-PyYAML
22- - name : Type checks
23- run : mypy --explicit-package-bases --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --ignore-missing-imports --disable-error-code attr-defined src/
20+ - name : PDM installation
21+ run : pip install --user pdm
22+ - name : Install dependencies
23+ run : pdm install
24+ - name : Install devel dependencies
25+ run : pdm install --group default,dev
26+ - name : Python linter
27+ run : make check-types
Original file line number Diff line number Diff line change 1717 python-version : ' 3.11'
1818 - name : Python version
1919 run : python --version
20- - name : Pydocstyle install
21- run : pip install --user pydocstyle
22- - name : Python docstring checks
23- run : pydocstyle -v .
20+ - name : PDM installation
21+ run : pip install --user pdm
22+ - name : Install dependencies
23+ run : pdm install
24+ - name : Install devel dependencies
25+ run : pdm install --group default,dev
26+ - name : Python linter
27+ run : make docstyle
Original file line number Diff line number Diff line change 2525 - name : Install devel dependencies
2626 run : pdm install --group default,dev
2727 - name : Python linter
28- run : pdm run pylint src
28+ run : make pylint
Original file line number Diff line number Diff line change 2525 - name : Install devel dependencies
2626 run : pdm install --group default,dev
2727 - name : Run Pyright tests
28- run : pdm run pyright src
28+ run : make pyright
Original file line number Diff line number Diff line change 1212 pull-requests : read
1313 steps :
1414 - uses : actions/checkout@v4
15- - uses : chartboost/ruff-action@v1
15+ - uses : actions/setup-python@v5
1616 with :
17- args : ' check . --per-file-ignores=tests/*:S101 --per-file-ignores=scripts/*:S101'
18-
17+ python-version : ' 3.11'
18+ - name : Python version
19+ run : python --version
20+ - name : PDM installation
21+ run : pip install --user pdm
22+ - name : Install dependencies
23+ run : pdm install
24+ - name : Install devel dependencies
25+ run : pdm install --group default,dev
26+ - name : Python linter
27+ run : make ruff
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ test-integration: ## Run integration tests tests
1616 COVERAGE_FILE=" ${ARTIFACT_DIR} /.coverage.integration" pdm run pytest tests/integration --cov=src --cov-report term-missing --cov-report " json:${ARTIFACT_DIR} /coverage_integration.json" --junit-xml=" ${ARTIFACT_DIR} /junit_integration.xml" --cov-fail-under=10
1717
1818check-types : # # Checks type hints in sources
19- MYPYPATH=src pdm run mypy --namespace-packages -- explicit-package-bases --strict -- disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs src
19+ pdm run mypy --explicit-package-bases --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --ignore-missing-imports --disable-error-code attr-defined src/
2020
2121security-check : # # Check the project for security issues
2222 bandit -c pyproject.toml -r src tests
@@ -43,3 +43,21 @@ shellcheck: ## Run shellcheck
4343 shellcheck --version
4444 shellcheck -- * /* .sh
4545
46+ pylint :
47+ pdm run pylint src
48+
49+ pyright :
50+ pdm run pyright src
51+
52+ docstyle :
53+ pdm run pydocstyle -v .
54+
55+ ruff :
56+ pdm run ruff check . --per-file-ignores=tests/* :S101 --per-file-ignores=scripts/* :S101
57+
58+ verify :
59+ $(MAKE ) pylint
60+ $(MAKE ) pyright
61+ $(MAKE ) ruff
62+ $(MAKE ) docstyle
63+ $(MAKE ) check-types
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ dev = [
2626 " pytest-asyncio>=1.0.0" ,
2727 " pyright>=1.1.401" ,
2828 " pylint>=3.3.7" ,
29+ " pydocstyle>=6.3.0" ,
30+ " mypy>=1.16.0" ,
31+ " types-PyYAML>=6.0.2" ,
32+ " ruff>=0.11.13" ,
2933]
3034
3135[tool .pytest .ini_options ]
@@ -47,4 +51,5 @@ distribution = true
4751start = " pdm run make run"
4852test-unit = " pdm run make test-unit"
4953test-integration = " pdm run make test-integration"
54+ verify = " pdm run make verify"
5055
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ def retrieve_response(
128128 )
129129
130130 return str (
131- response .output_message .content # pyright : ignore[reportAttributeAccessIssue ]
131+ response .output_message .content # type : ignore[union-attr ]
132132 )
133133
134134
You can’t perform that action at this time.
0 commit comments