1+ [build-system ]
2+ requires = [" setuptools>=70.0" , " setuptools-scm>=8.0" ]
3+ build-backend = " setuptools.build_meta"
4+
5+ [project .entry-points ."mkdocs .plugins" ]
6+ "git-revision-date-localized" = " mkdocs_git_revision_date_localized_plugin.plugin:GitRevisionDateLocalizedPlugin"
7+
8+ [project ]
9+ name =" mkdocs-git-revision-date-localized-plugin"
10+ keywords = [" mkdocs" , " plugin" ]
11+ authors = [
12+ { name = " Tim Vink" , email = " vinktim@gmail.com" }
13+ ]
14+ license = { text = " MIT" }
15+
16+ description =" Mkdocs plugin that enables displaying the localized date of the last git modification of a markdown file."
17+ readme = { file = " README.md" , content-type = " text/markdown" }
18+
19+ requires-python =" >=3.8"
20+
21+ classifiers =[
22+ " Operating System :: OS Independent" ,
23+ " Programming Language :: Python" ,
24+ " Programming Language :: Python :: 3" ,
25+ " Programming Language :: Python :: 3.8" ,
26+ " Programming Language :: Python :: 3.9" ,
27+ " Programming Language :: Python :: 3.10" ,
28+ " Programming Language :: Python :: 3.11" ,
29+ " License :: OSI Approved :: MIT License" ,
30+ ]
31+
32+ dynamic = [" version" ," dependencies" ," optional-dependencies" ]
33+
34+ [project .urls ]
35+ "Homepage" = " https://github.com/timvink/mkdocs-git-revision-date-localized-plugin"
36+
37+ [tool .setuptools .dynamic ]
38+ version = {attr = " mkdocs_git_revision_date_localized_plugin.__version__" }
39+
40+ dependencies ={file = [" requirements.txt" ]}
41+
42+ optional-dependencies.dev ={file = [" requirements_dev.txt" ]}
43+ optional-dependencies.base ={file = [" requirements.txt" ]}
44+ optional-dependencies.all ={file = [" requirements.txt" , " requirements_dev.txt" ]}
45+
46+ [tool .pytest .ini_options ]
47+ markers = [
48+ " serial" ,
49+ " no_temp_caching" ,
50+ ]
51+
52+ # https://github.com/charliermarsh/ruff
53+ [tool .ruff ]
54+
55+ # Rules to apply
56+ lint.select = [" E" , " F" , " I" , " UP" ]
57+
58+ # Exclude rules
59+ lint.ignore = [' D104'
60+ ,' D212'
61+ ,' D200'
62+ ,' D412'
63+ ,' E731'
64+ ,' E501'
65+ ,' E722'
66+ ,' D104'
67+ ,' E402'
68+ ," UP038" # UP038 Use `X | Y` in `isinstance` call instead of `(X, Y)`
69+ ]
70+
71+ # Exclude files in tests dir
72+ lint.exclude = [
73+ " .bzr" ,
74+ " .direnv" ,
75+ " .eggs" ,
76+ " .git" ,
77+ " .hg" ,
78+ " .mypy_cache" ,
79+ " .nox" ,
80+ " .pants.d" ,
81+ " .pytype" ,
82+ " .ruff_cache" ,
83+ " .svn" ,
84+ " .tox" ,
85+ " .venv" ,
86+ " __pypackages__" ,
87+ " _build" ,
88+ " buck-out" ,
89+ " build" ,
90+ " dist" ,
91+ " node_modules" ,
92+ " venv" ,
93+ ]
94+
95+ # Set line length, keep same as black
96+ line-length = 120
97+
98+ extend-exclude = [
99+ " *.yml" ,
100+ " *.toml" ,
101+ " *.md" ,
102+ " .json" ,
103+ " Makefile" ,
104+ " *.txt" ,
105+ ]
106+
107+ # supported for python 3.10
108+ target-version = " py310"
109+
110+ # Always autofix
111+ fix = true
112+
113+ [tool .uv ]
114+ dev-dependencies = [
115+ " ruff" ,
116+ ]
0 commit comments