-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
112 lines (98 loc) · 2.94 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
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "guacamole-user-sync"
dynamic = ["version"]
description = "Synchronise a Guacamole PostgreSQL database with an LDAP server, such as Microsoft Active Directory"
readme = "README.md"
requires-python = "==3.11.*"
license = "MIT"
keywords = []
authors = [
{ name = "James Robinson", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"ldap3==2.9.1",
"psycopg==3.2.3",
"SQLAlchemy==2.0.36",
"sqlparse==0.5.3",
]
[project.urls]
Documentation = "https://github.com/alan-turing-institute/guacamole-user-sync#readme"
Issues = "https://github.com/alan-turing-institute/guacamole-user-sync/issues"
Source = "https://github.com/alan-turing-institute/guacamole-user-sync"
[project.optional-dependencies]
lint = [
"black==24.10.0",
"mypy==1.14.1",
"ruff==0.9.0",
]
test = [
"coverage[toml]==7.6.10",
"pytest==8.3.4",
]
[tool.coverage.paths]
source = ["guacamole_user_sync/"]
[tool.coverage.report]
show_missing = true
[tool.coverage.run]
include = ["guacamole_user_sync/*"]
omit = ["tests/*"]
relative_files = true
[tool.hatch.version]
path = "guacamole_user_sync/__about__.py"
[tool.hatch.envs.lint]
detached = true
features = ["lint"]
[tool.hatch.envs.lint.scripts]
all = [
"fmt",
"style",
"typing",
]
fmt = [
"black {args:guacamole_user_sync tests synchronise.py}",
"ruff check --fix {args:guacamole_user_sync tests synchronise.py}",
]
style = [
"ruff check {args:guacamole_user_sync tests synchronise.py}",
"black --check --diff {args:guacamole_user_sync tests synchronise.py}",
]
typing = "mypy {args:guacamole_user_sync tests synchronise.py}"
[tool.hatch.envs.test]
features = ["test"]
[tool.hatch.envs.test.scripts]
all = ["python-test", "python-coverage"]
python-test = "coverage run -m pytest {args: tests}"
python-coverage = "coverage report {args:}"
[tool.mypy]
disallow_untyped_decorators = false # workaround for incorrectly-flagged pytest.fixture calls
files = "guacamole_user_sync" # run mypy over this directory
strict = true # enable all optional error checking flags
[[tool.mypy.overrides]]
module = [
"ldap3.*",
"pytest.*",
"sqlalchemy.*",
"sqlparse.*",
]
ignore_missing_imports = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D100", # undocumented-public-module
"D102", # undocumented-public-method
"D103", # undocumented-public-function
"D107", # undocumented-public-init
"D203", # one-blank-line-before-class [conflicts with D211]
"D213", # multi-line-summary-second-line [conflicts with D212]
"S101", # assert [conflicts with pytest]
]