Skip to content

Be nicer about possible misconfigurations #1004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 109 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
771046c
cli: extend ls comand for more info
con-f-use Oct 14, 2023
263dc5b
a few fixes and tests
thejcannon Jan 18, 2024
4497912
newline
thejcannon Jan 18, 2024
90810a3
space
thejcannon Jan 18, 2024
d9b4d24
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 18, 2024
cdcc699
pre-commit
thejcannon Jan 18, 2024
5f20c3e
fix bad string
thejcannon Jan 18, 2024
a23d5fe
Add a "only-version" version scheme (#1005)
thejcannon Jan 19, 2024
27ae4d8
chore: hg file finder - use check=True api
RonnyPfannschmidt Jan 5, 2024
2fa7927
chore: has_command - use default timeout automatically
RonnyPfannschmidt Jan 5, 2024
2ac4f08
fix #957 - add subprocess timeout
RonnyPfannschmidt Jan 5, 2024
9193ec9
chore: add exception info to warning logging
RonnyPfannschmidt Jan 5, 2024
027a52d
begin to address #993 - add normcase
RonnyPfannschmidt Jan 8, 2024
6c8c164
fixup #957 - timeout passover for git
RonnyPfannschmidt Jan 8, 2024
b85281d
chore: add py3.12 in tox.ini and add wheel
RonnyPfannschmidt Jan 8, 2024
0c22186
fix #966 - list all variables for version file templates
RonnyPfannschmidt Jan 8, 2024
1ecf351
fix #960: add a ``--force-write-version-files`` flag for the cli
RonnyPfannschmidt Jan 8, 2024
517ed80
fix #953 - info log level for missing tool section
RonnyPfannschmidt Jan 8, 2024
24bb92d
fix #993 and add a test
RonnyPfannschmidt Jan 8, 2024
c9d1bb2
chore: pass correct parameter name fo cli fallback
RonnyPfannschmidt Feb 15, 2024
fa84748
chore: consistently use kwonly args inside config.from_data
RonnyPfannschmidt Feb 15, 2024
fd82193
chore: turn empty tag regex warning into constant
RonnyPfannschmidt Feb 15, 2024
ab6cf05
test fix: correct cli test after pytest 8 exposed a bug
RonnyPfannschmidt Feb 15, 2024
1f57be6
ci fix: unshallow
RonnyPfannschmidt Feb 15, 2024
8cf87be
chore: drop black, flake8 and reoder-python-imports
RonnyPfannschmidt Feb 15, 2024
7225533
fix ruff config
RonnyPfannschmidt Feb 15, 2024
d9b3b29
Merge pull request #996 from RonnyPfannschmidt/ronny/cleanups
RonnyPfannschmidt Feb 15, 2024
5170451
Only depend on typing_extensions for Python < 3.10
dcermak Feb 19, 2024
09095ff
fix non-escaped markdown in docs
JCGoran Feb 21, 2024
58c9758
Merge pull request #1017 from JCGoran/fix_markdown
RonnyPfannschmidt Feb 21, 2024
fee09f4
Merge pull request #1015 from dcermak/typing_extensions-only-for-olde…
RonnyPfannschmidt Feb 28, 2024
88b2fe6
fix #1018 - allow NonNormalizedVersion in semver
RonnyPfannschmidt Mar 5, 2024
82857a4
upgrade pre-commit
RonnyPfannschmidt Mar 5, 2024
59defe7
Merge pull request #1020 from RonnyPfannschmidt/fix-1018-allow-non-no…
RonnyPfannschmidt Mar 5, 2024
45eb1b2
Merge pull request #1021 from RonnyPfannschmidt/pre-commit-upgrade
RonnyPfannschmidt Mar 5, 2024
1f49a81
Apply suggestions from code review
RonnyPfannschmidt Mar 5, 2024
411e933
Merge branch 'main' into main
RonnyPfannschmidt Mar 5, 2024
6f9544a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 5, 2024
739a67c
fix ruff warning on concat
RonnyPfannschmidt Mar 5, 2024
1bac9b5
Merge pull request #959 from con-f-use/main
RonnyPfannschmidt Mar 5, 2024
fa69479
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 12, 2024
773ad45
Merge pull request #1023 from pypa/pre-commit-ci-update-config
RonnyPfannschmidt Mar 13, 2024
53e9930
Read branch data from Mercurial archives
danchr Mar 14, 2024
2bfbb25
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 18, 2024
1ac50c2
Merge pull request #1026 from pypa/pre-commit-ci-update-config
RonnyPfannschmidt Mar 20, 2024
c9b3860
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 25, 2024
d081257
Merge pull request #1027 from pypa/pre-commit-ci-update-config
RonnyPfannschmidt Mar 25, 2024
9ea57a0
Make .git_archival.txt more reproducible
LecrisUT Apr 16, 2024
d8d2b86
Merge pull request #1033 from LecrisUT/fix/git_archival
RonnyPfannschmidt Apr 16, 2024
d75201a
Merge pull request #1024 from danchr/hg-archive-branch
RonnyPfannschmidt Apr 22, 2024
9645373
tests: add git get_head_date test for isoformat dates ending with Z
ap-- May 2, 2024
49a89c9
setuptools_scm.git: fix handling of dates in isoformat ending with Z
ap-- May 2, 2024
3e613cd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 2, 2024
234b74f
Merge pull request #1039 from ap--/fix-timezone-error
RonnyPfannschmidt May 6, 2024
65ac14d
bugfix: use extras in tox to ensure installation of test deps
RonnyPfannschmidt May 6, 2024
bb33eb7
Merge pull request #1043 from RonnyPfannschmidt/fix-tox
RonnyPfannschmidt May 6, 2024
a2ba78a
Exclude bots from generated release notes
hugovk May 8, 2024
67d154a
Merge pull request #1046 from hugovk/exclude-bots
RonnyPfannschmidt May 8, 2024
d37c280
Apply ruff/pyupgrade rule UP031
DimitriPapadopoulos May 8, 2024
573bee1
Apply ruff/flake8-implicit-str-concat rule ISC001
DimitriPapadopoulos May 6, 2024
6d46996
Apply ruff/refurb rule FURB118
DimitriPapadopoulos May 8, 2024
a4f3d38
Merge pull request #1047 from DimitriPapadopoulos/UP_FURB
RonnyPfannschmidt May 11, 2024
102f56a
Merge pull request #1044 from DimitriPapadopoulos/ISC
RonnyPfannschmidt May 15, 2024
15620f3
support `pipx run setuptools_scm`
njzjz Jun 10, 2024
74fa5be
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 10, 2024
f1e8074
Apply ruff/tryceratops rule TRY401
DimitriPapadopoulos Jun 29, 2024
98450d7
Update README.md to correct CI badge status
shenxianpeng Jul 9, 2024
545ce7e
Merge pull request #1055 from shenxianpeng/patch-1
RonnyPfannschmidt Jul 9, 2024
199f90b
Fix a link in usage.md
brettcannon Jul 20, 2024
e161622
Merge pull request #1057 from brettcannon/patch-1
RonnyPfannschmidt Jul 20, 2024
4ec3208
Merge pull request #1053 from DimitriPapadopoulos/TRY401
RonnyPfannschmidt Jul 20, 2024
c0e5743
Documented git archive support in README and docs
jamesbraza Jul 28, 2024
0213170
Merge pull request #1061 from jamesbraza/git-archive-docs
RonnyPfannschmidt Jul 28, 2024
6e81a26
Merge branch 'main' into patch-1
RonnyPfannschmidt Jul 28, 2024
4d0d50b
Merge pull request #1051 from njzjz/patch-1
RonnyPfannschmidt Jul 28, 2024
6f53d67
Apply repo-review rules PP306, PP307, PP308
DimitriPapadopoulos Aug 4, 2024
b3db2c5
Apply repo-review rule PC191
DimitriPapadopoulos Aug 4, 2024
ff50699
Apply repo-review rule RF003
DimitriPapadopoulos Aug 4, 2024
532554f
Apply repo-review rule RF103
DimitriPapadopoulos Aug 4, 2024
715ef95
Apply ruff rules
DimitriPapadopoulos Aug 4, 2024
4a48455
Add repo-review pre-commit hook
DimitriPapadopoulos Aug 6, 2024
6eb52e6
Merge pull request #1063 from DimitriPapadopoulos/repo-review
RonnyPfannschmidt Aug 6, 2024
d0daf6f
Rename the project to setuptools-scm in docs and GitHub.
jaraco Aug 13, 2024
12fc28e
Updated more references to the legacy name in Python code.
jaraco Aug 13, 2024
5f7ba15
Also update URL reference in pyproject.
jaraco Aug 13, 2024
4b29ab9
docs: clarify usage of version files
ianw Aug 23, 2024
d665621
Merge pull request #1068 from jaraco/debt/rename
RonnyPfannschmidt Aug 26, 2024
c8e5505
Updated version.py template to include __all__
jamesbraza Oct 1, 2024
2e0c6a9
Added a CHANGELOG entry
jamesbraza Oct 1, 2024
24d7797
Added 'ruff check' unit test
jamesbraza Oct 3, 2024
be34dd1
Merge pull request #1076 from jamesbraza/all-in-version
RonnyPfannschmidt Oct 3, 2024
24719f2
Better cleanup PYTHONPATH for Mercurial calls (support for PDM)
paugier Oct 23, 2024
3c145df
Merge pull request #1080 from paugier/hg-git_with_pdm
RonnyPfannschmidt Oct 24, 2024
a558f31
pipx.run entry-points should be setuptools-scm
paugier Oct 25, 2024
09c1f51
Add a lower bound pin on setuptools dependency
mayeut Nov 24, 2024
c766df1
Fixes #1090. Pinned requirement to tomli<=2.0.2.
anchal39 Nov 28, 2024
327b428
Add cross-reference from version_scheme config to implementations
maresb Jan 3, 2025
c633987
Remove the word "local" per PEP 440
maresb Jan 3, 2025
34a89a9
Clarify the definition of "local"
maresb Jan 3, 2025
3d8cefe
Add cross-reference from local_scheme config to implementations
maresb Jan 3, 2025
5d3a1f8
Merge pull request #1094 from maresb/version-scheme-docs
RonnyPfannschmidt Jan 4, 2025
15d62ac
Merge pull request #1091 from anchal39/tomli-version-fix
RonnyPfannschmidt Jan 14, 2025
1ddd483
Merge pull request #1088 from mayeut/patch-1
RonnyPfannschmidt Jan 14, 2025
51822d7
Merge branch 'main' into version-file
RonnyPfannschmidt Jan 14, 2025
ae5322b
Merge pull request #1069 from ianw/version-file
RonnyPfannschmidt Jan 14, 2025
051ad96
Merge pull request #1081 from paugier/fix-pipx-command-name
RonnyPfannschmidt Jan 14, 2025
2b0722f
Mention SETUPTOOLS_SCM_PRETEND_VERSION_FOR in error message
paugier Jan 22, 2025
9b6f031
Merge pull request #1102 from paugier/error-message-env-var
RonnyPfannschmidt Jan 23, 2025
d49399b
merge main
RonnyPfannschmidt Feb 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added 'ruff check' unit test
  • Loading branch information
jamesbraza committed Oct 3, 2024
commit 24d7797e1872aca7936dcd71a1aac81a08ee5326
3 changes: 2 additions & 1 deletion src/setuptools_scm/_integration/dump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
from typing import Tuple
from typing import Union

VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
Expand Down
8 changes: 8 additions & 0 deletions testing/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ def test_dump_version_flake8(tmp_path: Path) -> None:
subprocess.run([flake8, "VERSION.py"], cwd=tmp_path, check=True)


def test_dump_version_ruff(tmp_path: Path) -> None:
ruff = shutil.which("ruff")
if ruff is None:
pytest.skip("ruff not found")
dump_a_version(tmp_path)
subprocess.run([ruff, "check", "--no-fix", "VERSION.py"], cwd=tmp_path, check=True)


def test_has_command() -> None:
with pytest.warns(RuntimeWarning, match="yadayada"):
assert not has_command("yadayada_setuptools_aint_ne")
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy