Skip to content

Commit 14886d8

Browse files
committed
chore: py gitignore for venv and other parts and adding simple formatter via pre-commi config
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
1 parent c727256 commit 14886d8

File tree

8 files changed

+193
-13
lines changed

8 files changed

+193
-13
lines changed

.github/workflows/pdf.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ jobs:
2222
with:
2323
name: lesson-plan.pdf
2424
path: ./site/lesson-plan.pdf
25-

.gitignore

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

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
ci:
3+
autofix_prs: true
4+
autoupdate_schedule: weekly
5+
autofix_commit_msg: "fix(pre_commit): 🎨 auto format pre-commit hooks"
6+
autoupdate_commit_msg: "chore(pre_commit): ⬆ pre_commit autoupdate"
7+
8+
repos:
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v4.6.0
11+
hooks:
12+
- id: trailing-whitespace
13+
- id: check-yaml
14+
exclude: mkdocs.yml
15+
- id: check-executables-have-shebangs
16+
- id: check-toml
17+
- id: check-case-conflict
18+
- id: check-added-large-files
19+
- id: detect-private-key
20+
- id: pretty-format-json
21+
args: ['--autofix', '--no-sort-keys', '--indent=4']
22+
- id: end-of-file-fixer
23+
- id: mixed-line-ending

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The current build of the PDF is avaliable in GitHub Actions. Visit https://gith
1616
5. You can now build the PDF document locally by running `ENABLE_PDF_EXPORT=1 pipenv run mkdocs build`
1717

1818
## Editing the sources
19-
Place new documents in the `/docs` directory using markdown files.
19+
Place new documents in the `/docs` directory using markdown files.
2020
You can see your changes by running `ENABLE_PDF_EXPORT=1 pipenv run`.
2121
Once you're ready to propose your changes, make a PR to this repo. [Material for mkdocs](https://squidfunk.github.io/mkdocs-material/), [mkdocs](https://www.mkdocs.org/user-guide/writing-your-docs/) and [mkdocs with PDF](https://pypi.org/project/mkdocs-with-pdf/) documentation could also be useful.
2222

docs/benefits-of-open-source-software.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* What the Internet Bug Bounty Teaches About Open-Source Software Security (<https://securityintelligence.com/articles/open-source-software-security-bug-bounty/>)
2424
* Choosing a License (<https://opensource.guide/starting-a-project/#choosing-a-license>)
2525
* Why do people open source their work? (<https://opensource.guide/starting-a-project/#why-do-people-open-source-their-work>)
26-
* How to Join an Open Source Community - <https://youtu.be/XyHSPjU2h10>
27-
* Free Software or Open Source Software? Is There A Difference? - <https://youtu.be/Qyb5KZC7d6s>
26+
* How to Join an Open Source Community - <https://youtu.be/XyHSPjU2h10>
27+
* Free Software or Open Source Software? Is There A Difference? - <https://youtu.be/Qyb5KZC7d6s>
2828

2929
## Extra Credit
3030
* Explain what <https://smile.amazon.com/> is about in less than 250 words.
@@ -40,15 +40,13 @@
4040

4141
## Evaluations
4242
* Does the student understand the concepts and objectives listed above?
43-
* Can the student communicate two benefits of why companies and developers choose free and open-source software?
43+
* Can the student communicate two benefits of why companies and developers choose free and open-source software?
4444
* Can the student explain the advantages for the user of free and open-source software?
4545
* What are the benefits of open source standards and software to society?
4646
* Did the student contribute to an open-source project during this lesson.
4747

4848
## Notes:
49-
* Advance levels can view and discuss the following resources: EU Study about Open Source Impact - <https://digital-strategy.ec.europa.eu/en/library/study-about-impact-open-source-software-and-hardware-technological-independence-competitiveness-and>
49+
* Advance levels can view and discuss the following resources: EU Study about Open Source Impact - <https://digital-strategy.ec.europa.eu/en/library/study-about-impact-open-source-software-and-hardware-technological-independence-competitiveness-and>
5050
* Presentation about results - <https://www.youtube.com/watch?v=ujp2dsfyOuQ>
5151
* The Linux Foundation panel about it - https://www.youtube.com/watch?v=gLLCYQSkcT4&list=PLbzoR-pLrL6q8QMGJ4dFnqejkHDm76kJV&index=193
5252
* Digital infrastructure is more than just broadband: What the US can learn from Europe’s open source technology policy study - <https://www.brookings.edu/research/digital-infrastructure-is-more-than-just-broadband-what-the-u-s-can-learn-from-europes-open-source-technology-policy-study/>
53-
54-

docs/installing-opensuse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* “openSUSE: A Beautiful Linux Distro” video at <https://youtu.be/yf3b6b1iHIA>
2222
* “openSUSE Leap 15.2 | Review and Final Thoughts” video at <https://youtu.be/wP4IvrsdZZo>
2323
* Installable images at <https://get.opensuse.org/>
24-
* Rolling vs. Point Release Linux Distros – Which is better? <https://www.fosslinux.com/2805/linux-rolling-release-vs-point-release-and-which-is-better.htm>
24+
* Rolling vs. Point Release Linux Distros – Which is better? <https://www.fosslinux.com/2805/linux-rolling-release-vs-point-release-and-which-is-better.htm>
2525
* Image1 - <https://en.wikipedia.org/wiki/Software_release_life_cycle#/media/File:Software_dev2.svg>
2626
* Burning ISO images with [Ventoy](https://www.ventoy.net/en/doc_start.html) and [Etcher](https://www.balena.io/etcher/)
2727

@@ -32,12 +32,12 @@
3232
* Watch [openSUSE: A Beautiful Linux Distro](https://youtu.be/yf3b6b1iHIA) as a class the to understand how to download and install openSUSE. Discuss the differences between Tumbleweed and Leap.
3333
* Watch the first 4 minutes of [openSUSE Leap 15.2 | Review and Final Thoughts](https://youtu.be/wP4IvrsdZZo) and discuss the reasons for selecting different types of software options.
3434
* Download an image of openSUSE from; https://get.opensuse.org/
35-
* Use a USB/microUSB and application/commands of your choice to write an image
35+
* Use a USB/microUSB and application/commands of your choice to write an image
3636
* Have students read and discuss [Rolling vs. Point Release Linux Distros – Which is better?](https://www.fosslinux.com/2805/linux-rolling-release-vs-point-release-and-which-is-better.htm)
3737

3838
## Evaluations
3939
* Does the student understand the concepts and objectives listed above?
40-
* Did the student download and install openSUSE?
40+
* Did the student download and install openSUSE?
4141
* Can the student explain the advantages for the user of free and open-source software?
4242
* What are the benefits of open source standards and software to society?
4343
* Did the student contribute to an open-source project during this lesson?

mkdocs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ plugins:
2424
output_path: ./lesson-plan.pdf
2525
toc_title: Contents
2626
back_cover: false
27-

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ mkdocs-material-extensions
22
mkdocs-material
33
mkdocs-with-pdf
44
mkdocs
5-

0 commit comments

Comments
 (0)