Skip to content

Commit 5ea4674

Browse files
authored
Cleanup pyproject and remove black (#11)
1 parent 520f45e commit 5ea4674

File tree

2 files changed

+6
-83
lines changed

2 files changed

+6
-83
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ repos:
1111
hooks:
1212
- id: pyupgrade
1313
args: [--py38-plus]
14-
- repo: https://github.com/psf/black
15-
rev: 25.9.0
16-
hooks:
17-
- id: black
18-
args:
19-
- --safe
20-
- --quiet
21-
files: ^((xbox|tests)/.+)?[^/]+\.py$
2214
- repo: https://github.com/PyCQA/bandit
2315
rev: 1.8.6
2416
hooks:

pyproject.toml

Lines changed: 6 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -32,37 +32,6 @@ dynamic = ["version"]
3232
[project.urls]
3333
Homepage = "https://github.com/OpenXbox/xbox-webapi-python"
3434

35-
[project.optional-dependencies]
36-
dev = [
37-
# Tagging releases
38-
"bump2version",
39-
# Testing
40-
"coverage",
41-
"pytest",
42-
"pytest-asyncio",
43-
"pytest-cov",
44-
"pytest-runner",
45-
"respx",
46-
# Packaging
47-
"twine",
48-
"watchdog",
49-
"wheel",
50-
# Pre-commit / Linting
51-
"ruff==0.1.6",
52-
"pre-commit==3.5.0",
53-
"pyupgrade==3.15.0",
54-
"black==23.11.0",
55-
# "flake8-docstrings==1.5.0",
56-
"pydocstyle==6.1.1",
57-
"bandit==1.7.5",
58-
"isort==5.12.0",
59-
]
60-
docs = [
61-
"Sphinx",
62-
"sphinx-mdinclude",
63-
"sphinx_rtd_theme",
64-
]
65-
6635
[project.scripts]
6736
xbox-authenticate = "xbox.webapi.scripts.authenticate:main"
6837
xbox-change-gt = "xbox.webapi.scripts.change_gamertag:main"
@@ -71,57 +40,23 @@ xbox-searchlive = "xbox.webapi.scripts.search:main"
7140
xbox-xal = "xbox.webapi.scripts.xal:main"
7241

7342
[tool.ruff]
74-
# Exclude a variety of commonly ignored directories.
75-
exclude = [
76-
".bzr",
77-
".direnv",
78-
".eggs",
79-
".git",
80-
".git-rewrite",
81-
".hg",
82-
".mypy_cache",
83-
".nox",
84-
".pants.d",
85-
".pytype",
86-
".ruff_cache",
87-
".svn",
88-
".tox",
89-
".venv",
90-
"__pypackages__",
91-
"_build",
92-
"buck-out",
93-
"build",
94-
"docs",
95-
"dist",
96-
"node_modules",
97-
"venv",
98-
]
99-
100-
# Same as Black.
10143
line-length = 88
102-
indent-width = 4
103-
104-
# Assume Python 3.8
10544
target-version = "py38"
10645

10746
[tool.ruff.lint]
10847
select = ["E4", "E7", "E9", "F"]
10948
ignore = []
11049

111-
fixable = ["ALL"]
112-
unfixable = []
113-
# Allow unused variables when underscore-prefixed.
114-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
50+
[tool.ruff.lint.isort]
51+
force-sort-within-sections = true
52+
known-first-party = ["aiontfy"]
53+
combine-as-imports = true
54+
split-on-trailing-comma = false
11555

11656
[tool.ruff.format]
117-
# Like Black, use double quotes for strings.
11857
quote-style = "double"
119-
# Like Black, indent with spaces, rather than tabs.
12058
indent-style = "space"
121-
# Like Black, respect magic trailing commas.
122-
skip-magic-trailing-comma = false
123-
# Like Black, automatically detect the appropriate line ending.
124-
line-ending = "auto"
59+
12560

12661
[tool.bandit]
12762
exclude_dirs = ["tests"]
@@ -141,10 +76,6 @@ tests = [
14176
"B604"
14277
]
14378

144-
[tool.black]
145-
target-version = ["py37", "py38", "py39", "py310", "py311"]
146-
exclude = 'generated'
147-
14879
[tool.hatch.version]
14980
source = "regex_commit"
15081
commit_extra_args = ["-e"]

0 commit comments

Comments
 (0)