Skip to content

Commit

Permalink
refactor: upgrade the code to django 3.2+
Browse files Browse the repository at this point in the history
refactor: added pre-commit configs
  • Loading branch information
aqeelat committed Aug 1, 2023
1 parent b050899 commit c86a144
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 12 deletions.
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
hooks:
- id: pyupgrade
args: [--py37-plus]

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.14.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- id: mixed-line-ending
- id: check-yaml
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ CHANGELOG
Added tests, travis CI

1.0.0 (Dec 9 2015)
initial concept proof
initial concept proof
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1 change: 0 additions & 1 deletion demo_proj/demo_app/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
default_app_config='demo_app.apps.DemoAppConfig'
2 changes: 1 addition & 1 deletion demo_proj/demo_proj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@
# https://docs.djangoproject.com/en/1.11/howto/static-files/

STATIC_URL = '/static/'
os.path.join('../')
os.path.join('../')
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ window.onload = function() {
user_group_permissions.append(output);
})
})(django.jQuery);
};
};
2 changes: 0 additions & 2 deletions tests/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@
urlpatterns = [
path('admin/', admin.site.urls),
]


0 comments on commit c86a144

Please sign in to comment.