Dogmatic
An opinionated Python linter and formatter built on Ruff, with native rules for typed data boundaries, explicit dependency injection, async execution, pytest, and named constants.
uv tool install dogmatic
dogmatic check .
dogmatic format .
The Python package also supports python -m dogmatic. Dogmatic uses Ruff's
configuration format, including [tool.ruff] in pyproject.toml, ruff.toml,
and existing rule selectors and suppressions.
Dogmatic's release version is independent of its Ruff engine version. Ruff's
required-version setting checks the engine version, currently 0.16.6.
Application-specific checks are opt-in preview rules. For example:
[tool.ruff.lint]
preview = true
extend-select = [
"custom-prefer-dataclass",
"custom-explicit-dependencies",
"custom-no-service-locator",
"custom-no-import-side-effects",
"custom-no-bare-constants",
"custom-no-thread-execution",
"custom-no-test-mocking",
"custom-require-pydantic-input",
]
Run dogmatic rule <rule-name> for a rule's behavior and examples.
Dogmatic includes Ruff, originally developed by Astral Software Inc., under the MIT license. The upstream project is available at astral-sh/ruff. Dogmatic is an independent distribution; its application-specific policies are not upstream Ruff rules.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dogmatic-0.1.1-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: dogmatic-0.1.1-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.6 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5285d422203ec929dac2750ef9ee0bb2150a97dcc1b0e4295c809cee70271d8
|
|
| MD5 |
17b84676cc341f852792e15aea81480e
|
|
| BLAKE2b-256 |
e1c7663024134dc6bacef0a3732b422e50bb1fe853d93a17754e9b125a77ab5f
|