-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
3,608 additions
and
3,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
max_line_length = 88 | ||
rulers = 88 | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{yaml,yml,json,toml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
name: Release on PYPI | ||
on: | ||
push: | ||
branches: [main] | ||
branches: [main] | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'bnzk/django-ckeditor-link' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
- name: Install build dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade setuptools wheel twine | ||
- name: Build | ||
run: | | ||
python setup.py sdist | ||
python setup.py bdist_wheel --universal | ||
- name: Publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USER_BNZK }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PW_BNZK }} | ||
run: twine upload dist/* | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
- name: Install build dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade setuptools wheel twine | ||
- name: Build | ||
run: | | ||
python setup.py sdist | ||
python setup.py bdist_wheel --universal | ||
- name: Publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USER_BNZK }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PW_BNZK }} | ||
run: twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
exclude: "^package.json|^package-lock.json|^z_legacy\/.*|__zzz\/.*|\/.*migrations.*\/.*" | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
# syntax | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-xml | ||
# - id: pretty-format-json | ||
# git & filesystem | ||
- id: check-added-large-files | ||
- id: check-symlinks | ||
- id: detect-private-key | ||
- id: check-merge-conflict | ||
- id: check-case-conflict # file conflicts: a.txt vs. A.txt | ||
# formatters | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
exclude: "(.*\\.html|.*\\.md)$" | ||
- id: end-of-file-fixer | ||
exclude: "(.*\\.xml|.*\\.svg)$" | ||
# python | ||
- id: check-ast # abstract syntax tree | ||
- id: check-builtin-literals # no {} and [], but dict() and list() | ||
- id: debug-statements | ||
# naaa | ||
# - id: name-tests-test | ||
# args: [--pytest-test-first] | ||
# django-upgrade suggestions | ||
- repo: https://github.com/adamchainz/django-upgrade | ||
rev: "1.14.0" | ||
hooks: | ||
- id: django-upgrade | ||
args: [--target-version, "4.2"] | ||
# tha black | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: "23.7.0" | ||
hooks: | ||
- id: black | ||
# flake8 replacement (&more) | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: "v0.0.284" | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
# js/sass/etc formatter | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.2 | ||
hooks: | ||
- id: prettier | ||
args: [--list-different] | ||
exclude: "(.*\\.html|.*\\.md)$" | ||
# eslinth, shall we? urrfff | ||
# - repo: https://github.com/pre-commit/mirrors-eslint | ||
# rev: v8.47.0 | ||
# hooks: | ||
# - id: eslint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Alternative link dialog for ckeditor 4, using django modeladmin forms. | ||
Alternative link dialog for ckeditor 4, using django modeladmin forms. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version__ = '0.5.1' | ||
__author__ = 'benzkji' | ||
__version__ = "0.5.2" | ||
__author__ = "benzkji" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.