Skip to content

Commit 29c2bee

Browse files
initial commit
0 parents  commit 29c2bee

File tree

9 files changed

+1445
-0
lines changed

9 files changed

+1445
-0
lines changed

Diff for: .github/workflows/main.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: deploy to pypi
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
jobs:
16+
deploy:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.x
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install poetry
30+
- name: Build
31+
run : |
32+
poetry install
33+
poetry run python build.py
34+
poetry run black .
35+
36+
- name: Build and publish package
37+
uses: JRubics/[email protected]
38+
with:
39+
pypi_token: ${{ secrets.PYPI_API_TOKEN }}

Diff for: .gitignore

+188
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/python,macos
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,macos
4+
5+
### macOS ###
6+
# General
7+
.DS_Store
8+
.AppleDouble
9+
.LSOverride
10+
11+
# Icon must end with two \r
12+
Icon
13+
14+
15+
# Thumbnails
16+
._*
17+
18+
# Files that might appear in the root of a volume
19+
.DocumentRevisions-V100
20+
.fseventsd
21+
.Spotlight-V100
22+
.TemporaryItems
23+
.Trashes
24+
.VolumeIcon.icns
25+
.com.apple.timemachine.donotpresent
26+
27+
# Directories potentially created on remote AFP share
28+
.AppleDB
29+
.AppleDesktop
30+
Network Trash Folder
31+
Temporary Items
32+
.apdisk
33+
34+
### Python ###
35+
# Byte-compiled / optimized / DLL files
36+
__pycache__/
37+
*.py[cod]
38+
*$py.class
39+
40+
# C extensions
41+
*.so
42+
43+
# Distribution / packaging
44+
.Python
45+
build/
46+
develop-eggs/
47+
dist/
48+
downloads/
49+
eggs/
50+
.eggs/
51+
lib/
52+
lib64/
53+
parts/
54+
sdist/
55+
var/
56+
wheels/
57+
share/python-wheels/
58+
*.egg-info/
59+
.installed.cfg
60+
*.egg
61+
MANIFEST
62+
63+
# PyInstaller
64+
# Usually these files are written by a python script from a template
65+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
66+
*.manifest
67+
*.spec
68+
69+
# Installer logs
70+
pip-log.txt
71+
pip-delete-this-directory.txt
72+
73+
# Unit test / coverage reports
74+
htmlcov/
75+
.tox/
76+
.nox/
77+
.coverage
78+
.coverage.*
79+
.cache
80+
nosetests.xml
81+
coverage.xml
82+
*.cover
83+
*.py,cover
84+
.hypothesis/
85+
.pytest_cache/
86+
cover/
87+
88+
# Translations
89+
*.mo
90+
*.pot
91+
92+
# Django stuff:
93+
*.log
94+
local_settings.py
95+
db.sqlite3
96+
db.sqlite3-journal
97+
98+
# Flask stuff:
99+
instance/
100+
.webassets-cache
101+
102+
# Scrapy stuff:
103+
.scrapy
104+
105+
# Sphinx documentation
106+
docs/_build/
107+
108+
# PyBuilder
109+
.pybuilder/
110+
target/
111+
112+
# Jupyter Notebook
113+
.ipynb_checkpoints
114+
115+
# IPython
116+
profile_default/
117+
ipython_config.py
118+
119+
# pyenv
120+
# For a library or package, you might want to ignore these files since the code is
121+
# intended to run in multiple environments; otherwise, check them in:
122+
# .python-version
123+
124+
# pipenv
125+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
126+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
127+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
128+
# install all needed dependencies.
129+
#Pipfile.lock
130+
131+
# poetry
132+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
133+
# This is especially recommended for binary packages to ensure reproducibility, and is more
134+
# commonly ignored for libraries.
135+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
136+
#poetry.lock
137+
138+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
139+
__pypackages__/
140+
141+
# Celery stuff
142+
celerybeat-schedule
143+
celerybeat.pid
144+
145+
# SageMath parsed files
146+
*.sage.py
147+
148+
# Environments
149+
.env
150+
.venv
151+
env/
152+
venv/
153+
ENV/
154+
env.bak/
155+
venv.bak/
156+
157+
# Spyder project settings
158+
.spyderproject
159+
.spyproject
160+
161+
# Rope project settings
162+
.ropeproject
163+
164+
# mkdocs documentation
165+
/site
166+
167+
# mypy
168+
.mypy_cache/
169+
.dmypy.json
170+
dmypy.json
171+
172+
# Pyre type checker
173+
.pyre/
174+
175+
# pytype static type analyzer
176+
.pytype/
177+
178+
# Cython debug symbols
179+
cython_debug/
180+
181+
# PyCharm
182+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
183+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
184+
# and can be added to the global gitignore or merged into this file. For a more nuclear
185+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
186+
#.idea/
187+
188+
# End of https://www.toptal.com/developers/gitignore/api/python,macos

Diff for: HtmlVoidElements/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .html_void_elements import html_void_elements

Diff for: HtmlVoidElements/html_void_elements.py

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"""
2+
List of HTML void tag names.
3+
"""
4+
5+
html_void_elements = [
6+
"area",
7+
"base",
8+
"basefont",
9+
"bgsound",
10+
"br",
11+
"col",
12+
"command",
13+
"embed",
14+
"frame",
15+
"hr",
16+
"image",
17+
"img",
18+
"input",
19+
"isindex",
20+
"keygen",
21+
"link",
22+
"menuitem",
23+
"meta",
24+
"nextid",
25+
"param",
26+
"source",
27+
"track",
28+
"wbr",
29+
]

0 commit comments

Comments
 (0)