Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Sep 6, 2024
1 parent 8aee66f commit fd55d1a
Show file tree
Hide file tree
Showing 18 changed files with 38 additions and 390 deletions.
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
site_name: Python Project Template
site_url: 'https://deargen-ai.gitlab.io/python-project-template-docs'
repo_url: 'https://github.com/deargen/python-project-template-2024'
repo_url: 'https://github.com/deargen/slack-helpers'
copyright: |
&copy; 2024 <a href="https://deargen.me" target="_blank" rel="noopener">Deargen Inc.</a>
watch: [mkdocs.yml, README.md, src/]
Expand Down Expand Up @@ -94,7 +94,7 @@ plugins:
extra:
social:
- icon: fontawesome/brands/github-alt
link: https://github.com/deargen/python-project-template-2024
link: https://github.com/deargen/slack-helpers
version:
provider: mike

Expand Down
35 changes: 17 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,34 @@ build-backend = "setuptools.build_meta"
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "src/mlproject/_version.py" # CHANGE
versionfile_build = "mlproject/_version.py" # CHANGE
versionfile_source = "src/slack_helpers/_version.py" # CHANGE
versionfile_build = "slack_helpers/_version.py" # CHANGE
tag_prefix = "v"
parentdir_prefix = "mlproject-" # CHANGE
parentdir_prefix = "slack-helpers-" # CHANGE

[project]
name = "mlproject" # CHANGE
name = "slack-helpers" # CHANGE
dynamic = ["version", "dependencies", "optional-dependencies"]
description = "Python project template" # OPTIONALLY CHANGE
authors = [
{ name = "Kiyoon Kim" }, # OPTIONALLY CHANGE
]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11,<3.12"
requires-python = ">=3.8,<4"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = ["development", "template"]

[project.urls]
"Homepage" = "https://github.com/deargen/python-project-template-2024" # OPTIONALLY CHANGE
"Homepage" = "https://github.com/deargen/slack-helpers" # OPTIONALLY CHANGE

[tool.setuptools.dynamic]
dependencies = {file = ["deps/requirements.in"]}
Expand All @@ -37,13 +41,13 @@ dependencies = {file = ["deps/requirements.in"]}
where = ["src"]

[tool.pytest.ini_options]
addopts = "--cov=mlproject" # CHANGE (name of the importing module name)
addopts = "--cov=slack_helpers" # CHANGE (name of the importing module name)
testpaths = ["tests"]

[tool.ruff]
src = ["src"] # for ruff isort
extend-exclude = [
"src/mlproject/_version.py", # CHANGE
"src/slack_helpers/_version.py", # CHANGE
]

[tool.ruff.lint]
Expand Down Expand Up @@ -111,9 +115,9 @@ max-line-length = 120
known-third-party = ["wandb"]

## Uncomment this if you want to use Python < 3.10
# required-imports = [
# "from __future__ import annotations",
# ]
required-imports = [
"from __future__ import annotations",
]

[tool.ruff.lint.flake8-tidy-imports]
# Ban certain modules from being imported at module level, instead requiring
Expand All @@ -130,15 +134,10 @@ useLibraryCodeForTypes = true
autoImportCompletions = true
diagnosticsMode = "openFilesOnly"

# reportUnusedImports = false
# reportUnusedVariable = false
# reportUndefinedVariable = false # ruff handles this with F821

pythonVersion = "3.11"
# pythonPlatform = "Linux"
pythonVersion = "3.8"

[tool.coverage.report]
omit = [
"src/mlproject/_version.py", # CHANGE
"src/slack_helpers/_version.py", # CHANGE
# OPTIONALLY ADD MORE LATER
]
25 changes: 0 additions & 25 deletions src/mlproject/__init__.py

This file was deleted.

34 changes: 0 additions & 34 deletions src/mlproject/two_numbers.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/mlproject/utils/__init__.py

This file was deleted.

173 changes: 0 additions & 173 deletions src/mlproject/utils/config.py

This file was deleted.

Loading

0 comments on commit fd55d1a

Please sign in to comment.