Skip to content

Commit 2d2f05d

Browse files
committed
Rewrite in Go: First release
1 parent d5c2bf1 commit 2d2f05d

37 files changed

Lines changed: 2045 additions & 1082 deletions

.gitignore

Lines changed: 16 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,21 @@
1-
### Python ###
2-
# Byte-compiled / optimized / DLL files
3-
__pycache__/
4-
*.py[cod]
5-
*$py.class
6-
7-
# C extensions
1+
### Go ###
2+
# Binaries for programs and plugins
3+
*.exe
4+
*.exe~
5+
*.dll
86
*.so
7+
*.dylib
8+
bin/
99

10-
# Distribution / packaging
11-
.Python
12-
build/
13-
develop-eggs/
14-
dist/
15-
downloads/
16-
eggs/
17-
.eggs/
18-
lib/
19-
lib64/
20-
parts/
21-
sdist/
22-
var/
23-
wheels/
24-
pip-wheel-metadata/
25-
share/python-wheels/
26-
*.egg-info/
27-
.installed.cfg
28-
*.egg
29-
MANIFEST
30-
31-
32-
# PyInstaller
33-
# Usually these files are written by a python script from a template
34-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
35-
*.manifest
36-
*.spec
37-
38-
# Installer logs
39-
pip-log.txt
40-
pip-delete-this-directory.txt
41-
42-
# Unit test / coverage reports
43-
htmlcov/
44-
.tox/
45-
.nox/
46-
.coverage
47-
.coverage.*
48-
.cache
49-
nosetests.xml
50-
coverage.xml
51-
*.cover
52-
*.py,cover
53-
.hypothesis/
54-
.pytest_cache/
55-
pytestdebug.log
56-
57-
# Translations
58-
*.mo
59-
*.pot
60-
61-
# Django stuff:
62-
*.log
63-
local_settings.py
64-
db.sqlite3
65-
db.sqlite3-journal
66-
67-
# Flask stuff:
68-
instance/
69-
.webassets-cache
70-
71-
# Scrapy stuff:
72-
.scrapy
73-
74-
# Sphinx documentation
75-
docs/_build/
76-
doc/_build/
77-
78-
# PyBuilder
79-
target/
80-
81-
# Jupyter Notebook
82-
.ipynb_checkpoints
83-
84-
# IPython
85-
profile_default/
86-
ipython_config.py
87-
88-
# pyenv
89-
.python-version
90-
91-
# pipenv
92-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95-
# install all needed dependencies.
96-
#Pipfile.lock
97-
98-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
99-
__pypackages__/
100-
101-
# Celery stuff
102-
celerybeat-schedule
103-
celerybeat.pid
104-
105-
# SageMath parsed files
106-
*.sage.py
107-
108-
# Environments
109-
.env
110-
.venv
111-
env/
112-
venv/
113-
ENV/
114-
env.bak/
115-
venv.bak/
116-
pythonenv*
117-
.vim
118-
.vscode
119-
120-
# Spyder project settings
121-
.spyderproject
122-
.spyproject
123-
124-
# Rope project settings
125-
.ropeproject
126-
127-
# mkdocs documentation
128-
/site
129-
130-
# mypy
131-
.mypy_cache/
132-
.dmypy.json
133-
dmypy.json
10+
# Test binary, built with `go test -c`
11+
*.test
13412

135-
# Pyre type checker
136-
.pyre/
13+
# Output of the go coverage tool, specifically when used with LiteIDE
14+
*.out
13715

138-
# pytype static type analyzer
139-
.pytype/
16+
# Dependency directories (remove the comment below to include it)
17+
# vendor/
14018

141-
# profiling data
142-
.prof
19+
### Go Patch ###
20+
/vendor/
21+
/Godeps/

.pre-commit-config.yaml

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

CONTRIBUTING.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ Thank you for considering contributing to Air Quality CLI!
66

77
Include the following in your patch:
88

9-
- Use [Black](https://github.com/psf/black) to format your code. This and other tools will run automatically if you install [pre-commit](https://github.com/pre-commit/pre-commit-hooks) using the instructions below.
10-
9+
- use `go fmt` to format your code to remove/reduce any inconsistencies.
1110
- Update README.md about new changes if it affects the sub-commands.
1211

13-
- Use [mypy](https://github.com/python/mypy) to check static typing on the codebase.
1412

1513
### First time setup
1614

@@ -20,25 +18,10 @@ Include the following in your patch:
2018
git clone https://github.com/yankeexe/air-quality-cli
2119
```
2220

23-
- Create a virtualenv
24-
25-
```bash
26-
python3 -m venv venv
27-
28-
# activate virtualenv
29-
source venv/bin/activate
30-
```
31-
32-
### Install Air Quality CLI in editable mode with development dependencies.
33-
34-
```bash
35-
make setup
36-
```
37-
38-
### Install the pre-commit hooks.
21+
- Install modules
3922

4023
```bash
41-
pre-commit install
24+
go mod tidy
4225
```
4326

4427
Start coding 🚀

0 commit comments

Comments
 (0)