Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ uv run pytest python/aswfdocker
# Type checking
uv run mypy python/aswfdocker

# Linting (score must be >= 8.0)
# Linting (any pylint message fails, as in python-sonar.yml's pytest --pylint)
uv run pylint python/aswfdocker

# Formatting (Black, targets Python 3.10)
Expand Down Expand Up @@ -137,7 +137,8 @@ uv run aswfdocker dockergen --check
- **Black** formatting (target: py310). Vendored Conan recipes in
`packages/conan/recipes/` are excluded from Black.
- **MyPy** strict type checking (Python 3.11 target)
- **Pylint** with fail-under score of 8.0
- **Pylint**: any message fails (`fail-on` in `pylintrc`), matching `pytest --pylint`
in `python-sonar.yml`; disable a check inline with a reason if it really doesn't apply
- **Naming**: PascalCase classes, snake_case functions/variables, UPPER_CASE constants

### Docker Images
Expand Down
5 changes: 4 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ extension-pkg-whitelist=
# Return non-zero exit code if any of these messages/categories are detected,
# even if score is above --fail-under value. Syntax same as enable. Messages
# specified are enabled, while categories only check already-enabled messages.
fail-on=
# Any message fails, as with the pytest --pylint run of python-sonar.yml
# (pytest-pylint ignores fail-under), so the pre-commit check of pull requests
# catches what would otherwise only fail on main.
fail-on=C,R,W,E,F

# Specify a score threshold to be exceeded before program exits with error.
fail-under=8
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ packages = { find = { where = ["python"] } }
aswfdocker = ["data/*.yaml", "data/*.jinja2"]

[tool.uv]
required-version = "0.13.5"
required-version = "0.13.7"

[tool.pytest.ini_options]
testpaths = [
Expand Down
Loading
Loading