-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
f4e3201
commit b654881
Showing
19 changed files
with
331 additions
and
80 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,18 @@ | ||
[run] | ||
branch = True | ||
source = aldryn_django_cms | ||
omit = | ||
migrations/* | ||
tests/* | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
def __repr__ | ||
if self.debug: | ||
if settings.DEBUG | ||
raise AssertionError | ||
raise NotImplementedError | ||
if 0: | ||
if __name__ == .__main__.: | ||
ignore_errors = True |
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,31 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 80 | ||
|
||
[*.py] | ||
max_line_length = 120 | ||
quote_type = single | ||
|
||
[*.{scss,js,html}] | ||
max_line_length = 120 | ||
indent_style = space | ||
quote_type = double | ||
|
||
[*.js] | ||
max_line_length = 120 | ||
quote_type = single | ||
|
||
[*.rst] | ||
max_line_length = 80 | ||
|
||
[*.yml] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Checks | ||
|
||
on: [push] | ||
|
||
jobs: | ||
flake8: | ||
name: flake8 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install flake8 | ||
run: pip install --upgrade flake8 | ||
- name: Run flake8 | ||
uses: liskin/gh-problem-matcher-wrap@v1 | ||
with: | ||
linters: flake8 | ||
run: flake8 | ||
|
||
isort: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- run: python -m pip install isort | ||
- name: isort | ||
uses: liskin/gh-problem-matcher-wrap@v1 | ||
with: | ||
linters: isort | ||
run: isort -c --df aldryn_django_cms | ||
|
||
unit-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9"] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install packaging | ||
pip install -r tests/requirements.txt | ||
python setup.py install | ||
- name: Run coverage | ||
run: coverage run setup.py test | ||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v1 |
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,6 +1,27 @@ | ||
/settings.json | ||
.DS_STORE | ||
*.pyc | ||
aldryn_django_cms.egg-info | ||
build | ||
dist | ||
*.py[cod] | ||
*$py.class | ||
*.egg-info | ||
*.log | ||
*.pot | ||
.DS_Store | ||
.coverage/ | ||
.eggs/ | ||
.idea/ | ||
.project/ | ||
.pydevproject/ | ||
.vscode/ | ||
.settings/ | ||
.tox/ | ||
__pycache__/ | ||
build/ | ||
dist/ | ||
env/ | ||
|
||
/~ | ||
/node_modules | ||
.sass-cache | ||
*.css.map | ||
npm-debug.log | ||
package-lock.json | ||
|
||
local.sqlite |
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
File renamed without changes.
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,3 @@ | ||
include LICENSE | ||
include README.rst | ||
recursive-exclude * *.py[co] |
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
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 +0,0 @@ | ||
# -*- coding: utf-8 -*- | ||
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,15 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from django.conf.urls import url, include | ||
from django.contrib.sitemaps.views import sitemap | ||
from django.urls import include, re_path | ||
|
||
from cms.sitemaps import CMSSitemap | ||
|
||
from .views import check_uninstall_ok | ||
|
||
|
||
urlpatterns = [ | ||
url(r'^admin/~cmscloud-api/check-uninstall/$', check_uninstall_ok, name='cms-check-uninstall'), | ||
url(r'^sitemap.xml$', sitemap, {'sitemaps': {'cmspages': CMSSitemap}}), | ||
url(r'^robots\.txt', include('robots.urls')), | ||
re_path(r'^admin/~cmscloud-api/check-uninstall/$', check_uninstall_ok, name='cms-check-uninstall'), | ||
re_path(r'^sitemap.xml$', sitemap, {'sitemaps': {'cmspages': CMSSitemap}}), | ||
re_path(r'^robots\.txt', include('robots.urls')), | ||
] |
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,11 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from django.conf.urls import url, include | ||
from django.urls import include, re_path | ||
|
||
|
||
urlpatterns = [ | ||
url(r'^api/~select2/', include('django_select2.urls')), | ||
re_path(r'^api/~select2/', include('django_select2.urls')), | ||
|
||
# required by aldryn-forms | ||
url(r'^api/~captcha/', include('captcha.urls')), | ||
re_path(r'^api/~captcha/', include('captcha.urls')), | ||
] |
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
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,27 @@ | ||
[flake8] | ||
max-line-length = 119 | ||
exclude = | ||
*.egg-info, | ||
.eggs, | ||
.git, | ||
.settings, | ||
.tox, | ||
build, | ||
data, | ||
dist, | ||
docs, | ||
*migrations*, | ||
requirements, | ||
tmp | ||
|
||
[isort] | ||
line_length = 79 | ||
skip = manage.py, *migrations*, .tox, .eggs, data | ||
include_trailing_comma = true | ||
multi_line_output = 5 | ||
lines_after_imports = 2 | ||
default_section = THIRDPARTY | ||
sections = FUTURE, STDLIB, DJANGO, CMS, THIRDPARTY, FIRSTPARTY, LOCALFOLDER | ||
known_first_party = aldryn_django_cms | ||
known_cms = cms, menus | ||
known_django = django |
Oops, something went wrong.