Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Sep 29, 2023
1 parent 896c355 commit b646b50
Showing 1 changed file with 6 additions and 36 deletions.
42 changes: 6 additions & 36 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
# read more about configuring hatch at:
# https://hatch.pypa.io/latest/config/build/

# https://hatch.pypa.io/latest/config/metadata/
[tool.hatch.version]
source = "vcs"

Expand All @@ -29,23 +26,11 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Typing :: Typed",
]
# add your package dependencies here
dependencies = ["requests"]

# https://peps.python.org/pep-0621/#dependencies-optional-dependencies
# "extras" (e.g. for `pip install .[test]`)
[project.optional-dependencies]
# add dependencies used for testing here
test = ["pytest", "pytest-cov"]
# add anything else you like to have in your dev environment here
dev = [
"black",
"ipython",
"mypy",
"pdbpp", # https://github.com/pdbpp/pdbpp
"rich", # https://github.com/Textualize/rich
"ruff",
]
dev = ["black", "ipython", "mypy", "pdbpp", "rich", "ruff"]

[project.urls]
homepage = "https://github.com/tlambert03/pyconify"
Expand All @@ -56,7 +41,7 @@ repository = "https://github.com/tlambert03/pyconify"
line-length = 88
target-version = "py38"
# https://beta.ruff.rs/docs/rules/
extend-select = [
select = [
"E", # style errors
"W", # style warnings
"F", # flakes
Expand All @@ -70,12 +55,13 @@ extend-select = [
"TCH",
"TID",
]

# I do this to get numpy-style docstrings AND retain
# D417 (Missing argument descriptions in the docstring)
# otherwise, see:
# https://beta.ruff.rs/docs/faq/#does-ruff-support-numpy-or-google-style-docstrings
# https://github.com/charliermarsh/ruff/issues/2606
extend-ignore = [
ignore = [
"D100", # Missing docstring in public module
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
Expand All @@ -87,8 +73,7 @@ extend-ignore = [
]

[tool.ruff.per-file-ignores]
"tests/*.py" = ["D", "S"]
"setup.py" = ["D"]
"tests/*.py" = ["D"]

# https://mypy.readthedocs.io/en/stable/config_file.html
[tool.mypy]
Expand All @@ -99,10 +84,6 @@ disallow_subclassing_any = false
show_error_codes = true
pretty = true

# # module specific overrides
# [[tool.mypy.overrides]]
# module = ["numpy.*",]
# ignore_errors = true
# https://docs.pytest.org/en/6.2.x/customize.html
[tool.pytest.ini_options]
minversion = "6.0"
Expand All @@ -119,18 +100,7 @@ exclude_lines = [
"\\.\\.\\.",
"raise NotImplementedError()",
]

[tool.coverage.run]
source = ["pyconify"]
omit = ["src/pyconify/types.py"]

# https://github.com/mgedmin/check-manifest#configuration
# add files that you want check-manifest to explicitly ignore here
# (files that are in the repo but shouldn't go in the package)
[tool.check-manifest]
ignore = [
".github_changelog_generator",
".pre-commit-config.yaml",
".ruff_cache/**/*",
"setup.py",
"tests/**/*",
]

0 comments on commit b646b50

Please sign in to comment.