File tree Expand file tree Collapse file tree 4 files changed +227
-9
lines changed
Expand file tree Collapse file tree 4 files changed +227
-9
lines changed Original file line number Diff line number Diff line change 1+ ci :
2+ autofix_prs : false
3+ skip :
4+ # This steps run in the ci workflow. Keep in sync
5+ - mypy
6+ - pylint
7+
8+ default_language_version :
9+ python : python3.13
10+
11+ repos :
12+ - repo : https://github.com/python-poetry/poetry
13+ rev : ' 2.1.3'
14+ hooks :
15+ - id : poetry-check
16+ - id : poetry-lock
17+ - repo : https://github.com/astral-sh/ruff-pre-commit
18+ rev : v0.11.12
19+ hooks :
20+ - id : ruff
21+ args :
22+ - --fix
23+ - --unsafe-fixes
24+ - id : ruff-format
25+ - repo : local
26+ hooks :
27+ - id : mypy
28+ name : Check with mypy
29+ entry : poetry run mypy src
30+ language : system
31+ types :
32+ - python
33+ require_serial : true
34+ - id : pylint
35+ name : Check with pylint
36+ entry : poetry run pylint src/**/*.py
37+ language : system
38+ types :
39+ - python
40+ require_serial : true
41+ exclude : ^tests/.+
42+ - repo : https://github.com/pre-commit/pre-commit-hooks
43+ rev : v5.0.0
44+ hooks :
45+ - id : check-yaml
46+ - id : check-added-large-files
Original file line number Diff line number Diff line change 1+ [virtualenvs ]
2+ in-project = true
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ dependencies = [
2626Homepage = " https://github.com/SAIC-iSmart-API/saic-python-client-ng"
2727Issues = " https://github.com/SAIC-iSmart-API/saic-python-client-ng/issues"
2828
29+ [build-system ]
30+ requires = [" poetry-core>=2.0.0,<3.0.0" ]
31+ build-backend = " poetry.core.masonry.api"
32+
2933[tool .poetry .group .dev .dependencies ]
3034pytest = " ^8.2.2"
3135mock = " ^5.1.0"
@@ -36,12 +40,7 @@ pytest-asyncio = "^0.24.0"
3640pytest-mock = " ^3.14.0"
3741mypy = " ^1.15.0"
3842pylint = " ^3.3.6"
39-
40-
41-
42- [build-system ]
43- requires = [" poetry-core>=1.0.0" ]
44- build-backend = " poetry.core.masonry.api"
43+ pre-commit = " ^4.2.0"
4544
4645[tool .pytest .ini_options ]
4746norecursedirs = " .git build dist"
@@ -85,6 +84,7 @@ include = [
8584 " tests/**/*.py" ,
8685 " **/pyproject.toml"
8786]
87+
8888[tool .ruff .lint ]
8989select = [" ALL" ]
9090
@@ -129,7 +129,6 @@ ignore = [
129129[tool .ruff .lint .flake8-pytest-style ]
130130fixture-parentheses = false
131131
132-
133132[tool .ruff .lint .isort ]
134133combine-as-imports = true
135134force-sort-within-sections = true
You can’t perform that action at this time.
0 commit comments