@@ -39,7 +39,6 @@ dev = [
39
39
" twine>=4.0.2" ,
40
40
" pytest>=7.4.0" ,
41
41
" pytest-cov>=6.0.0" ,
42
- " black>=24.1.1" ,
43
42
" ruff>=0.2.1" ,
44
43
]
45
44
@@ -55,7 +54,7 @@ docs = [
55
54
Homepage = " https://github.com/shoumikchow/bbox-visualizer"
56
55
Repository = " https://github.com/shoumikchow/bbox-visualizer"
57
56
Documentation = " https://bbox-visualizer.readthedocs.io"
58
- Changelog = " https://github.com/shoumikchow/bbox-visualizer/blob/main/HISTORY.md "
57
+ Changelog = " https://github.com/shoumikchow/bbox-visualizer/releases "
59
58
60
59
[tool .hatch .build .targets .wheel ]
61
60
packages = [" bbox_visualizer" ]
@@ -64,7 +63,6 @@ packages = ["bbox_visualizer"]
64
63
include = [
65
64
" LICENSE" ,
66
65
" README.md" ,
67
- " HISTORY.md" ,
68
66
" AUTHORS.md" ,
69
67
" CODE_OF_CONDUCT.md" ,
70
68
" CONTRIBUTING.md" ,
@@ -90,22 +88,9 @@ exclude = [
90
88
addopts = " --cov=bbox_visualizer"
91
89
testpaths = [" tests" ]
92
90
93
- [tool .black ]
94
- line-length = 88
95
- target-version = [" py38" , " py39" , " py310" , " py311" , " py312" ]
96
- include = ' \.pyi?$'
97
- extend-exclude = '''
98
- # A regex preceded with ^/ will apply only to files and directories
99
- # in the root of the project.
100
- ^/docs/
101
- '''
102
-
103
91
[tool .ruff ]
104
- # Enable pycodestyle ('E'), Pyflakes ('F'),
105
- # flake8-bugbear ('B'), isort ('I')
106
- select = [" E" , " F" , " B" , " I" ]
107
- ignore = [" E501" ] # Line length is handled by black
108
- line-length = 88 # Match black's line length
92
+ # General settings that apply to all Ruff functionality
93
+ line-length = 88
109
94
target-version = " py38"
110
95
exclude = [
111
96
" docs/*" ,
@@ -114,14 +99,36 @@ exclude = [
114
99
" .venv" ,
115
100
]
116
101
117
- # Allow autofix behavior for specific rules
102
+ [tool .ruff .format ]
103
+ quote-style = " double"
104
+ indent-style = " space"
105
+ skip-magic-trailing-comma = false
106
+ line-ending = " auto"
107
+
118
108
[tool .ruff .lint ]
119
- fixable = [" I001" ] # Import sorting
109
+ # All the rules that were previously enabled plus additional useful ones
110
+ select = [
111
+ " E" , # pycodestyle
112
+ " F" , # Pyflakes
113
+ " B" , # flake8-bugbear
114
+ " I" , # isort
115
+ " W" , # pycodestyle warnings
116
+ " C90" , # mccabe
117
+ " N" , # pep8-naming
118
+ " UP" , # pyupgrade
119
+ " RUF" , # Ruff-specific rules
120
+ ]
121
+ ignore = [
122
+ " E501" , # Line length is handled by formatter
123
+ " N802" , # Function name should be lowercase
124
+ " N806" , # Variable name should be lowercase
125
+ " N816" , # Variable in global scope should not be mixedCase
126
+ ]
127
+ fixable = [" ALL" ]
120
128
unfixable = []
121
129
122
130
# Ignore `E402` (import violations) in all `__init__.py` files
123
- [tool .ruff .per-file-ignores ]
124
- "__init__.py" = [" E402" ]
131
+ per-file-ignores = { "__init__.py" = [" E402" ] }
125
132
126
- [tool .ruff .isort ]
133
+ [tool .ruff .lint . isort ]
127
134
known-first-party = [" bbox_visualizer" ]
0 commit comments