Skip to content

Commit

Permalink
Appease pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
skorokithakis committed Mar 8, 2024
1 parent a4586eb commit 10d5f9e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 92 deletions.
18 changes: 5 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,12 @@ repos:
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/ambv/black
rev: 22.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.1
hooks:
- id: black
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/PyCQA/flake8
rev: '6.0.0'
hooks:
- id: flake8
args: ["--config=setup.cfg"]
language_version: python3
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pycqa/pydocstyle
rev: 6.2.2
hooks:
Expand Down
88 changes: 12 additions & 76 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,116 +3,52 @@

## Unreleased

### Fixes

* Annotate *args as Any (#95) [Kamil Essekkat]


## v1.0.10 (2022-11-09)

### Features

* Add the `encode` and `decode` commands to the cli. [Tim Crothers]

* Add type hinting (#77) [Pablo Collado]

### Fixes

* Forgot to bump the version, oops. [Stavros Korokithakis]

* Fix type annotations. [Stavros Korokithakis]

* Add `prefix` and `max_length` to the Django field. [Stavros Korokithakis]

## v1.0.9 (2022-05-08)
* Add Django ShortUUIDField. [Stavros Korokithakis]

### Fixes
* Added basic input type validation to encode and decode (#49) [Ivan Savov]

* Correctly account for length when prefix is used (fixes #71) [Stavros Korokithakis]
* Drop support for Python before 3.5. [Stavros Korokithakis]

* Add simple command-line interface (#43) [Éric Araujo]

## v1.0.8 (2021-11-11)
* Make int_to_string and string_to_int available globally. [Stavros Korokithakis]

### Fixes

* Include the COPYING file in releases. [Stavros Korokithakis]

* Improve randomness (#101) [Henrich Hartzer]

## v1.0.7 (2021-11-08)

### Features
* Annotate *args as Any (#95) [Kamil Essekkat]

* Add `prefix` and `max_length` to the Django field. [Stavros Korokithakis]
* Forgot to bump the version, oops. [Stavros Korokithakis]

* Fix type annotations. [Stavros Korokithakis]

## v1.0.6 (2021-11-08)
* Correctly account for length when prefix is used (fixes #71) [Stavros Korokithakis]

### Fixes
* Include the COPYING file in releases. [Stavros Korokithakis]

* Fix compatibility for python versions older than 3.8 (#61) [Adrian Zuber]


## v1.0.5 (2021-11-08)

### Fixes

* Don't try to get the version from the pyproject.toml, as it's a hassle. [Stavros Korokithakis]

* Fix slow loading times from using pkg_resources (fixes #59) [Stavros Korokithakis]


## v1.0.4 (2021-11-08)

### Fixes

* Fix the cli interface that the previous release broke. [Stavros Korokithakis]


## v1.0.3 (2021-11-08)

### Features

* Add Django ShortUUIDField. [Stavros Korokithakis]


## v1.0.2 (2021-11-08)

### Features

* Added basic input type validation to encode and decode (#49) [Ivan Savov]

### Fixes

* Use sys.version_info since sys.version returns string that interprets 3.10 as 3.1 in comparison. (#54) [Karthikeyan Singaravelan]


## v1.0.1 (2020-03-06)

### Features

* Drop support for Python before 3.5. [Stavros Korokithakis]

### Fixes

* Use README as the long description on PyPI. [Stavros Korokithakis]


## v1.0.0 (2020-03-05)

### Features

* Add simple command-line interface (#43) [Éric Araujo]

### Fixes

* Make encode and decode MSB-first (#36) [Keane Nguyen]

* Make the URL check more robust (fixes #32) [Stavros Korokithakis]


## v0.5.0 (2017-02-19)

### Features

* Make int_to_string and string_to_int available globally. [Stavros Korokithakis]


5 changes: 2 additions & 3 deletions shortuuid/main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""Concise UUID generation."""
import binascii

import math
import os
import uuid as _uu
import secrets
import uuid as _uu
from typing import List
from typing import Optional

Expand Down

0 comments on commit 10d5f9e

Please sign in to comment.