Skip to content

Releases: Viicos/flake8-pydantic

Release 0.3.1

06 May 16:40
79b5ba1
Compare
Choose a tag to compare

What's Changed

  • Improve Pydantic model detection robustness (#11)
  • Fix crash in the visitor implementation (#10)

Full Changelog: 0.3.0...0.3.1

Release 0.3.0

14 Mar 20:24
cd82d49
Compare
Choose a tag to compare

0.3.0 (2024-03-14)

Add a new rule:

  • PYD006 - Duplicate field name

Will raise an error with the following:

class Model(BaseModel):
    x: int
    x: int = 1

Releas 0.2.0

24 Feb 17:19
3715aec
Compare
Choose a tag to compare

Add three new rules:

  • PYD003 - Unecessary Field call to specify a default value

  • PYD004 - Default argument specified in annotated

  • PYD005 - Field name overrides annotation

  • Drop support for Python 3.8

Release 0.1.0.post0

23 Feb 18:37
cf04e05
Compare
Choose a tag to compare

What's Changed

  • Add missing readme metadata entry by @Viicos in #2
  • Prepare release 0.1.0.post0 by @Viicos in #3

Full Changelog: 0.1.0...0.1.0.post0

Releas 0.1.0

23 Feb 18:30
d71555d
Compare
Choose a tag to compare

Initial release. The following rules are implemented:

  • PYD001 - Positional argument for Field default argument
  • PYD002 - Non-annotated attribute inside Pydantic model
  • PYD010 - Usage of __pydantic_config__