diff --git a/Makefile b/Makefile deleted file mode 100644 index 5de6cfc0f..000000000 --- a/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -PYTHON ?= python3 - -all: - echo "Nothing by default" - -release-pypi: - # better safe than sorry - test ! -e dist - $(PYTHON) setup.py sdist - $(PYTHON) setup.py bdist_wheel - twine upload dist/* diff --git a/dandi/dandiarchive.py b/dandi/dandiarchive.py index d0f6d6e6d..3a849bbe9 100644 --- a/dandi/dandiarchive.py +++ b/dandi/dandiarchive.py @@ -492,7 +492,7 @@ def get_asset_download_path(self, asset: BaseRemoteAsset) -> str: return asset.path.lstrip("/") def is_under_download_path(self, path: str) -> bool: - # cf. + # cf. # noqa: E501 return bool( re.fullmatch(re.escape(self.path).replace(r"\*", ".*"), path, flags=re.I) ) @@ -587,7 +587,8 @@ class _dandi_url_parser: flags=re.I, ), {"handle_redirect": "pass"}, - "https://identifiers.org/DANDI:[/] ( cannot be 'draft')", + "https://identifiers.org/DANDI:[/]" + " ( cannot be 'draft')", ), ( re.compile( diff --git a/setup.cfg b/setup.cfg index 673c846c8..f6c0c5cf2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -105,18 +105,10 @@ console_scripts = [flake8] max-line-length = 100 -#ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D208,D209,D210,D300,D301,D400,D401,D403,E24,E121,E123,E126,E226,E266,E402,E704,E731,F821,I100,I101,I201,N802,N803,N804,N806,W503,W504,W605 ignore = E203,W503 -exclude = - *sphinx* - dandi/externals/* - .tox/ +extend-exclude = _version.py versioneer.py -per-file-ignores = - # The parse_dandi_url() docstring contains some long lines we can't do - # anything about. - dandi/dandiarchive.py:E501 [versioneer] VCS = git diff --git a/tox.ini b/tox.ini index 1b4f51c2f..601bdbb95 100644 --- a/tox.ini +++ b/tox.ini @@ -70,10 +70,6 @@ filterwarnings = [coverage:run] parallel = True source = dandi -omit = - # omit bundled libs from bids-specification - */support/bids/schema.py - */support/bids/utils.py [coverage:report] precision = 2