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
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ repos:
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand Down
2 changes: 1 addition & 1 deletion mesonpy/_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
# by `packaging` as part of tag determiniation.
multiarch = sys.implementation._multiarch.replace('-', '_')

return f"ios_{version[0]}_{version[1]}_{multiarch}"
return f'ios_{version[0]}_{version[1]}_{multiarch}'

Check warning on line 176 in mesonpy/_tags.py

View check run for this annotation

Codecov / codecov/patch

mesonpy/_tags.py#L176

Added line #L176 was not covered by tests


def get_platform_tag() -> str:
Expand Down
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,29 @@ lint.select = [
'E', # pycodestyle
'F', # pyflakes
'I', # isort
'Q', # flake8-quotes
'W', # pycodestyle
'RUF100', # ruff
]
exclude = [
'docs/conf.py',
]

[tool.ruff.format]
quote-style = 'single'

[tool.ruff.lint.flake8-quotes]
avoid-escape = false
inline-quotes = 'single'
multiline-quotes = 'single'

[tool.ruff.lint.isort]
lines-between-types = 1
lines-after-imports = 2
known-first-party = [
'mesonpy',
]

[tool.ruff.format]
quote-style = 'single'


[tool.coverage.run]
disable_warnings = [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def test_ios_project(package_simple, monkeypatch, multiarch, tmp_path):
# Mock being on iOS
monkeypatch.setattr(sys, 'platform', 'ios')
monkeypatch.setattr(platform, 'machine', Mock(return_value=arch))
monkeypatch.setattr(sysconfig, 'get_platform', Mock(return_value=f"ios-13.0-{multiarch}"))
monkeypatch.setattr(sysconfig, 'get_platform', Mock(return_value=f'ios-13.0-{multiarch}'))
ios_ver = platform.IOSVersionInfo('iOS', '13.0', 'iPhone', multiarch.endswith('simulator'))
monkeypatch.setattr(platform, 'ios_ver', Mock(return_value=ios_ver))

Expand Down
Loading