Spaces:
Sleeping
Sleeping
atodorov284
commited on
Commit
·
5cdeee9
1
Parent(s):
e15ea0b
CCDS defaults
Browse files- .gitignore +172 -0
- LICENSE +10 -0
- Makefile +75 -0
- air-quality-forecast/__init__.py +0 -0
- docs/.gitkeep +0 -0
- models/.gitkeep +0 -0
- notebooks/.gitkeep +0 -0
- pyproject.toml +32 -0
- references/.gitkeep +0 -0
- reports/.gitkeep +0 -0
- reports/figures/.gitkeep +0 -0
- requirements.txt +6 -0
- setup.cfg +4 -0
.gitignore
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Data
|
| 2 |
+
/data/
|
| 3 |
+
|
| 4 |
+
# Mac OS-specific storage files
|
| 5 |
+
.DS_Store
|
| 6 |
+
|
| 7 |
+
# vim
|
| 8 |
+
*.swp
|
| 9 |
+
*.swo
|
| 10 |
+
|
| 11 |
+
## https://github.com/github/gitignore/blob/4488915eec0b3a45b5c63ead28f286819c0917de/Python.gitignore
|
| 12 |
+
|
| 13 |
+
# Byte-compiled / optimized / DLL files
|
| 14 |
+
__pycache__/
|
| 15 |
+
*.py[cod]
|
| 16 |
+
*$py.class
|
| 17 |
+
|
| 18 |
+
# C extensions
|
| 19 |
+
*.so
|
| 20 |
+
|
| 21 |
+
# Distribution / packaging
|
| 22 |
+
.Python
|
| 23 |
+
build/
|
| 24 |
+
develop-eggs/
|
| 25 |
+
dist/
|
| 26 |
+
downloads/
|
| 27 |
+
eggs/
|
| 28 |
+
.eggs/
|
| 29 |
+
lib/
|
| 30 |
+
lib64/
|
| 31 |
+
parts/
|
| 32 |
+
sdist/
|
| 33 |
+
var/
|
| 34 |
+
wheels/
|
| 35 |
+
share/python-wheels/
|
| 36 |
+
*.egg-info/
|
| 37 |
+
.installed.cfg
|
| 38 |
+
*.egg
|
| 39 |
+
MANIFEST
|
| 40 |
+
|
| 41 |
+
# PyInstaller
|
| 42 |
+
# Usually these files are written by a python script from a template
|
| 43 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
| 44 |
+
*.manifest
|
| 45 |
+
*.spec
|
| 46 |
+
|
| 47 |
+
# Installer logs
|
| 48 |
+
pip-log.txt
|
| 49 |
+
pip-delete-this-directory.txt
|
| 50 |
+
|
| 51 |
+
# Unit test / coverage reports
|
| 52 |
+
htmlcov/
|
| 53 |
+
.tox/
|
| 54 |
+
.nox/
|
| 55 |
+
.coverage
|
| 56 |
+
.coverage.*
|
| 57 |
+
.cache
|
| 58 |
+
nosetests.xml
|
| 59 |
+
coverage.xml
|
| 60 |
+
*.cover
|
| 61 |
+
*.py,cover
|
| 62 |
+
.hypothesis/
|
| 63 |
+
.pytest_cache/
|
| 64 |
+
cover/
|
| 65 |
+
|
| 66 |
+
# Translations
|
| 67 |
+
*.mo
|
| 68 |
+
*.pot
|
| 69 |
+
|
| 70 |
+
# Django stuff:
|
| 71 |
+
*.log
|
| 72 |
+
local_settings.py
|
| 73 |
+
db.sqlite3
|
| 74 |
+
db.sqlite3-journal
|
| 75 |
+
|
| 76 |
+
# Flask stuff:
|
| 77 |
+
instance/
|
| 78 |
+
.webassets-cache
|
| 79 |
+
|
| 80 |
+
# Scrapy stuff:
|
| 81 |
+
.scrapy
|
| 82 |
+
|
| 83 |
+
# MkDocs documentation
|
| 84 |
+
docs/site/
|
| 85 |
+
|
| 86 |
+
# PyBuilder
|
| 87 |
+
.pybuilder/
|
| 88 |
+
target/
|
| 89 |
+
|
| 90 |
+
# Jupyter Notebook
|
| 91 |
+
.ipynb_checkpoints
|
| 92 |
+
|
| 93 |
+
# IPython
|
| 94 |
+
profile_default/
|
| 95 |
+
ipython_config.py
|
| 96 |
+
|
| 97 |
+
# pyenv
|
| 98 |
+
# For a library or package, you might want to ignore these files since the code is
|
| 99 |
+
# intended to run in multiple environments; otherwise, check them in:
|
| 100 |
+
# .python-version
|
| 101 |
+
|
| 102 |
+
# pipenv
|
| 103 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
| 104 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
| 105 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
| 106 |
+
# install all needed dependencies.
|
| 107 |
+
#Pipfile.lock
|
| 108 |
+
|
| 109 |
+
# poetry
|
| 110 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
| 111 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
| 112 |
+
# commonly ignored for libraries.
|
| 113 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
| 114 |
+
#poetry.lock
|
| 115 |
+
|
| 116 |
+
# pdm
|
| 117 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
| 118 |
+
#pdm.lock
|
| 119 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
| 120 |
+
# in version control.
|
| 121 |
+
# https://pdm.fming.dev/#use-with-ide
|
| 122 |
+
.pdm.toml
|
| 123 |
+
|
| 124 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
| 125 |
+
__pypackages__/
|
| 126 |
+
|
| 127 |
+
# Celery stuff
|
| 128 |
+
celerybeat-schedule
|
| 129 |
+
celerybeat.pid
|
| 130 |
+
|
| 131 |
+
# SageMath parsed files
|
| 132 |
+
*.sage.py
|
| 133 |
+
|
| 134 |
+
# Environments
|
| 135 |
+
.env
|
| 136 |
+
.venv
|
| 137 |
+
env/
|
| 138 |
+
venv/
|
| 139 |
+
ENV/
|
| 140 |
+
env.bak/
|
| 141 |
+
venv.bak/
|
| 142 |
+
|
| 143 |
+
# Spyder project settings
|
| 144 |
+
.spyderproject
|
| 145 |
+
.spyproject
|
| 146 |
+
|
| 147 |
+
# Rope project settings
|
| 148 |
+
.ropeproject
|
| 149 |
+
|
| 150 |
+
# mkdocs documentation
|
| 151 |
+
/site
|
| 152 |
+
|
| 153 |
+
# mypy
|
| 154 |
+
.mypy_cache/
|
| 155 |
+
.dmypy.json
|
| 156 |
+
dmypy.json
|
| 157 |
+
|
| 158 |
+
# Pyre type checker
|
| 159 |
+
.pyre/
|
| 160 |
+
|
| 161 |
+
# pytype static type analyzer
|
| 162 |
+
.pytype/
|
| 163 |
+
|
| 164 |
+
# Cython debug symbols
|
| 165 |
+
cython_debug/
|
| 166 |
+
|
| 167 |
+
# PyCharm
|
| 168 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
| 169 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
| 170 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
| 171 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
| 172 |
+
#.idea/
|
LICENSE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
The MIT License (MIT)
|
| 3 |
+
Copyright (c) 2024, Group 20
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 10 |
+
|
Makefile
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#################################################################################
|
| 2 |
+
# GLOBALS #
|
| 3 |
+
#################################################################################
|
| 4 |
+
|
| 5 |
+
PROJECT_NAME = air-quality-forecast
|
| 6 |
+
PYTHON_VERSION = 3.12
|
| 7 |
+
PYTHON_INTERPRETER = python
|
| 8 |
+
|
| 9 |
+
#################################################################################
|
| 10 |
+
# COMMANDS #
|
| 11 |
+
#################################################################################
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
## Install Python Dependencies
|
| 15 |
+
.PHONY: requirements
|
| 16 |
+
requirements:
|
| 17 |
+
$(PYTHON_INTERPRETER) -m pip install -U pip
|
| 18 |
+
$(PYTHON_INTERPRETER) -m pip install -r requirements.txt
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
## Delete all compiled Python files
|
| 24 |
+
.PHONY: clean
|
| 25 |
+
clean:
|
| 26 |
+
find . -type f -name "*.py[co]" -delete
|
| 27 |
+
find . -type d -name "__pycache__" -delete
|
| 28 |
+
|
| 29 |
+
## Lint using flake8 and black (use `make format` to do formatting)
|
| 30 |
+
.PHONY: lint
|
| 31 |
+
lint:
|
| 32 |
+
flake8 air-quality-forecast
|
| 33 |
+
isort --check --diff --profile black air-quality-forecast
|
| 34 |
+
black --check --config pyproject.toml air-quality-forecast
|
| 35 |
+
|
| 36 |
+
## Format source code with black
|
| 37 |
+
.PHONY: format
|
| 38 |
+
format:
|
| 39 |
+
black --config pyproject.toml air-quality-forecast
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
## Set up python interpreter environment
|
| 45 |
+
.PHONY: create_environment
|
| 46 |
+
create_environment:
|
| 47 |
+
@bash -c "if [ ! -z `which virtualenvwrapper.sh` ]; then source `which virtualenvwrapper.sh`; mkvirtualenv $(PROJECT_NAME) --python=$(PYTHON_INTERPRETER); else mkvirtualenv.bat $(PROJECT_NAME) --python=$(PYTHON_INTERPRETER); fi"
|
| 48 |
+
@echo ">>> New virtualenv created. Activate with:\nworkon $(PROJECT_NAME)"
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
#################################################################################
|
| 54 |
+
# PROJECT RULES #
|
| 55 |
+
#################################################################################
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
#################################################################################
|
| 60 |
+
# Self Documenting Commands #
|
| 61 |
+
#################################################################################
|
| 62 |
+
|
| 63 |
+
.DEFAULT_GOAL := help
|
| 64 |
+
|
| 65 |
+
define PRINT_HELP_PYSCRIPT
|
| 66 |
+
import re, sys; \
|
| 67 |
+
lines = '\n'.join([line for line in sys.stdin]); \
|
| 68 |
+
matches = re.findall(r'\n## (.*)\n[\s\S]+?\n([a-zA-Z_-]+):', lines); \
|
| 69 |
+
print('Available rules:\n'); \
|
| 70 |
+
print('\n'.join(['{:25}{}'.format(*reversed(match)) for match in matches]))
|
| 71 |
+
endef
|
| 72 |
+
export PRINT_HELP_PYSCRIPT
|
| 73 |
+
|
| 74 |
+
help:
|
| 75 |
+
@$(PYTHON_INTERPRETER) -c "${PRINT_HELP_PYSCRIPT}" < $(MAKEFILE_LIST)
|
air-quality-forecast/__init__.py
ADDED
|
File without changes
|
docs/.gitkeep
ADDED
|
File without changes
|
models/.gitkeep
ADDED
|
File without changes
|
notebooks/.gitkeep
ADDED
|
File without changes
|
pyproject.toml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["flit_core >=3.2,<4"]
|
| 3 |
+
build-backend = "flit_core.buildapi"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "air-quality-forecast"
|
| 7 |
+
version = "0.0.1"
|
| 8 |
+
description = "A short description of the project."
|
| 9 |
+
authors = [
|
| 10 |
+
{ name = "Group 20" },
|
| 11 |
+
]
|
| 12 |
+
license = { file = "LICENSE" }
|
| 13 |
+
readme = "README.md"
|
| 14 |
+
classifiers = [
|
| 15 |
+
"Programming Language :: Python :: 3",
|
| 16 |
+
"License :: OSI Approved :: MIT License"
|
| 17 |
+
]
|
| 18 |
+
requires-python = "~=3.12"
|
| 19 |
+
|
| 20 |
+
[tool.black]
|
| 21 |
+
line-length = 99
|
| 22 |
+
include = '\.pyi?$'
|
| 23 |
+
exclude = '''
|
| 24 |
+
/(
|
| 25 |
+
\.git
|
| 26 |
+
| \.venv
|
| 27 |
+
)/
|
| 28 |
+
'''
|
| 29 |
+
|
| 30 |
+
[tool.ruff.lint.isort]
|
| 31 |
+
known_first_party = ["air-quality-forecast"]
|
| 32 |
+
force_sort_within_sections = true
|
references/.gitkeep
ADDED
|
File without changes
|
reports/.gitkeep
ADDED
|
File without changes
|
reports/figures/.gitkeep
ADDED
|
File without changes
|
requirements.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
black
|
| 2 |
+
flake8
|
| 3 |
+
isort
|
| 4 |
+
pip
|
| 5 |
+
python-dotenv
|
| 6 |
+
-e .
|
setup.cfg
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[flake8]
|
| 2 |
+
ignore = E731,E266,E501,C901,W503
|
| 3 |
+
max-line-length = 99
|
| 4 |
+
exclude = .git,notebooks,references,models,data
|