Skip to content

Commit d15da58

Browse files
Merge pull request #3 from praisetompane-programming-languages/docs_clean_up
docs: clean up docs and add spellcheck
2 parents 9c67836 + 379920b commit d15da58

File tree

18 files changed

+186
-177
lines changed

18 files changed

+186
-177
lines changed

.github/workflows/python.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: python
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Clone Repository
14+
uses: actions/checkout@v4
15+
16+
- name: Spell Check
17+
uses: rojopolis/spellcheck-github-actions@0.45.0
18+
with:
19+
output_file: spellcheck-output.txt
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# acronyms
2+
CRLF
3+
LF
4+
DLR
5+
DETENT
6+
DEDENT
7+
REPL
8+
BNF
9+
UTF
10+
11+
12+
# authors
13+
Rossum
14+
15+
16+
# domain specific
17+
radix
18+
bytecode
19+
whitespace
20+
formfeeds
21+
formfeed
22+
encodings
23+
codecs
24+
namespace
25+
pycache
26+
IndentationError
27+
TabError
28+
SyntaxError
29+
datamodel
30+
coroutines
31+
lexemes
32+
lexically
33+
NFKC
34+
classname
35+
dunder
36+
bitwise
37+
executionmodel
38+
39+
# python keywords
40+
pprint
41+
stdtypes
42+
builtins
43+
str
44+
eval
45+
repr
46+
elif
47+
nonlocal
48+
async
49+
formatspec
50+
sys
51+
iterable
52+
init
53+
54+
55+
# technology:
56+
JVM
57+
pyspelling
58+
pytest
59+
svg
60+
yaml
61+
numpy
62+
distutils
63+
ensurepip
64+
setuptools
65+
venv
66+
pipenv
67+
68+
69+
# institutions:
70+
pypa
71+
pypi
72+
hackerrank
73+
roadmap
74+
75+
76+
# urls:
77+
src
78+
txt
79+
py
80+
devguide
81+
edu
82+
modindex
83+
img
84+
ccec
85+
eb
86+
Aq
87+
Bstatus
88+
Pze
89+
ocw
90+
piNY
91+
psf
92+
tzYhv
93+
https
94+
95+
96+
# pythons implementations:
97+
CPython
98+
IronPython
99+
jython
100+
pypy
101+
pythonnet

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
1+
FROM python:3.11
22

33
WORKDIR /python
44

55
COPY . .
66

7-
RUN pipenv install
7+
RUN apt-get update \
8+
&& apt-get install aspell -y
9+
10+
RUN python -m pip install -r requirements.txt
11+
12+
RUN adduser -u 5678 --disabled-password --gecos "" python && chown -R python /python
13+
USER python

Pipfile

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

Pipfile.lock

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

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
# Python
22

3-
**objective**: an in-depth study of Python, its implementation and ecosystem.
4-
3+
**objective**:
4+
- An in-depth study of Python's implementation and ecosystem.
5+
- This focuses on [CPython](https://github.com/python/cpython).
6+
57
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
68

79
## Language Details:
810
- [language reference](https://docs.python.org/3.11/reference/index.html#reference*index)
911
- [base modules index](https://docs.python.org/3/py-modindex.html)
1012
- [standard library reference](https://docs.python.org/3.11/library/index.html)
1113
- [packaging and distribution](https://packaging.python.org/en/latest/)
14+
- [python packaging authority](https://www.pypa.io/en/latest/)
15+
- [glossary](https://packaging.python.org/en/latest/glossary/)
1216
- tools:
1317
- [pip](https://pypi.org/project/pip/)
1418
- [pipenv](https://pipenv.pypa.io/en/latest/)
1519
- structuring projects:
1620
- [package index](https://pypi.org)
1721
- [extending and embedding](https://docs.python.org/3.11/extending/index.html)
1822
- [developer contribution guide](https://devguide.python.org/)
19-
- [compiler/interpreter](https://github.com/python/cpython)
23+
- compiler/interpreter:
24+
- [cpython implementation](https://github.com/python/cpython)
25+
- [Bennett, J. 2019. See CPython run: Getting to know your Python interpreter. North Bay Python](https://www.youtube.com/watch?v=tzYhv61piNY)
2026
- memory model:
2127
- [computational complexity cost model](https://ocw.mit.edu/courses/6-006-introduction-to-algorithms-fall-2011/pages/readings/python-cost-model/)
2228
- history:
@@ -32,6 +38,11 @@
3238
- [roadmap](https://roadmap.sh/python)
3339
- [practice problems](https://www.hackerrank.com/domains/python?filters%5Bstatus%5D%5B%5D=unsolved&badge_type=python)
3440

41+
## Spell Check:
42+
43+
```shell
44+
pyspelling -c spellcheck.yaml
45+
```
3546

3647
# References:
3748

dictionary.dic

2.92 KB
Binary file not shown.

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-i https://pypi.org/simple
2+
numpy==2.2.3; python_version >= '3.10'
3+
pyspelling==2.10

setup.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
echo "adding asdf python plugin"
1+
echo "Adding asdf python plugin"
22
asdf plugin add python
3-
echo "done"
3+
echo "Done"
44

55
ostype="$(uname -s)"
66
if [ "$ostype" = "Linux" ]; then
7-
echo "install openssl dependecy"
7+
echo "install openssl dependency"
88
sudo apt install libedit-dev
9-
echo "done"
9+
echo "Done"
1010
fi
1111

12-
echo "installing python"
12+
echo "Installing python"
1313
asdf install python latest
14-
echo "done"
14+
echo "Done"
1515

16-
echo "set latest version to system wide version"
16+
echo "Set latest version to system wide version"
1717
asdf global python latest
18-
echo "done"
18+
echo "Done"
1919

20-
echo "installing pipenv"
20+
echo "Installing pipenv"
2121
brew install pipenv
22-
echo "done"
22+
echo "Done"
2323

2424
echo "installing system level Black in python"
2525
pip3 install black
26-
echo "done"
26+
echo "Done"

spellcheck.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
matrix:
2+
- name: All Files
3+
aspell:
4+
lang: en
5+
ignore-case: false
6+
dictionary:
7+
wordlists:
8+
- .spellcheck_exceptions_dictionary.txt
9+
encoding: utf-8
10+
sources:
11+
- "**/*.md"
12+
- "**/*.tex"
13+
- "**/*.txt"
14+
default_encoding: utf-8

0 commit comments

Comments
 (0)