Skip to content

--strict deprecation was botched - what to do about it #13823

@bluetech

Description

@bluetech

In pytest 6.2, we deprecated the --strict option. In pytest 8, we purportedly removed it, however I completely botched the removal (1f8b39e), instead of removing --strict I removed its deprecation, effectively un-deprecating it.

I wonder if we should:

  1. re-deprecate it and remove in pytest 10

  2. remove it, on the idea that it did go through a deprecation period after all

  3. go with our original plan which is to make --strict an "open" flag which enables all current and future --strict-* flags (currently --strict-markers and --strict-config). Since --strict currently means --strict-markers this will add --strict-config to --strict and document --strict as a proper feature.

  4. other

I'd like to do 3 (and BTW also add ini options for strict and the current strict flags since I see them as project settings not per-run settings...).

(In #13757 I'm thinking it should be another strictness flag but not decided yet)

Metadata

Metadata

Assignees

Labels

type: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions