-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update exporthelpers & sync with pymplate
- Loading branch information
Showing
9 changed files
with
146 additions
and
59 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
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# see https://github.com/karlicoss/pymplate for up-to-date reference | ||
[project] | ||
dynamic = ["version"] # version is managed by setuptools_scm | ||
name = "instapexport" | ||
dependencies = [ | ||
# instapaper api (needed for export only) | ||
# my version has some changes not in the upstream yet.. | ||
"instapaper @ git+https://github.com/karlicoss/instapaper.git", | ||
] | ||
# TODO maybe split out DAL deps and export deps? might be nice | ||
|
||
## these need to be set if you're planning to upload to pypi | ||
# description = "TODO" | ||
# license = {file = "LICENSE"} | ||
# authors = [ | ||
# {name = "Dima Gerasimov (@karlicoss)", email = "karlicoss@gmail.com"}, | ||
# ] | ||
# maintainers = [ | ||
# {name = "Dima Gerasimov (@karlicoss)", email = "karlicoss@gmail.com"}, | ||
# ] | ||
# | ||
# [project.urls] | ||
# Homepage = "https://github.com/karlicoss/pymplate" | ||
## | ||
|
||
[project.optional-dependencies] | ||
optional = [ | ||
"orjson", | ||
"colorlog", | ||
"ijson", # faster iterative json processing | ||
] | ||
testing = [ | ||
"pytest", | ||
"ruff", | ||
"mypy", | ||
"lxml", # for mypy html coverage | ||
] | ||
|
||
|
||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "python-simplified-semver" | ||
local_scheme = "dirty-tag" | ||
|
||
|
||
# nice things about pyproject.toml | ||
# - zip_safe=False isn't neccessary anymore | ||
# - correctly discovers namespace packages by defuilt? | ||
# - correctly handles py.typed by default? | ||
# - handles src layout automatically https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#src-layout | ||
|
||
# things I'm not sure about yet | ||
# - avoiding dupliation/variable reuse? | ||
# - file/git dependencies? | ||
# - unclear how to specify namespace package order https://github.com/seanbreckenridge/reorder_editable/issues/2 | ||
|
||
# TODO | ||
# - maybe it has a nicer pypi upload system? not sure | ||
# e.g. possibly use hatch/flit/pdb/poetry -- but not sure what's the benefit tbh |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ignore = [ | ||
### too opinionated style checks | ||
"E501", # too long lines | ||
"E702", # Multiple statements on one line (semicolon) | ||
"E731", # assigning lambda instead of using def | ||
"E741", # Ambiguous variable name: `l` | ||
"E742", # Ambiguous class name: `O | ||
"E401", # Multiple imports on one line | ||
"F403", # import *` used; unable to detect undefined names | ||
### | ||
|
||
### | ||
"E722", # Do not use bare `except` ## Sometimes it's useful for defensive imports and that sort of thing.. | ||
"F811", # Redefinition of unused # this gets in the way of pytest fixtures (e.g. in cachew) | ||
|
||
## might be nice .. but later and I don't wanna make it strict | ||
"E402", # Module level import not at top of file | ||
|
||
### maybe consider these soon | ||
# sometimes it's useful to give a variable a name even if we don't use it as a documentation | ||
# on the other hand, often is a sign of error | ||
"F841", # Local variable `count` is assigned to but never used | ||
"F401", # imported but unused | ||
### | ||
] | ||
|
||
exclude = [ | ||
"src/hypexport/Hypothesis", | ||
] |
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