@@ -35,6 +35,7 @@ tox = "^4.4.7"
3535mkdocs = " ^1.4.2"
3636mkdocs-material = " ^9.1.3"
3737mkdocstrings = { extras = [" python" ], version = " ^0.20.0" }
38+ pyaml = " ^21.10.1"
3839
3940[tool .poetry .group .sast .dependencies ]
4041bandit = " ^1.7.5"
@@ -60,38 +61,31 @@ build-backend = "poetry.core.masonry.api"
6061[tool .black ]
6162line-length = 100
6263target-version = [" py38" , " py39" , " py310" , " py311" ]
64+ extend-exclude = " i18n"
6365
6466[tool .bandit ]
65- exclude_dirs = [
66- " .github" ,
67- " .pytest_cache" ,
68- " .tox" ,
69- " .vscode" ,
70- " docs" ,
71- " site" ,
72- " tests" ,
73- ]
67+ exclude_dirs = [" .github" , " .pytest_cache" , " .tox" , " .vscode" , " site" , " tests" ]
7468
7569[tool .isort ]
76- extend_skip_glob = [" **/i18n/*" ]
7770ensure_newline_before_comments = true
71+ extend_skip_glob = [" **/i18n/*" ]
7872force_grid_wrap = 0
7973force_sort_within_sections = true
8074ignore_comments = true
8175include_trailing_comma = true
8276known_local_folder = [" validators" ]
83- line_length = 100
8477length_sort = true
78+ line_length = 100
8579multi_line_output = 3
8680profile = " black"
87- reverse_sort = true
8881reverse_relative = true
82+ reverse_sort = true
8983skip_gitignore = true
9084use_parentheses = true
9185
9286[tool .pyright ]
9387include = [" validators" , " tests" ]
94- exclude = [" **/__pycache__" , " .pytest_cache/" , " .tox/" , " site/" ]
88+ exclude = [" **/__pycache__" , " .pytest_cache/" , " .tox/" , " site/" , " **/i18n/* " ]
9589pythonVersion = " 3.8"
9690pythonPlatform = " All"
9791typeCheckingMode = " strict"
@@ -102,25 +96,32 @@ legacy_tox_ini = """
10296 requires =
10397 tox >= 4.0
10498 env_list = py{38,39,310,311}
105- # format , lint, type,
99+ fmt_black, fmt_isort , lint, type
106100
107101 [testenv]
108102 description = run unit tests
109103 deps = pytest
110104 commands = pytest
111105
112- # [testenv:format]
113- # description = run formatter
114- # deps = black
115- # commands = black
116-
117- # [testenv:lint]
118- # description = run linters
119- # deps = flake8
120- # commands = flake8
121-
122- # [testenv:type]
123- # description = run type checker
124- # deps = pyright
125- # commands = pyright
106+ [testenv:fmt_black]
107+ description = run formatter
108+ deps = black
109+ commands = black .
110+
111+ [testenv:fmt_isort]
112+ description = run formatter
113+ deps = isort
114+ commands = isort .
115+
116+ [testenv:lint]
117+ description = run linters
118+ deps = flake8
119+ commands = flake8
120+
121+ [testenv:type]
122+ description = run type checker
123+ deps =
124+ pyright
125+ pytest
126+ commands = pyright
126127"""
0 commit comments