Skip to content

Latest commit

 

History

History
155 lines (126 loc) · 7.41 KB

CHANGELOG.md

File metadata and controls

155 lines (126 loc) · 7.41 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.10.2 - 2024-09-20

  • Updated countries.json and municipalities.json data.
  • Added missing country to countries-patch.json. (by @tommysolinas in #195)
  • Added missing municipalities to municipalities-patch.json. (by @tommysolinas in #194)
  • Bump requirements and pre-commit hooks.

0.10.1 - 2024-06-06

  • Add mypy to pre-commit.
  • Update mypy config.
  • Update tool.ruff config.
  • Fix pyproject Ruff conf warnings.
  • Updated countries.json and municipalities.json data.
  • Bump requirements and pre-commit hooks.

0.10.0 - 2024-02-19

  • Fix validation error with valid code. #162 (#163)
  • Fix typing errors.
  • Fix pyproject warnings.
  • Avoid wrong birthplace code error (when birthdate falls in missing date-range in the data-source even if birthplace code is valid).
  • Remove timezone info from datetimes.
  • Improve tests.
  • Bump requirements and pre-commit hooks.

0.9.1 - 2024-02-15

  • Allow access to data files when running in a frozen environment (eg. executable). #152
  • Bump requirements and pre-commit hooks.

0.9.0 - 2023-11-06

  • Add Python 3.12 support.
  • Add possibility to validate code from the command line, eg. python -m codicefiscale validate {code}.
  • Add codicefiscale.data module with methods for exposing data.
  • Bump requirements, pre-commit hooks and actions.

0.8.2 - 2023-10-02

  • Patch some wrong municipalities data. #123

0.8.1 - 2023-09-05

  • Merge fetched data with manually managed patch data. (#116)
  • Update municipalities data source url.
  • Bump requirements.

0.8.0 - 2023-04-09

  • Manage correctly deleted countries. #36
  • Replace flake8 with Ruff.
  • Switch from setup.cfg to pyproject.toml.
  • Improve code quality.
  • Bump requirements.

0.7.1 - 2023-03-30

  • Fix encoding/decoding error when year of birth (excluding century) < 10 (eg. 2004). #79
  • Improve error message for invalid birthplace codes.
  • Refactor tests and move each issue test to its own test case.
  • Update pre-commit hooks. (#80)

0.7.0 - 2023-03-27

  • Add command line usage support. #14 (#78)
  • Rename arguments and output variable names: name -> firstname and surname -> lastname.

0.6.1 - 2023-01-12

  • Add setup.cfg (setuptools declarative syntax) generated using setuptools-py2cfg.
  • Add pyupgrade to pre-commit config.
  • Remove tests/ from dist.
  • Updated countries.json and municipalities.json data.
  • Improve update script error messages and fix formatting error.
  • Bump requirements.

0.6.0 - 2022-12-09

  • Add Python 3.11 support.
  • Add pre-commit.
  • Add pypy to CI.
  • Drop Python < 3.8 support.
  • Updated countries.json and/or municipalities.json data.
  • Replace str.format with f-strings.
  • Remove encoding pragma.
  • Decrease dependence on CODICEFISCALE_RE regex by naming subpatterns.
  • Fix decoding code with invalid birthplace code. #27
  • Fix date of birth not honored when encoding and decoding (deleted municipalities only). #37 (#40)
  • Bump requirements and GitHub actions versions.

0.5.0 - 2022-09-22

  • Add municipality validity date support. Fix #12 and #23 by danisana in #24.
  • Replace str.format with f-strings.
  • Update countries.json and municipalities.json data.
  • Update and pin requirements.

0.4.0 - 2022-02-18

  • Dropped python 2.7 and python 3.5 support.
  • Pinned requirements versions.
  • Moved data to external json files and removed data python module.
  • Updated countries.json and municipalities.json data.

0.3.9 - 2022-01-28

  • Fixed municipality overwritten by old municipality (deleted) with the same code. #16

0.3.8 - 2022-01-10

  • Fixed number of omocodes. #13
  • Formatted code with Black.
  • Updated strings formatting.
  • Added python 3.9 and python 3.10 official support.
  • Added requirements.txt and requirements-test.txt.
  • Added CHANGELOG.md.
  • Added GitHub action workflow.
  • Removed TravisCI and CircleCI.
  • Removed some dead code.

0.3.7 - 2019-12-18

  • Added docstrings to methods.
  • Fixed tests import.
  • Updated requirements.
  • Added CircleCI workflow.

0.3.6 - 2019-11-15

  • Added python 3.8 official support.
  • Updated municipalities with data from ANPR.

0.3.5 - 2019-07-04

  • Updated requirements.
  • Improved code quality.

0.3.4 - 2019-02-07

  • Updated municipalities data.

0.3.3 - 2018-11-14

  • Fixed error on date - #3
  • Added python 3.7 to tox and .travis.

0.3.2 - 2018-09-17

  • Corrected some province names. #1
  • Replaced double unserscores with single ones. #2

0.3.1 - 2018-05-03

  • Updated requirements.

0.3.0 - 2017-11-06

  • Removed omocodes argument from encode method.

0.2.1 - 2017-10-18

  • Added raw values to decoded data.

0.2.0 - 2017-10-17

  • Improved omocodia support and added is_omocode method.

0.1.1 - 2017-10-12

  • Raised error if the birthplace is not mapped to a code.
  • Increased tests coverage.
  • Code refactoring.

0.1.0 - 2017-10-10

  • Released package on pypi.