Skip to content

Commit 03bfc32

Browse files
committed
docs: clean up docs and add spellcheck
1 parent 9c67836 commit 03bfc32

File tree

18 files changed

+184
-177
lines changed

18 files changed

+184
-177
lines changed

.github/workflows/python.yaml

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