Skip to content

Commit

Permalink
pyproject and dotfiles cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joelb123 committed Jan 12, 2024
1 parent 9124006 commit 75894a7
Show file tree
Hide file tree
Showing 8 changed files with 1,156 additions and 67 deletions.
13 changes: 0 additions & 13 deletions .cookiecutter.json

This file was deleted.

9 changes: 0 additions & 9 deletions .flake8

This file was deleted.

2 changes: 0 additions & 2 deletions .pydocstyle

This file was deleted.

4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.12"
sphinx:
configuration: docs/conf.py
formats: all
Expand Down
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
furo
linkify-it-py
numpy
sphinx
sphinx-autobuild
sphinx-click
myst_parser
linkify-it-py
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def precommit(session: nox.Session) -> None:
def safety(session: nox.Session) -> None:
"""Scan dependencies for insecure packages."""
session.run_always("pdm", "install", "-G", "safety", external=True)
session.run_always("pdm", "export", "-o", "requirements.txt", "--without-hashes")
session.run_always("pdm", "export", "-o", "requirements.txt",
"--without-hashes", external=True)
session.run("safety", "check", "--full-report")
Path("requirements.txt").unlink()

Expand Down
1,126 changes: 1,120 additions & 6 deletions pdm.lock

Large diffs are not rendered by default.

61 changes: 28 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,34 @@ keywords = [
"high-performance",
]

[project.dev-dependencies]
[project.optional-dependencies]
analysis = [
"typer>=0.9.0",
"scipy>=1.11.4",
"seaborn>=0.13.1",
]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]

[tool.coverage.report]
show_missing = true

[tool.coverage.run]
source = ["flardl"]
concurrency = ["multiprocessing"]
sigterm = true
parallel = true
relative_files = true

[tool.mypy]
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true

[tool.pdm.dev-dependencies]
tests = [
"pygments>=2.16.1",
"hypothesis>=6.88.3",
Expand Down Expand Up @@ -82,33 +109,6 @@ coverage = [
"coverage>=7.4.0",
]

[project.optional-dependencies]
analysis = [
"typer>=0.9.0",
"scipy>=1.11.4",
"seaborn>=0.13.1",
]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]

[tool.coverage.report]
show_missing = true

[tool.coverage.run]
source = ["flardl"]
concurrency = ["multiprocessing"]
sigterm = true
parallel = true
relative_files = true

[tool.mypy]
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true

[tool.pytest.ini_options]
addopts = ["-x"]

Expand Down Expand Up @@ -167,11 +167,6 @@ max-complexity = 10
[tool.ruff.pydocstyle]
convention = 'google'


[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.1.6",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

0 comments on commit 75894a7

Please sign in to comment.