Skip to content

Commit 767c928

Browse files
committed
updates
1 parent c696823 commit 767c928

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2933
-881
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 13 deletions
This file was deleted.

.flake8

Lines changed: 0 additions & 10 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
.*
22
~*
3-
*.lock
43
build
4+
dist
55
__pycache__
66
*.egg-info
77
!docs/**/.pages
88
!.gitignore
99
!.github
10-
!.bumpversion.cfg
11-
!.flake8
12-
!.isort.cfg
13-
!.readthedocs.yaml
14-
.travis.yml
15-
dist/
1610
coverage.xml
1711
pytest.xml
1812
docs/images/*.mov
13+
src/adminfilters/version.py

.isort.cfg

Lines changed: 0 additions & 14 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 34 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,35 @@
1-
exclude: '^$'
2-
fail_fast: false
31
repos:
4-
- repo: local
5-
hooks:
6-
7-
- id: isort
8-
args: ['--check-only', '--settings', '.isort.cfg']
9-
exclude: tweepy
10-
name: isort
11-
entry: isort
12-
language: system
13-
types: [python]
14-
stages: [commit]
15-
16-
- id: flake8
17-
exclude: /(_plugin_template|python_twitter|migrations|tweepy)/
18-
name: flake8
19-
entry: flake8
20-
language: system
21-
types: [python]
22-
stages: [commit]
23-
24-
- repo: https://github.com/pre-commit/pre-commit-hooks
25-
rev: v2.1.0
26-
hooks:
27-
# - id: double-quote-string-fixer
28-
# stages: [commit]
29-
30-
- id: debug-statements
31-
stages: [commit]
32-
33-
- id: end-of-file-fixer
34-
exclude: .bumpversion.cfg
35-
stages: [commit]
36-
37-
- id: check-merge-conflict
38-
stages: [commit]
39-
40-
- id: check-case-conflict
41-
stages: [commit]
42-
43-
- repo: https://github.com/saxix/pch
44-
rev: fc387f4
45-
hooks:
46-
- id: check-missed-migrations
47-
args:
48-
- src
49-
stages: [commit]
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: end-of-file-fixer
6+
- id: trailing-whitespace
7+
- repo: https://github.com/python-jsonschema/check-jsonschema
8+
rev: 0.31.2
9+
hooks:
10+
- id: check-github-workflows
11+
args: [ "--verbose" ]
12+
- repo: https://github.com/tox-dev/tox-ini-fmt
13+
rev: "1.5.0"
14+
hooks:
15+
- id: tox-ini-fmt
16+
args: [ "-p", "lint" ]
17+
- repo: https://github.com/tox-dev/pyproject-fmt
18+
rev: "v2.5.1"
19+
hooks:
20+
- id: pyproject-fmt
21+
- repo: https://github.com/astral-sh/ruff-pre-commit
22+
rev: "v0.9.9"
23+
hooks:
24+
- id: ruff-format
25+
- id: ruff
26+
args: [ "--fix", "--unsafe-fixes", "--exit-non-zero-on-fix" ]
27+
# - repo: https://github.com/adamchainz/djade-pre-commit
28+
# rev: "1.3.2"
29+
# hooks:
30+
# - id: djade
31+
# args: [ --check, --target-version, "5.1" ]
32+
- repo: meta
33+
hooks:
34+
- id: check-hooks-apply
35+
- id: check-useless-excludes

.readthedocs.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Release 2.5.1
88
=============
99
* limit select2.css customisation be applied only to filters
1010
* Enabling better AutocompleteFilter customisation
11+
* PEP 621 support (pyproject.toml)
1112

1213

13-
* PEP 621 support (pyproject.toml)
1414
Release 2.5
1515
===========
1616
* PEP 621 support (pyproject.toml)

MANIFEST.in

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,17 @@ include setup.py
77
include setup.cfg
88
include tox.ini
99

10-
recursive-include docs *.py
1110
recursive-include src *.html
1211
recursive-include src *.json
1312
recursive-include src *.py
1413
recursive-include src *.js
1514
recursive-include src *.css
16-
recursive-include src *.coveragerc
17-
recursive-include src *.pip
1815

19-
recursive-include tests *
16+
recursive-exclude tests *
2017

2118
recursive-exclude tests *.pyc
2219
recursive-exclude src *.pyc
2320
recursive-exclude tests ~*
2421
recursive-exclude src ~*
2522

2623
exclude Makefile
27-
exclude .bumpversion.cfg
28-
exclude .isort.cfg
29-
exclude .flake8

Makefile

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ lint: ## code lint
2626
tox -e lint
2727
#pre-commit run --all-files
2828

29-
develop: ## setup development env
30-
python3 -m venv ./.venv
31-
./.venv/bin/pip install -r src/requirements/testing.pip
32-
./.venv/bin/pip install -r src/requirements/develop.pip
3329

3430
demo: ## run demo app
3531
cd tests/demoapp && python manage.py makemigrations demo
@@ -48,33 +44,3 @@ fullclean: ## clean development directory
4844

4945
test: ## run test
5046
py.test src tests -vv --capture=no --doctest-modules --cov=adminfilters --cov-report=html --cov-config=tests/.coveragerc
51-
52-
docs: .mkbuilddir
53-
@sh docs/to_gif.sh docs/images
54-
@mkdir -p ${BUILDDIR}/docs
55-
sphinx-build -aE docs ${BUILDDIR}/docs
56-
57-
bump: ## Bumps version
58-
@while :; do \
59-
read -r -p "bumpversion [major/minor/release]: " PART; \
60-
case "$$PART" in \
61-
major|minor|release) break ;; \
62-
esac \
63-
done ; \
64-
bumpversion --no-commit --allow-dirty $$PART
65-
@grep "^VERSION " src/adminfilters/__init__.py
66-
67-
68-
heroku:
69-
@git checkout heroku
70-
@git merge develop -m "merge develop"
71-
@git push heroku heroku:master
72-
@git checkout develop
73-
@echo "check demo at https://django-adminfilters.herokuapp.com/"
74-
75-
heroku-reset: heroku
76-
heroku pg:reset --confirm django-adminfilters
77-
heroku config:set DEBUG=true
78-
heroku run python tests/demoapp/manage.py migrate
79-
heroku run python tests/demoapp/manage.py init_demo
80-
heroku run python tests/demoapp/manage.py collectstatic --noinput

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Demo can be found at https://django-adminfilters.herokuapp.com/demo/artist/
88
[![Pypi](https://badge.fury.io/py/django-adminfilters.svg)](https://pypi.org/project/django-adminfilters/)
99
[![coverage](https://codecov.io/github/saxix/django-adminfilters/coverage.svg?branch=develop)](https://codecov.io/github/saxix/django-adminfilters?branch=develop)
1010
[![Test](https://github.com/saxix/django-adminfilters/actions/workflows/test.yml/badge.svg)](https://github.com/saxix/django-adminfilters/actions/workflows/test.yml)
11-
[![ReadTheDocs](https://readthedocs.org/projects/django-adminfilters/badge/?version=latest)](https://django-adminfilters.readthedocs.io/en/latest/)
11+
[![Django](https://img.shields.io/pypi/frameworkversions/django/django-adminfilters)](https://pypi.org/project/django-adminfilters/)
12+
13+
[//]: # ([![Supported Python versions](https://img.shields.io/pypi/pyversions/pdf-cli.svg)](https://pypi.org/project/pdf-cli/))
1214

1315

1416
https://user-images.githubusercontent.com/27282/153727131-d875f946-a8a8-4d89-be83-1d8cb5c9391a.mp4

0 commit comments

Comments
 (0)