Skip to content

Commit 98d999d

Browse files
feat(initial commit): initial commit
1 parent 9f591b5 commit 98d999d

File tree

20 files changed

+14915
-274
lines changed

20 files changed

+14915
-274
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
charset = utf-8
10+
11+
[*.yml]
12+
indent_size = 2
13+
14+
[*.yaml]
15+
indent_size = 2
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: "\U0001F9A0 Linter Bug Report"
3+
about: You've found a bug?
4+
title: "[BUG] "
5+
labels: [":microbe: bug"]
6+
---
7+
8+
<!--
9+
Thanks for finding and submitting an issue.
10+
11+
Have you...
12+
-->
13+
14+
- [ ] I'm on the [latest version](https://pypi.org/project/djlint/) of djLint
15+
- [ ] I've searched the [issues](https://github.com/Riverside-Healthcare/djLint/issues)
16+
- [ ] I've read the [docs](https://djlint.com)
17+
18+
## System Info
19+
- OS: e.g. ubuntu 20.04
20+
- Python Version (``python --version``)
21+
- djLint Version (``djlint --version``)
22+
- template language: e.g. mustache
23+
24+
25+
## Issue
26+
<!-- A clear and concise description of what the bug is. -->
27+
28+
## How To Reproduce
29+
<!-- Steps to reproduce the behavior -->
30+
31+
<!-- Thanks! 🤠 -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: "\U0001F682 Feature Request"
3+
about: Do you have an idea for a new feature or improvement?
4+
title: '[FEATURE] '
5+
labels: ":steam_locomotive: feature"
6+
---
7+
8+
<!--
9+
Thanks for wanting to make this better.
10+
11+
Have you...
12+
-->
13+
14+
- [ ] I've searched the [issues](https://github.com/christopherpickering/flask-session2/issues)
15+
16+
## Feature Request
17+
18+
<!-- Thanks! 🤠 -->

.github/workflows/lint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: lint
2+
on: [push, pull_request]
3+
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
11+
- name: run lint
12+
run: |
13+
pip install tox poetry tox-poetry
14+
tox -e lint

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
persist-credentials: false
17+
18+
- name: Setup Poetry
19+
uses: snok/install-poetry@v1
20+
21+
- name: Semantic Release
22+
uses: cycjimmy/semantic-release-action@v3
23+
24+
id: semantic
25+
with:
26+
semantic_version: 18
27+
extra_plugins: |
28+
@semantic-release/changelog@6
29+
@semantic-release/exec
30+
@semantic-release/git@10
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
35+
- name: Build and publish package
36+
if: steps.semantic.outputs.new_release_published == 'true'
37+
uses: JRubics/poetry-publish@v1.12
38+
with:
39+
pypi_token: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/test.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
pull_request:
7+
branches:
8+
- 'master'
9+
10+
jobs:
11+
test:
12+
name: python ${{ matrix.python-version }} on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
python-version: [3.7, 3.8, 3.9, '3.10']
19+
fail-fast: true
20+
21+
steps:
22+
- name: checkout
23+
uses: actions/checkout@v3
24+
- name: setup python ${{ matrix.python-version }} on ${{ matrix.os }}
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: install deps
29+
run: python -m pip install tox poetry tox-poetry
30+
- name: test
31+
run: tox -e test
32+
# - name: upload cov
33+
# uses: codecov/codecov-action@v3
34+
# with:
35+
# files: ./coverage.xml
36+
# fail_ci_if_error: true
37+
# verbose: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.python-version
2+
node_modules/
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]

.releaserc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/changelog",
7+
"@semantic-release/npm",
8+
["@semantic-release/exec", {
9+
"prepareCmd" : "poetry version ${nextRelease.version}"
10+
}],
11+
["@semantic-release/git", {
12+
"assets": ["package.json", "pyproject.toml"]
13+
}],
14+
"@semantic-release/github"
15+
]
16+
}

0 commit comments

Comments
 (0)