-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
100 lines (89 loc) · 2.3 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[build-system]
requires = ['flit_core>=3.9']
build-backend = 'flit_core.buildapi'
[project]
name = 'reloci'
version = '6.0'
description = 'Organize photos based on exif'
readme = 'README.md'
requires-python = '>=3.13'
license = {file = 'LICENSE'}
authors = [
{name = 'Arne de Laat', email = 'arne@delaat.net'},
]
maintainers = [
{name = 'Arne de Laat', email = 'arne@delaat.net'},
]
keywords = [
'photos',
'exif',
'date',
'directories',
'organize',
]
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Desktop Environment :: File Managers',
]
dependencies = [
'pyexiftool==0.5.6',
'python-baseconv==1.2.2',
'rich==13.9.4',
'tqdm==4.67.0',
]
[project.optional-dependencies]
dev = [
'coverage==7.6.4',
'mypy==1.13.0',
]
publish = [
'flit==3.10.1',
]
[project.urls]
Repository = 'https://github.com/153957/reloci/'
[project.scripts]
reloci = 'reloci.cli:reloci'
reloci_info = 'reloci.cli:info'
check_interval = 'reloci.check_interval:main'
[tool.mypy]
ignore_missing_imports = true
show_column_numbers = true
show_error_codes = true
strict = true
warn_return_any = true
warn_unused_configs = true
[tool.ruff]
line-length = 120
target-version = 'py311'
[tool.ruff.format]
quote-style = 'single' # Prefer single quotes, except for triple quotes strings
[tool.ruff.lint]
select = ['ALL'] # https://docs.astral.sh/ruff/rules/
ignore = [
'ANN101', # No need to add type to self
'CPY001', # Do not require copyright notices
'D', # Ignore docstring checks
'EM', # Allow messages directly in exceptions
'FBT001', # Allow positional for boolean arguments
'FBT002', # Allow default value for boolean arguments
'PD', # Not using pandas
'PLR0913', # Allow functions with many arguments
'PLR6301', # Allow not using self in methods
'PT', # Not using pytest
'RET504', # Allow variable assignment before return
'SIM108', # Allow if-else block instead of ternary
'T201', # Allow using print
'TRY003', # Specific messages for common exception classes
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint.isort]
lines-between-types = 1
[tool.coverage.run]
branch = true
source = [
'reloci',
'tests',
]