code-standards 7.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- code_standards-7.0.0.dist-info/METADATA +53 -0
- code_standards-7.0.0.dist-info/RECORD +99 -0
- code_standards-7.0.0.dist-info/WHEEL +4 -0
- code_standards-7.0.0.dist-info/entry_points.txt +3 -0
- code_standards-7.0.0.dist-info/licenses/LICENSE +21 -0
- sarj_standards/__init__.py +30 -0
- sarj_standards/__main__.py +5 -0
- sarj_standards/_meta.py +22 -0
- sarj_standards/api.py +890 -0
- sarj_standards/cli/__init__.py +0 -0
- sarj_standards/cli/main.py +2466 -0
- sarj_standards/configs/cli-reference.v1.json +1 -0
- sarj_standards/configs/doctor.config.json +22 -0
- sarj_standards/configs/eslint.application.mjs +1366 -0
- sarj_standards/configs/eslint.peers.json +44 -0
- sarj_standards/configs/eslint.strict.mjs +1060 -0
- sarj_standards/configs/markdownlint.strict.yaml +12 -0
- sarj_standards/configs/pyright.strict.json +96 -0
- sarj_standards/configs/ruff.application.toml +363 -0
- sarj_standards/configs/ruff.strict.toml +338 -0
- sarj_standards/configs/rule-inventory.v1.json +1 -0
- sarj_standards/configs/rule-ledger.json +846 -0
- sarj_standards/configs/rule-warning-levels.v1.json +1 -0
- sarj_standards/configs/taplo.strict.toml +14 -0
- sarj_standards/configs/yamllint.strict.yaml +25 -0
- sarj_standards/libs/__init__.py +0 -0
- sarj_standards/libs/adoption/__init__.py +0 -0
- sarj_standards/libs/adoption/configs.py +36 -0
- sarj_standards/libs/adoption/doctor.py +1346 -0
- sarj_standards/libs/adoption/exclusions.py +66 -0
- sarj_standards/libs/adoption/hooks.py +423 -0
- sarj_standards/libs/adoption/launcher.py +240 -0
- sarj_standards/libs/adoption/lifecycle.py +493 -0
- sarj_standards/libs/adoption/manifest.py +550 -0
- sarj_standards/libs/adoption/packagemanager.py +285 -0
- sarj_standards/libs/adoption/retired_suppressions.py +371 -0
- sarj_standards/libs/adoption/scaffold.py +1660 -0
- sarj_standards/libs/adoption/service.py +441 -0
- sarj_standards/libs/adoption/transaction.py +274 -0
- sarj_standards/libs/adoption/upgrade.py +516 -0
- sarj_standards/libs/adoption/uvtool.py +62 -0
- sarj_standards/libs/catalogs/__init__.py +9 -0
- sarj_standards/libs/catalogs/slack_automations.py +627 -0
- sarj_standards/libs/corpus/__init__.py +25 -0
- sarj_standards/libs/corpus/manifest.py +211 -0
- sarj_standards/libs/corpus/snapshot.py +222 -0
- sarj_standards/libs/diagnostics/__init__.py +65 -0
- sarj_standards/libs/diagnostics/analysis.schema.json +161 -0
- sarj_standards/libs/diagnostics/baseline.py +131 -0
- sarj_standards/libs/diagnostics/models.py +574 -0
- sarj_standards/libs/diagnostics/serialize.py +290 -0
- sarj_standards/libs/diagnostics/source.py +172 -0
- sarj_standards/libs/filesystem.py +11 -0
- sarj_standards/libs/linting/__init__.py +0 -0
- sarj_standards/libs/linting/analysis.py +422 -0
- sarj_standards/libs/linting/external.py +1454 -0
- sarj_standards/libs/linting/library_policy.py +688 -0
- sarj_standards/libs/linting/policy.py +152 -0
- sarj_standards/libs/linting/runner.py +442 -0
- sarj_standards/libs/linting/textlint.py +1605 -0
- sarj_standards/libs/release/__init__.py +98 -0
- sarj_standards/libs/release/_values.py +24 -0
- sarj_standards/libs/release/artifacts.py +191 -0
- sarj_standards/libs/release/causality.py +80 -0
- sarj_standards/libs/release/changes.py +48 -0
- sarj_standards/libs/release/process.py +128 -0
- sarj_standards/libs/release/publish.py +85 -0
- sarj_standards/libs/release/registry.py +271 -0
- sarj_standards/libs/release/release_age.py +218 -0
- sarj_standards/libs/release/rollout.py +1163 -0
- sarj_standards/libs/release/tags.py +373 -0
- sarj_standards/libs/release/typescript.py +191 -0
- sarj_standards/libs/repository/__init__.py +0 -0
- sarj_standards/libs/repository/cli_reference_artifact.py +324 -0
- sarj_standards/libs/repository/comment_corpus.py +536 -0
- sarj_standards/libs/repository/config_generation.py +146 -0
- sarj_standards/libs/repository/docs.py +347 -0
- sarj_standards/libs/repository/hooks.py +118 -0
- sarj_standards/libs/repository/ledger.py +99 -0
- sarj_standards/libs/repository/repository.py +744 -0
- sarj_standards/libs/repository/rule_authoring.py +246 -0
- sarj_standards/libs/repository/rule_catalog_artifact.py +479 -0
- sarj_standards/libs/repository/rule_changes.py +318 -0
- sarj_standards/libs/repository/rule_inventory_artifact.py +142 -0
- sarj_standards/libs/repository/rule_lifecycle.py +167 -0
- sarj_standards/libs/repository/rule_maintenance.py +225 -0
- sarj_standards/libs/rules/__init__.py +74 -0
- sarj_standards/libs/rules/catalog.py +145 -0
- sarj_standards/libs/rules/contracts.py +382 -0
- sarj_standards/libs/rules/corpus_runner.py +365 -0
- sarj_standards/libs/rules/evaluation.py +177 -0
- sarj_standards/libs/setup/__init__.py +4 -0
- sarj_standards/libs/setup/repository.py +40 -0
- sarj_standards/py.typed +0 -0
- sarj_standards/schemas/__init__.py +4 -0
- sarj_standards/schemas/_paths.py +7 -0
- sarj_standards/schemas/rule-catalog.v1.json +1 -0
- sarj_standards/schemas/rule-catalog.v1.schema.json +112 -0
- sarj_standards/schemas/slack-automations.v1.schema.json +1751 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"rules":["eslint:iac-source-coupled-test","eslint:no-bare-return-from-test-catch","eslint:no-dangerously-allow-svg","eslint:no-duplicate-lifecycle-refresh-listeners","eslint:no-production-browser-source-maps","eslint:no-router-refresh-polling","eslint:no-server-env-in-client-component","eslint:repeated-static-call-cases","eslint:require-use-form-default-values","eslint:require-use-server-in-actions-file","eslint:test-phase-label-comment","iac:no-dead-environment-input","iac:no-restated-comment","iac:no-terraform-test-file","python:created-at-order-requires-tiebreaker","python:get-delegates-to-get-many","python:negative-only-http-status-assertion","python:no-conftest-test-module-import","python:no-fastapi-on-event","python:no-nested-pydantic-field-validator","python:no-redundant-literal-description","python:no-unique-violation-message-match","python:no-unnecessary-docstring","python:no-vague-suppression-description","python:prefer-one-for-required-row","python:preserve-declared-nominal-id","python:preserve-enum-types","python:production-derived-test-cases","python:repeated-static-call-cases","python:require-nodecode-for-splitting-settings-field","python:require-pydantic-for-external-json","python:require-pydantic-ordinal-lower-bound","python:require-validated-row-factory","python:sql-requires-injected-pool-owner","sql:no-comment-cruft","sql:no-create-trigger","text:exact-config-comment-restatement","text:hidden-markdown-heading","text:no-unsafe-command-argument-interpolation","text:no-wildcard-secret-read-permission"],"schemaVersion":1}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Sarj strict TOML lint & formatting configuration for Taplo
|
|
2
|
+
include = ["**/*.toml"]
|
|
3
|
+
exclude = ["**/.ruff-strict.toml", "**/.taplo.toml"]
|
|
4
|
+
|
|
5
|
+
[formatting]
|
|
6
|
+
align_entries = false
|
|
7
|
+
align_comments = true
|
|
8
|
+
array_trailing_comma = true
|
|
9
|
+
array_auto_expand = true
|
|
10
|
+
inline_table_expand = true
|
|
11
|
+
indent_entries = false
|
|
12
|
+
indent_string = " "
|
|
13
|
+
trailing_newline = true
|
|
14
|
+
reorder_keys = true
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Sarj strict YAML lint configuration for yamllint
|
|
2
|
+
extends: default
|
|
3
|
+
|
|
4
|
+
rules:
|
|
5
|
+
braces:
|
|
6
|
+
min-spaces-inside: 0
|
|
7
|
+
max-spaces-inside: 1
|
|
8
|
+
brackets:
|
|
9
|
+
min-spaces-inside: 0
|
|
10
|
+
max-spaces-inside: 1
|
|
11
|
+
colons:
|
|
12
|
+
max-spaces-after: 1
|
|
13
|
+
max-spaces-before: 0
|
|
14
|
+
comments:
|
|
15
|
+
min-spaces-from-content: 1
|
|
16
|
+
document-start: disable
|
|
17
|
+
indentation:
|
|
18
|
+
spaces: 2
|
|
19
|
+
indent-sequences: true
|
|
20
|
+
line-length: disable
|
|
21
|
+
truthy:
|
|
22
|
+
allowed-values: ['true', 'false']
|
|
23
|
+
# GitHub Actions uses `on` as a mapping key; YAML 1.1 must not treat keys as
|
|
24
|
+
# booleans or reject otherwise-valid workflow files.
|
|
25
|
+
check-keys: false
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from types import MappingProxyType
|
|
4
|
+
from typing import TYPE_CHECKING, Final
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from collections.abc import Mapping
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
CONFIG_NAMES: Final[Mapping[str, tuple[str, str]]] = MappingProxyType(
|
|
12
|
+
{
|
|
13
|
+
"ruff": ("ruff.strict.toml", ".ruff-strict.toml"),
|
|
14
|
+
"pyright": ("pyright.strict.json", ".pyright-strict.json"),
|
|
15
|
+
"eslint": ("eslint.strict.mjs", "eslint.strict.mjs"),
|
|
16
|
+
"markdownlint": ("markdownlint.strict.yaml", ".markdownlint.yaml"),
|
|
17
|
+
"taplo": ("taplo.strict.toml", ".taplo.toml"),
|
|
18
|
+
"yamllint": ("yamllint.strict.yaml", ".yamllint.yaml"),
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
# These files travel with an existing capability instead of adding another
|
|
23
|
+
# manifest switch. React Doctor is an advisory companion to the TypeScript
|
|
24
|
+
# gate, so every ESLint consumer receives the same data-only configuration.
|
|
25
|
+
TYPESCRIPT_COMPANION_CONFIGS: Final[Mapping[str, tuple[str, str]]] = MappingProxyType(
|
|
26
|
+
{
|
|
27
|
+
"react-doctor": ("doctor.config.json", "doctor.config.json"),
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
APPLICATION_CONFIG_NAMES: Final[Mapping[str, str]] = MappingProxyType(
|
|
31
|
+
{
|
|
32
|
+
"ruff": "ruff.application.toml",
|
|
33
|
+
"eslint": "eslint.application.mjs",
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
PYTHON_CONFIGS: Final = frozenset({"ruff", "pyright"})
|