Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Top-most EditorConfig file.
root = true

# Universal settings.
[*]
indent_style = space
indent_size = 4
tab_width = 8
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[Makefile]
indent_style = tab
indent_size = tab

[*.{json,yml}]
indent_size = 2
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.idea
.idea/
.venv/
*.iml
*.pyc
.pytest_cache
*.egg-info
tests/**/build
.coverage
coverage.xml
pytester.iml
pytester.iml
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ make dev

To use different python version, specify it in `HATCH_PYTHON` variable:
```shell
HATCH_PYTHON=python3.10 make clean dev test
HATCH_PYTHON=$(which python3.10) make clean dev test
```

Configure your IDE to use `.venv/bin/python` from the virtual environment when developing the project:
Expand Down
4 changes: 2 additions & 2 deletions scripts/gen-readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def overwrite_readme(part, docs):
f.write(new_readme)


def discover_fixtures():
fixtures = []
def discover_fixtures() -> list[Fixture]:
fixtures: list[Fixture] = []
see_also = collections.defaultdict(set)
idx: dict[str, int] = {}
for fixture in P.__all__:
Expand Down
3 changes: 1 addition & 2 deletions tests/resources/hatchling-whl/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ requires-python = ">=3.7"
license = "MIT"
keywords = []
authors = [
{ name = "Jonh Doe", email = "[email protected]" },
{ name = "Jonh Doe", email = "[email protected]" },
]
dependencies = []

[tool.hatch.version]
path = "src/hatchling_whl/__about__.py"

Loading