Commit graph

266 commits

Author SHA1 Message Date
Hanif Birgani
b5414d4920 Convert a single line long string to multi-line to pass flake8 2021-09-10 15:46:25 +04:30
pre-commit-ci[bot]
0648ad9a93 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-09-10 11:12:26 +00:00
Hanif Birgani
15a0e66219 Merge master into this branch to resolve conflicts 2021-09-10 15:41:53 +04:30
Hanif Birgani
b664495067 Merge branch 'master' of https://github.com/EmilStenstrom/django-components into test/run-pre-commit-service 2021-09-10 15:39:48 +04:30
contrib-readme-bot
449b1e7d0e contrib-readme-action has updated readme 2021-09-10 11:01:45 +00:00
Emil Stenström
5a48bf48b3
Sync names of get_template_name and get_context_data with Django's Class Based Views. 2021-09-10 13:01:31 +02:00
Emil Stenström
a2f0e2246b Require get_context_data set to accept parameters. 2021-09-10 12:29:47 +02:00
Emil Stenström
fa3731422f Variables are never used in the tests. Remove them. 2021-09-10 11:46:09 +02:00
Real-Gecko
5fcabaa5ba Renamed get_context to get_context_data 2021-09-10 11:27:55 +02:00
Emil Stenström
b322ab0294 Removed pyproject.toml
# Conflicts:
#	pyproject.toml
2021-09-10 11:27:49 +02:00
Emil Stenström
5b9188cc9c Refactored Component class
# Conflicts:
#	README.md
#	pyproject.toml
2021-09-10 11:27:28 +02:00
Hanif Birgani
88da138af8 add a new line to .pre-commit-config.yaml to test pre-commit.ci service in a new pr 2021-09-09 18:47:23 +04:30
contrib-readme-bot
55f46d6069 contrib-readme-action has updated readme 2021-09-06 07:36:21 +00:00
Emil Stenström
04091fa3d3 Reenable contributors action. 2021-09-06 09:35:57 +02:00
Emil Stenström
723448c241 Disable contributors action, it doesn't work. 2021-09-06 09:21:20 +02:00
Emil Stenström
45a18626d7 Bump version. 2021-09-06 09:20:25 +02:00
Emil Stenström
acff86d4f9
Switch project to use black, isort and flake8 (thanks @hanifbirgani) 2021-09-03 16:56:33 +02:00
Hanif Birgani
3d45077ee8 Add pre-commit config
Add pre-commit config file to run isort, black and flake8 before each commit.
related to #36
2021-09-02 16:47:12 +04:30
Hanif Birgani
b0742ba608 Add black configurations. related to #36 2021-09-02 16:45:32 +04:30
Emil Stenström
b4951fd052
Merge pull request #89 from EmilStenstrom/dependabot/pip/django-3.2.7
Bump django from 3.2.6 to 3.2.7
2021-09-01 22:45:51 +02:00
dependabot[bot]
93af26b2df
Bump django from 3.2.6 to 3.2.7
Bumps [django](https://github.com/django/django) from 3.2.6 to 3.2.7.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.2.6...3.2.7)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-01 17:01:07 +00:00
Emil Stenström
b60f6a229a
Merge pull request #88 from EmilStenstrom/dependabot/pip/pytest-6.2.5
Bump pytest from 6.2.4 to 6.2.5
2021-08-31 20:45:20 +02:00
Emil Stenström
226e84d48f Update to latest version of contributors-readme-action. 2021-08-31 19:09:18 +02:00
Emil Stenström
8dfaa95afa
Add a github action to automate releases to PyPI (thanks @hanifbirgani) 2021-08-31 19:03:25 +02:00
dependabot[bot]
e4be7d3ce1
Bump pytest from 6.2.4 to 6.2.5
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.4 to 6.2.5.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.4...6.2.5)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-31 17:01:13 +00:00
Real-Gecko
c1d090d5c0
Added template loader for component templates automatic discovery (thanks @Real-Gecko) 2021-08-30 22:51:03 +02:00
contrib-readme-bot
f0293ec671 contrib-readme-action has updated readme 2021-08-30 11:28:06 +00:00
Hanif Birgani
6e98ac3f0b Add a github action to publish tagged releases to PyPI. fixes #69 2021-08-30 15:48:01 +04:30
Emil Stenström
74d7ea008b
Merge pull request #84 from EmilStenstrom/dependabot/pip/tox-3.24.3
Bump tox from 3.24.2 to 3.24.3
2021-08-23 23:38:50 +03:00
dependabot[bot]
ce33c743e2
Bump tox from 3.24.2 to 3.24.3
Bumps [tox](https://github.com/tox-dev/tox) from 3.24.2 to 3.24.3.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.24.2...3.24.3)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-23 17:01:06 +00:00
Emil Stenström
5a973c3ec3
Merge pull request #82 from EmilStenstrom/dependabot/pip/tox-3.24.2
Bump tox from 3.24.1 to 3.24.2
2021-08-18 20:27:54 +03:00
dependabot[bot]
bbd95ca2d8
Bump tox from 3.24.1 to 3.24.2
Bumps [tox](https://github.com/tox-dev/tox) from 3.24.1 to 3.24.2.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.24.1...3.24.2)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-18 17:01:08 +00:00
Emil Stenström
70fcc16261
Merge pull request #79 from EmilStenstrom/dependabot/pip/tox-3.24.1
Bump tox from 3.24.0 to 3.24.1
2021-08-02 23:24:37 +03:00
Emil Stenström
82e0752e57
Merge pull request #78 from EmilStenstrom/dependabot/pip/django-3.2.6
Bump django from 3.2.5 to 3.2.6
2021-08-02 23:24:23 +03:00
dependabot[bot]
11f6e00940
Bump tox from 3.24.0 to 3.24.1
Bumps [tox](https://github.com/tox-dev/tox) from 3.24.0 to 3.24.1.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.24.0...3.24.1)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 17:01:25 +00:00
dependabot[bot]
16899d311d
Bump django from 3.2.5 to 3.2.6
Bumps [django](https://github.com/django/django) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/commits)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 17:01:08 +00:00
Emil Stenström
6809e5d0d9
Merge pull request #77 from EmilStenstrom/dependabot/pip/isort-5.9.3
Bump isort from 5.9.2 to 5.9.3
2021-08-02 11:41:30 +03:00
dependabot[bot]
442035136b
Bump isort from 5.9.2 to 5.9.3
Bumps [isort](https://github.com/pycqa/isort) from 5.9.2 to 5.9.3.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/5.9.2...5.9.3)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-29 17:01:04 +00:00
Emil Stenström
e82051fcb2
Merge pull request #76 from EmilStenstrom/dependabot/pip/tox-3.24.0
Bump tox from 3.23.1 to 3.24.0
2021-07-14 19:28:41 +02:00
dependabot[bot]
a95e67a2e0
Bump tox from 3.23.1 to 3.24.0
Bumps [tox](https://github.com/tox-dev/tox) from 3.23.1 to 3.24.0.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.23.1...3.24.0)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-14 17:01:07 +00:00
Emil Stenström
2c05f9d8a3
Merge pull request #75 from EmilStenstrom/dependabot/pip/isort-5.9.2
Bump isort from 5.9.1 to 5.9.2
2021-07-13 23:46:22 +02:00
dependabot[bot]
7a3e2bc7cf
Bump isort from 5.9.1 to 5.9.2
Bumps [isort](https://github.com/pycqa/isort) from 5.9.1 to 5.9.2.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/5.9.1...5.9.2)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-08 17:01:06 +00:00
rbeard0330
e3c9ac76ce
Fix infinite recursion bug (fixes #68) (#74)
* Add regression test for recursion bug, #68

* Only allow slots to access slot nodelists provided to their immediate parent component to prevent infinite recursions.

* Fix import ordering bug in test

* Add slot.super to docs

Remove unused imports

* Bump version

Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2021-07-06 11:56:49 -04:00
Emil Stenström
7f4661922a
Merge pull request #73 from EmilStenstrom/dependabot/pip/django-3.2.5
Bump django from 3.2.4 to 3.2.5
2021-07-02 21:39:47 +02:00
dependabot[bot]
21d7b94a99
Bump django from 3.2.4 to 3.2.5
Bumps [django](https://github.com/django/django) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.2.4...3.2.5)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 17:01:09 +00:00
Emil Stenström
95a57ace89
Merge pull request #72 from EmilStenstrom/dependabot/pip/isort-5.9.1
Bump isort from 5.8.0 to 5.9.1
2021-06-21 19:17:12 +02:00
dependabot[bot]
1402dc50f0
Bump isort from 5.8.0 to 5.9.1
Bumps [isort](https://github.com/pycqa/isort) from 5.8.0 to 5.9.1.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/5.8.0...5.9.1)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 17:01:00 +00:00
Emil Stenström
4308fa1a7e
Merge pull request #67 from EmilStenstrom/dependabot/pip/django-3.2.4
Bump django from 3.2.3 to 3.2.4
2021-06-03 08:02:32 +02:00
dependabot[bot]
b97e16e66e
Bump django from 3.2.3 to 3.2.4
Bumps [django](https://github.com/django/django) from 3.2.3 to 3.2.4.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.2.3...3.2.4)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-03 05:07:08 +00:00
Emil Stenström
d60e529457 Bump version. 2021-05-30 18:48:09 +02:00