-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: repo suggestions and formatting
Signed-off-by: develop-cs <[email protected]>
- Loading branch information
1 parent
e802bca
commit f3b293b
Showing
25 changed files
with
1,461 additions
and
1,359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
blank_issues_enabled: false | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,10 +64,11 @@ data/ | |
|
||
# Environments | ||
.env | ||
.venv | ||
|
||
# Development tools | ||
.vscode | ||
.coverage | ||
|
||
# mkdocs documentation | ||
*/site | ||
*/site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,55 @@ | ||
--- | ||
default_language_version: | ||
python: python3 | ||
python: python3 | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.8.0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: ruff | ||
args: [ --fix ] | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
- id: check-ast | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-json | ||
- id: check-yaml | ||
exclude: ^(docs/) | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
exclude: ^(docs/) | ||
- id: pretty-format-json | ||
args: [--autofix] | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
exclude: ^(docs/) | ||
- id: mixed-line-ending | ||
args: [--fix=lf] | ||
exclude: ^(docs/) | ||
- id: check-added-large-files | ||
args: [--maxkb=500] | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.8.3 | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.13.0 | ||
hooks: | ||
- id: mypy | ||
- id: mypy | ||
args: [--config-file=pyproject.toml] | ||
files: src | ||
additional_dependencies: [types-pytz,types-requests,types-python-dateutil] | ||
- repo: https://github.com/compilerla/conventional-pre-commit | ||
additional_dependencies: [pydantic~=2.0,types-pytz,types-requests,types-python-dateutil] | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.21.2 | ||
hooks: | ||
- id: gitleaks | ||
- repo: https://github.com/pypa/pip-audit | ||
rev: v2.7.3 | ||
hooks: | ||
- id: pip-audit | ||
args: [--skip-editable] | ||
- repo: https://github.com/compilerla/conventional-pre-commit | ||
rev: v3.6.0 | ||
hooks: | ||
- id: conventional-pre-commit | ||
- id: conventional-pre-commit | ||
stages: [commit-msg] | ||
args: [] | ||
args: [feat, fix, ci, chore, test, docs] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,98 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "meteole" | ||
version = "0.2.0" | ||
description = "Wrapper around Méteo-France Public API" | ||
readme = "README.md" | ||
authors = [ | ||
{name = "Squad Geodatahub / Tribu IODA"}, | ||
] | ||
|
||
classifiers = [ # | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
# "Programming Language :: Python :: 3.12", no wheels 3.12 for dependency ecmwflibs | ||
] | ||
|
||
dependencies = [ | ||
"pandas>=2.0.0", | ||
"ecmwflibs>=0.6.3", | ||
"cfgrib>=0.0.11.0", | ||
"requests>=2.31.0", | ||
"xarray>=2024.5.0", | ||
"xmltodict>=0.13.0", | ||
"matplotlib>=3.8.4", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest", "coverage"] | ||
doc = ["mkdocs-material", "mkdocstrings[python]", "jinja2==3.0.3"] | ||
mypy = ["mypy"] | ||
ruff = ["ruff"] | ||
dev = ["mypy", "pre-commit", "ruff"] | ||
all = ["meteole[test,dev,doc,mypy,ruff]"] | ||
|
||
[tool.setuptools] | ||
package-dir = { "" = "src" } | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = ["src"] | ||
testpaths = ["tests"] | ||
|
||
[tool.mypy] | ||
exclude = ["tests"] | ||
ignore_missing_imports = true | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
exclude = ["tests"] | ||
extend-include = ["*.ipynb"] | ||
|
||
[tool.ruff.lint] | ||
ignore = ["E501", "D2", "D3", "D4", "D104", "D100", "D106", "S311"] | ||
extend-select = [ | ||
"UP", # pyupgrade" | ||
"S", # flake8-bandit, | ||
"B", # flake8-bugbear | ||
"I", # isort | ||
"D", # pydocstyle | ||
"NPY", # NumPy-specific rules | ||
] | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "meteole" | ||
version = "0.2.0" | ||
requires-python = ">3.9.0" | ||
description = "A Python client library for Méteo-France public API." | ||
readme = "README.md" | ||
license = {text = "Apache-2.0"} | ||
authors = [ | ||
{name = "?", email = "?@?.?"}, | ||
{name = "?", email = "?@?.?"}, | ||
] | ||
|
||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
# "Programming Language :: Python :: 3.12", no wheels 3.12 for dependency ecmwflibs | ||
"License :: OSI Approved :: Apache Software License", | ||
] | ||
|
||
dependencies = [ | ||
"pandas>=2.0.0", | ||
"ecmwflibs>=0.6.3", | ||
"cfgrib>=0.0.11.0", | ||
"requests>=2.31.0", | ||
"xarray>=2024.5.0", | ||
"xmltodict>=0.13.0", | ||
"matplotlib>=3.8.4", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://pages.github.com/MAIF/meteole/home" | ||
Documentation = "https://pages.github.com/MAIF/meteole/home" | ||
Repository = "https://github.com/MAIF/meteole" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest", "coverage"] | ||
doc = ["mkdocs-material", "mkdocstrings[python]", "jinja2==3.0.3"] | ||
dev = ["mypy", "pre-commit", "ruff"] | ||
all = ["meteole[test,doc,dev]"] | ||
|
||
[tool.setuptools] | ||
package-dir = { "" = "src" } | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
"meteole" = ["py.typed"] | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = ["src"] | ||
testpaths = ["tests"] | ||
|
||
[tool.mypy] | ||
exclude = ["tests"] | ||
ignore_missing_imports = true | ||
plugins = ["pydantic.mypy"] | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
extend-include = ["*.ipynb"] | ||
|
||
[tool.ruff.lint] | ||
ignore = ["E501", "D2", "D3", "D4", "D104", "D100", "D106", "S311", "UP007"] | ||
extend-select = [ | ||
"E", # pycodestyle errors | ||
"F", # pyflakes | ||
"W", # pycodestyle warnings | ||
"A", # flake8-builtins | ||
"PLC", # pylint conventions | ||
"PLE", # pylint errors | ||
"PLW", # pylint warnings | ||
"UP", # pyupgrade | ||
"S", # flake8-bandit, | ||
"B", # flake8-bugbear | ||
"I", # isort | ||
"D", # pydocstyle | ||
"NPY", # NumPy-specific rules | ||
] | ||
exclude = ["tests/*"] | ||
|
||
[tool.ruff.format] | ||
docstring-code-format = true | ||
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "google" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.