Skip to content

Commit

Permalink
Init rye and format
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkoehler committed Feb 28, 2024
1 parent 54a0141 commit fd0578d
Show file tree
Hide file tree
Showing 5 changed files with 477 additions and 47 deletions.
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Archive
.archive/

# Ruff linter
.ruff_cache/

# Byte-compiled / optimized / DLL files
*__pycache__
*.py[cod]
Expand Down Expand Up @@ -134,9 +140,3 @@ dmypy.json

# Pyre type checker
.pyre/

# Ruff litner
.ruff_cache/

# Archive
.archive/
4 changes: 2 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ and this project adheres to

- Minor additions

## [0.2.0](https://github.com/richardkoehler/pte-stats/releases/tag/v0.2.0) - 2023-01-12
## [v0.2.0](https://github.com/richardkoehler/pte-stats/releases/tag/v0.2.0) - 2023-01-12

### Added

- Minor additions

## [0.1.0](https://github.com/richardkoehler/pte-stats/releases/tag/v0.1.0) - 2022-02-01
## [v0.1.0](https://github.com/richardkoehler/pte-stats/releases/tag/v0.1.0) - 2022-02-01

### Added

Expand Down
76 changes: 37 additions & 39 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,31 @@ build-backend = "hatchling.build"
requires = ["hatchling"]

[project]
authors = [
{name = "Richard M. Köhler"},
]
authors = [{ name = "Richard M. Köhler" }]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
description = "An open-source software package for statistics with time series."
dynamic = ["version"]
keywords = ["statistics", "timeseries", "eeg", "ieeg"]
license = {file = "LICENSE"}
maintainers = [
{name = "Richard M. Köhler"},
]
license = { file = "LICENSE" }
maintainers = [{ name = "Richard M. Köhler" }]
name = "pte-stats"
readme = {file = "README.md", content-type = "text/markdown"}
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"

dependencies = [
"joblib",
"numba",
"numpy",
"scikit-image",
"statsmodels",
]
dependencies = ["joblib", "numba", "numpy", "scikit-image", "statsmodels"]

[project.optional-dependencies]
dev = [
Expand All @@ -45,9 +43,6 @@ dev = [
"tox",
]

[tool.hatch.version]
path = "src/pte_stats/__init__.py"

[project.urls]
bugtracker = "https://github.com/richardkoehler/pte-stats/issues"
changelog = "https://github.com/richardkoehler/pte-stats/blob/main/docs/CHANGELOG.md"
Expand All @@ -56,27 +51,8 @@ repository = "https://github.com/richardkoehler/pte-stats"
[tool.black]
line-length = 79

[tool.ruff]
line-length = 79

[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]

[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.hatch]
version.path = "src/pte_stats/__init__.py"

[[tool.mypy.overrides]]
ignore_missing_imports = true
Expand All @@ -89,3 +65,25 @@ module = [
"skimage",
"statsmodels.stats.multitest",
]

[tool.ruff]
line-length = 79

[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]

[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"]
216 changes: 216 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: ["dev"]
# all-features: false
# with-sources: false

-e file:.
anyio==4.3.0
# via httpx
black==24.2.0
# via pte-stats
cachetools==5.3.3
# via tox
certifi==2024.2.2
# via httpcore
# via httpx
cfgv==3.4.0
# via pre-commit
chardet==5.2.0
# via tox
click==8.1.7
# via black
# via hatch
# via userpath
colorama==0.4.6
# via click
# via pytest
# via tox
coverage==7.4.3
# via pytest-cov
distlib==0.3.8
# via virtualenv
editables==0.5
# via hatchling
exceptiongroup==1.2.0
# via anyio
# via pytest
filelock==3.13.1
# via tox
# via virtualenv
h11==0.14.0
# via httpcore
hatch==1.9.3
# via pte-stats
hatchling==1.21.1
# via hatch
httpcore==1.0.4
# via httpx
httpx==0.27.0
# via hatch
hyperlink==21.0.0
# via hatch
identify==2.5.35
# via pre-commit
idna==3.6
# via anyio
# via httpx
# via hyperlink
imageio==2.34.0
# via scikit-image
importlib-metadata==7.0.1
# via keyring
iniconfig==2.0.0
# via pytest
jaraco-classes==3.3.1
# via keyring
joblib==1.3.2
# via pte-stats
keyring==24.3.1
# via hatch
lazy-loader==0.3
# via scikit-image
llvmlite==0.42.0
# via numba
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
more-itertools==10.2.0
# via jaraco-classes
mypy==1.8.0
# via pte-stats
mypy-extensions==1.0.0
# via black
# via mypy
networkx==3.2.1
# via scikit-image
nodeenv==1.8.0
# via pre-commit
numba==0.59.0
# via pte-stats
numpy==1.26.4
# via imageio
# via numba
# via pandas
# via pandas-stubs
# via patsy
# via pte-stats
# via scikit-image
# via scipy
# via statsmodels
# via tifffile
packaging==23.2
# via black
# via hatch
# via hatchling
# via pte-stats
# via pyproject-api
# via pytest
# via scikit-image
# via statsmodels
# via tox
pandas==2.2.1
# via statsmodels
pandas-stubs==2.2.0.240218
# via pte-stats
pathspec==0.12.1
# via black
# via hatchling
patsy==0.5.6
# via statsmodels
pexpect==4.9.0
# via hatch
pillow==10.2.0
# via imageio
# via scikit-image
platformdirs==4.2.0
# via black
# via hatch
# via tox
# via virtualenv
pluggy==1.4.0
# via hatchling
# via pytest
# via tox
pre-commit==3.6.2
# via pte-stats
ptyprocess==0.7.0
# via pexpect
pygments==2.17.2
# via rich
pyproject-api==1.6.1
# via tox
pytest==8.0.2
# via pte-stats
# via pytest-cov
pytest-cov==4.1.0
# via pte-stats
python-dateutil==2.8.2
# via pandas
pytz==2024.1
# via pandas
pywin32-ctypes==0.2.2
# via keyring
pyyaml==6.0.1
# via pre-commit
rich==13.7.0
# via hatch
ruff==0.2.2
# via pte-stats
scikit-image==0.22.0
# via pte-stats
scipy==1.12.0
# via scikit-image
# via statsmodels
setuptools==69.1.1
# via nodeenv
shellingham==1.5.4
# via hatch
six==1.16.0
# via patsy
# via python-dateutil
sniffio==1.3.1
# via anyio
# via httpx
statsmodels==0.14.1
# via pte-stats
tifffile==2024.2.12
# via scikit-image
tomli==2.0.1
# via black
# via coverage
# via hatchling
# via mypy
# via pyproject-api
# via pytest
# via tox
tomli-w==1.0.0
# via hatch
tomlkit==0.12.4
# via hatch
tox==4.13.0
# via pte-stats
trove-classifiers==2024.2.23
# via hatchling
types-pytz==2024.1.0.20240203
# via pandas-stubs
typing-extensions==4.10.0
# via anyio
# via black
# via mypy
tzdata==2024.1
# via pandas
userpath==1.9.1
# via hatch
virtualenv==20.25.1
# via hatch
# via pre-commit
# via tox
zipp==3.17.0
# via importlib-metadata
zstandard==0.22.0
# via hatch
Loading

0 comments on commit fd0578d

Please sign in to comment.