@@ -32,37 +32,6 @@ dynamic = ["version"]
3232[project .urls ]
3333Homepage = " 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 ]
6736xbox-authenticate = " xbox.webapi.scripts.authenticate:main"
6837xbox-change-gt = " xbox.webapi.scripts.change_gamertag:main"
@@ -71,57 +40,23 @@ xbox-searchlive = "xbox.webapi.scripts.search:main"
7140xbox-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.
10143line-length = 88
102- indent-width = 4
103-
104- # Assume Python 3.8
10544target-version = " py38"
10645
10746[tool .ruff .lint ]
10847select = [" E4" , " E7" , " E9" , " F" ]
10948ignore = []
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.
11857quote-style = " double"
119- # Like Black, indent with spaces, rather than tabs.
12058indent-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 ]
12762exclude_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 ]
14980source = " regex_commit"
15081commit_extra_args = [" -e" ]
0 commit comments