Skip to content

Commit 7fb5a17

Browse files
committed
update gitignore
1 parent ff8ef72 commit 7fb5a17

File tree

4 files changed

+237
-103
lines changed

4 files changed

+237
-103
lines changed

.gitignore

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,212 @@ test_images
2121
.coverage
2222
output
2323
output
24+
# Byte-compiled / optimized / DLL files
25+
__pycache__/
26+
*.py[codz]
27+
*$py.class
28+
29+
# C extensions
30+
*.so
31+
32+
# Distribution / packaging
33+
.Python
34+
build/
35+
develop-eggs/
36+
dist/
37+
downloads/
38+
eggs/
39+
.eggs/
40+
lib/
41+
lib64/
42+
parts/
43+
sdist/
44+
var/
45+
wheels/
46+
share/python-wheels/
47+
*.egg-info/
48+
.installed.cfg
49+
*.egg
50+
MANIFEST
51+
52+
# PyInstaller
53+
# Usually these files are written by a python script from a template
54+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
55+
*.manifest
56+
*.spec
57+
58+
# Installer logs
59+
pip-log.txt
60+
pip-delete-this-directory.txt
61+
62+
# Unit test / coverage reports
63+
htmlcov/
64+
.tox/
65+
.nox/
66+
.coverage
67+
.coverage.*
68+
.cache
69+
nosetests.xml
70+
coverage.xml
71+
*.cover
72+
*.py.cover
73+
.hypothesis/
74+
.pytest_cache/
75+
cover/
76+
77+
# Translations
78+
*.mo
79+
*.pot
80+
81+
# Django stuff:
82+
*.log
83+
local_settings.py
84+
db.sqlite3
85+
db.sqlite3-journal
86+
87+
# Flask stuff:
88+
instance/
89+
.webassets-cache
90+
91+
# Scrapy stuff:
92+
.scrapy
93+
94+
# Sphinx documentation
95+
docs/_build/
96+
97+
# PyBuilder
98+
.pybuilder/
99+
target/
100+
101+
# Jupyter Notebook
102+
.ipynb_checkpoints
103+
104+
# IPython
105+
profile_default/
106+
ipython_config.py
107+
108+
# pyenv
109+
# For a library or package, you might want to ignore these files since the code is
110+
# intended to run in multiple environments; otherwise, check them in:
111+
# .python-version
112+
113+
# pipenv
114+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
115+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
116+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
117+
# install all needed dependencies.
118+
#Pipfile.lock
119+
120+
# UV
121+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
122+
# This is especially recommended for binary packages to ensure reproducibility, and is more
123+
# commonly ignored for libraries.
124+
#uv.lock
125+
126+
# poetry
127+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
128+
# This is especially recommended for binary packages to ensure reproducibility, and is more
129+
# commonly ignored for libraries.
130+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
131+
#poetry.lock
132+
#poetry.toml
133+
134+
# pdm
135+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
136+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
137+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
138+
#pdm.lock
139+
#pdm.toml
140+
.pdm-python
141+
.pdm-build/
142+
143+
# pixi
144+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
145+
#pixi.lock
146+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
147+
# in the .venv directory. It is recommended not to include this directory in version control.
148+
.pixi
149+
150+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
151+
__pypackages__/
152+
153+
# Celery stuff
154+
celerybeat-schedule
155+
celerybeat.pid
156+
157+
# SageMath parsed files
158+
*.sage.py
159+
160+
# Environments
161+
.env
162+
.envrc
163+
.venv
164+
env/
165+
venv/
166+
ENV/
167+
env.bak/
168+
venv.bak/
169+
170+
# Spyder project settings
171+
.spyderproject
172+
.spyproject
173+
174+
# Rope project settings
175+
.ropeproject
176+
177+
# mkdocs documentation
178+
/site
179+
180+
# mypy
181+
.mypy_cache/
182+
.dmypy.json
183+
dmypy.json
184+
185+
# Pyre type checker
186+
.pyre/
187+
188+
# pytype static type analyzer
189+
.pytype/
190+
191+
# Cython debug symbols
192+
cython_debug/
193+
194+
# PyCharm
195+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
196+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
197+
# and can be added to the global gitignore or merged into this file. For a more nuclear
198+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
199+
#.idea/
200+
201+
# Abstra
202+
# Abstra is an AI-powered process automation framework.
203+
# Ignore directories containing user credentials, local state, and settings.
204+
# Learn more at https://abstra.io/docs
205+
.abstra/
206+
207+
# Visual Studio Code
208+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
209+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
210+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
211+
# you could uncomment the following to ignore the entire vscode folder
212+
# .vscode/
213+
214+
# Ruff stuff:
215+
.ruff_cache/
216+
217+
# PyPI configuration file
218+
.pypirc
219+
220+
# Cursor
221+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
222+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
223+
# refer to https://docs.cursor.com/context/ignore-files
224+
.cursorignore
225+
.cursorindexingignore
226+
227+
# Marimo
228+
marimo/_static/
229+
marimo/_lsp/
230+
__marimo__/
231+
.venv
232+
output

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "blackpythondevs-site"
33
version = "0.1.0"
44
description = "Black Python Devs community website"
5-
dependencies = ["render-engine[cli]==2025.6.1a1", "pyyaml"]
5+
dependencies = ["render-engine[cli]==2025.6.1b2", "pyyaml"]
66

77
[project.optional-dependencies]
88
dev = [

tests/test.py

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import time
2+
import socket
13
import pathlib
24
from typing import Generator
35

@@ -17,20 +19,33 @@ def page_url(xprocess, url_port):
1719
url, port = url_port
1820

1921
class Starter(ProcessStarter):
20-
timeout = 40
2122
# Start the process
22-
args = [
23-
"bundle",
24-
"exec",
25-
"jekyll",
26-
"serve",
27-
"--source",
28-
pathlib.Path().cwd().absolute(),
29-
"--port",
30-
port,
31-
]
23+
args = ["render-engine", "serve"]
3224
terminate_on_interrupt = True
33-
pattern = "Server running... press ctrl-c to stop."
25+
26+
def startup_check(self):
27+
# Polling mechanism for a more robust startup check
28+
max_attempts = 5
29+
attempt_interval = 1 # seconds
30+
31+
for _ in range(max_attempts):
32+
try:
33+
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
34+
sock.connect(("localhost", port))
35+
sock.sendall(b"ping\n")
36+
response = sock.recv(
37+
1024
38+
) # Receive enough bytes to get the full response
39+
if response == b"pong!": # Compare to bytes
40+
return True
41+
except (ConnectionRefusedError, OSError):
42+
# Connection not yet ready, or process not fully up
43+
pass
44+
finally:
45+
sock.close() # Ensure socket is closed
46+
47+
time.sleep(attempt_interval)
48+
return False # Failed to connect after max_attempts
3449

3550
xprocess.ensure("page_url", Starter)
3651

tests/tests_conferences.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)