-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] package with pyproject.tom and lint (#46)
* package with pyproject.toml, add isort / codespell, apply linting via pre-commit * update pre-commit * run tests * rm breakpoints * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update test_rs2redcap_redcap2rs.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Yibei Chen <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
05362e8
commit 239efcc
Showing
30 changed files
with
411 additions
and
3,317 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[flake8] | ||
doctests = True | ||
exclude = | ||
**/__init__.py | ||
**/tests/* | ||
*build/ | ||
docs/sphinxext/ | ||
docs/tools/ | ||
reproschema/_version.py | ||
max-line-length=79 | ||
extend-ignore = B001, B006, B016, E501, E722, F821 |
This file was deleted.
Oops, something went wrong.
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
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,3 @@ | ||
datas | ||
Varios | ||
deamon |
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,84 @@ | ||
[build-system] | ||
build-backend = "hatchling.build" | ||
requires = ["hatchling", "hatch-vcs"] | ||
|
||
[project] | ||
authors = [{name = "Repronim developers", email = "[email protected]"}] | ||
dependencies = [ | ||
"click", | ||
"etelemetry", | ||
"pyshacl", | ||
"PyLD", | ||
"requests", | ||
"requests_cache", | ||
"pyyaml", | ||
"beautifulsoup4", | ||
"lxml", | ||
"pydantic >= 2.0" | ||
] | ||
description = "Reproschema Python library" | ||
# Version from setuptools_scm | ||
dynamic = ["version"] | ||
license = {text = "Apache License, 2.0"} | ||
maintainers = [{name = "Repronim developers", email = "[email protected]"}] | ||
name = "reproschema-py" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
|
||
[project.optional-dependencies] | ||
all = ["reproschema-py[doc]", "reproschema-py[test]"] | ||
dev = ["reproschema-py[doc]", "reproschema-py[test]", "black", "pre-commit"] | ||
doc = [ | ||
"packaging", | ||
"sphinx >= 2.1.2", | ||
"sphinx_rtd_theme", | ||
"sphinxcontrib-apidoc ~= 0.3.0", | ||
"sphinxcontrib-napoleon", | ||
"sphinxcontrib-versioning" | ||
] | ||
docs = ["reproschema-py[doc]"] | ||
# For running unit and docstring tests | ||
test = [ | ||
"pytest >= 4.4.0", | ||
"pytest-cov", | ||
"pytest-env", | ||
"pytest-xdist", | ||
"pytest-rerunfailures", | ||
"codecov" | ||
] | ||
tests = ["reproschema-py[test]"] | ||
|
||
[project.scripts] | ||
reproschema = "reproschema.cli:main" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/ReproNim/reproschema-py" | ||
|
||
[tool.black] | ||
line-length = 79 | ||
|
||
[tool.codespell] | ||
ignore-words = "codespell_ignore_words.txt" | ||
skip = "./.git" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "reproschema/_version.py" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["reproschema"] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.isort] | ||
combine_as_imports = true | ||
line_length = 79 | ||
profile = "black" | ||
skip_gitignore = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-ra --strict-config --strict-markers --doctest-modules --showlocals -v" | ||
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS" | ||
junit_family = "xunit2" | ||
minversion = "6.0" | ||
xfail_strict = true |
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
Oops, something went wrong.