Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
pix666 committed Feb 12, 2024
2 parents 7813474 + 445ee63 commit 3f20729
Show file tree
Hide file tree
Showing 17 changed files with 731 additions and 623 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
- 3.9
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: "(tests/|/migrations/)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -10,13 +10,13 @@ repos:
files: \.py$

- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
files: \.py$

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 7.0.0
hooks:
- id: flake8
files: \.py$
Expand All @@ -25,12 +25,12 @@ repos:
- pep8-naming

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.8.0
hooks:
- id: mypy
files: \.py$

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
rev: v3.1.0
hooks:
- id: prettier
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
paper_admin/static/paper_admin/dist
paper_admin/static/paper_admin/src/css/vendors
awesomplete/static/awesomplete/css/vendor
awesomplete/static/awesomplete/js/vendor
*.yml
*.yaml
*.html
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## [0.6.0](https://github.com/dldevinc/django-awesomplete/tree/v0.6.0) - 2024-02-12

### Features

- Added support for Django 5.0.
- Added support for Python 3.12.
- `awesomplete.js` updated to v1.1.5.

### Bug Fixes

- Fixed https://github.com/dldevinc/django-awesomplete/issues/1.

## [0.5.2](https://github.com/dldevinc/django-awesomplete/tree/v0.5.2) - 2023-02-24

### Features
Expand Down
50 changes: 50 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Contribution

## Development

#### Setup

1. Clone the repository
```shell
git clone https://github.com/dldevinc/django-awesomplete
```
1. Create a virtualenv
```shell
cd django-awesomplete
virtualenv .venv
```
1. Activate virtualenv
```shell
source .venv/bin/activate
```
1. Install dependencies as well as a local editable copy of the library
```shell
pip install -r ./requirements.txt
pip install -e .
```
1. Run test project

```shell
python3 manage.py migrate
python3 manage.py loaddata tests/fixtures.json
```

```shell
python3 manage.py runserver
```

> Django admin credentials: `admin` / `admin`

#### Pre-Commit Hooks

We use [`pre-commit`](https://pre-commit.com/) hooks to simplify linting
and ensure consistent formatting among contributors. Use of `pre-commit`
is not a requirement, but is highly recommended.

```shell
pip install pre-commit
pre-commit install
```

Commiting will now automatically run the local hooks and ensure that
your commit passes all lint checks.
2 changes: 1 addition & 1 deletion awesomplete/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.2"
__version__ = "0.6.0"

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions awesomplete/static/awesomplete/css/widget.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.aligned .awesomplete ul {
padding-left: 0; /* override django styles */
}
Loading

0 comments on commit 3f20729

Please sign in to comment.