-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
151 lines (138 loc) · 6.92 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "factorialhr"
dynamic = ["version"]
authors = [
{ name = "Leon Budnick", email = "[email protected]" },
]
description = "Python package for the api of FactorialHR"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Topic :: Office/Business",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
]
keywords = [
"FactorialHR",
"HR",
]
dependencies = [
"httpx",
"pydantic"
]
[project.urls]
"Homepage" = "https://github.com/leon1995/factorialhr"
"Bug Tracker" = "https://github.com/leon1995/factorialhr/issues"
[project.optional-dependencies]
lint = [
"ruff",
'mypy',
]
[tool.hatch.build.targets.sdist]
include = [
"src/factorialhr/**/*",
"LICENSE",
"README.md",
"pyproject.toml",
"CHANGELOG.md"
]
support-legacy = false
[tool.hatch.build.targets.wheel]
packages = ["src/factorialhr"]
[tool.hatch.version]
path = "src/factorialhr/__init__.py"
[tool.ruff]
extend-select = [# https://beta.ruff.rs/docs/settings/#extend-select
"A", # https://beta.ruff.rs/docs/rules/#flake8-builtins-a
"ANN", # https://beta.ruff.rs/docs/rules/#flake8-annotations-ann
"ARG", # https://beta.ruff.rs/docs/rules/#flake8-unused-arguments-arg
"B", # https://beta.ruff.rs/docs/rules/#flake8-bugbear-b
"BLE", # https://beta.ruff.rs/docs/rules/#flake8-blind-except-ble
"C4", # https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4
"C90", # https://beta.ruff.rs/docs/rules/#mccabe-c90
"COM", # https://beta.ruff.rs/docs/rules/#flake8-commas-com
"D", # https://beta.ruff.rs/docs/rules/#pydocstyle-d
"ERA", # https://beta.ruff.rs/docs/rules/#eradicate-era
"G", # https://beta.ruff.rs/docs/rules/#flake8-logging-format-g
"I", # https://beta.ruff.rs/docs/rules/#isort-i
"ICN", # https://beta.ruff.rs/docs/rules/#flake8-import-conventions-icn
"INP", # https://beta.ruff.rs/docs/rules/#flake8-no-pep420-inp
"ISC", # https://beta.ruff.rs/docs/rules/#flake8-implicit-str-concat-isc
"ICN", # https://beta.ruff.rs/docs/rules/#flake8-import-conventions-icn
"N", # https://beta.ruff.rs/docs/rules/#pep8-naming-n
"PGH", # https://beta.ruff.rs/docs/rules/#pygrep-hooks-pgh
"PIE", # https://beta.ruff.rs/docs/rules/#flake8-pie-pie
"PL", # https://beta.ruff.rs/docs/rules/#pylint-pl
# "PT", # https://beta.ruff.rs/docs/rules/#flake8-pytest-style-pt
"PTH", # https://beta.ruff.rs/docs/rules/#flake8-use-pathlib-pth
"PYI", # https://beta.ruff.rs/docs/rules/#flake8-pyi-pyi
"Q", # https://beta.ruff.rs/docs/rules/#flake8-quotes-q
"RET", # https://beta.ruff.rs/docs/rules/#flake8-return-ret
"RSE", # https://beta.ruff.rs/docs/rules/#flake8-raise-rse
"RUF", # https://beta.ruff.rs/docs/rules/#ruff-specific-rules-ruf
"S", # https://beta.ruff.rs/docs/rules/#flake8-bandit-s
"SIM", # https://beta.ruff.rs/docs/rules/#flake8-simplify-sim
"SLF", # https://beta.ruff.rs/docs/rules/#flake8-self-slf
"T20", # https://beta.ruff.rs/docs/rules/#flake8-print-t20
"TCH", # https://beta.ruff.rs/docs/rules/#flake8-type-checking-tch
"TID", # https://beta.ruff.rs/docs/rules/#flake8-tidy-imports-tid
"UP", # https://beta.ruff.rs/docs/rules/#pyupgrade-up
"YTT" # https://beta.ruff.rs/docs/rules/#flake8-2020-ytt
]
ignore = [# https://beta.ruff.rs/docs/settings/#ignore
"A003", # https://docs.astral.sh/ruff/rules/builtin-attribute-shadowing/
"ANN003", # https://docs.astral.sh/ruff/rules/missing-type-kwargs/
"ANN101", # https://beta.ruff.rs/docs/rules/missing-type-self/
"ANN102", # https://beta.ruff.rs/docs/rules/missing-type-cls/
"ANN204", # https://beta.ruff.rs/docs/rules/missing-return-type-special-method/
"ANN401", # https://beta.ruff.rs/docs/rules/any-type/
"C408", # https://beta.ruff.rs/docs/rules/unnecessary-collection-call/
"C409", # https://beta.ruff.rs/docs/rules/unnecessary-literal-within-tuple-call/
"D105", # undocumented-magic-method
"D107", # undocumented-public-init
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"Q000", # https://beta.ruff.rs/docs/rules/bad-quotes-inline-string/
"S101", # https://beta.ruff.rs/docs/rules/assert/
"S311", # https://beta.ruff.rs/docs/rules/suspicious-non-cryptographic-random-usage/
"SIM102", # collapsible-if
"T201", # https://beta.ruff.rs/docs/rules/print/
]
line-length = 120 # https://beta.ruff.rs/docs/settings/#line-length
target-version = "py311" # https://beta.ruff.rs/docs/settings/#target-version
# Allow imports relative to the "src" and "test" directories.
src = ["src", "test"] # https://beta.ruff.rs/docs/settings/#src
# In addition to the standard set of exclusions, omit all tutorials and examples
extend-exclude = ["examples", "tools", "tutorial"] # https://beta.ruff.rs/docs/settings/#extend-exclude
[tool.ruff.flake8-annotations]
allow-star-arg-any = true # https://beta.ruff.rs/docs/settings/#allow-star-arg-any
suppress-none-returning = true # https://beta.ruff.rs/docs/settings/#suppress-none-returning
[tool.ruff.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true # https://beta.ruff.rs/docs/settings/#allow-dict-calls-with-keyword-arguments
[tool.ruff.pycodestyle]
max-doc-length = 120 # https://beta.ruff.rs/docs/settings/#max-doc-length
[tool.ruff.extend-per-file-ignores]
"__init__.py" = ["D104"]
"src/factorialhr/endpoints.py" = ["D101"]
"src/factorialhr/models.py" = ["D101"]
[tool.mypy]
python_version = "3.9" # https://mypy.readthedocs.io/en/stable/config_file.html#confval-python_version
strict = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-strict
disallow_untyped_calls = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-disallow_untyped_calls
disallow_untyped_defs = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-disallow_untyped_defs
disallow_any_generics = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-disallow_any_generics
disallow_any_unimported = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-disallow_any_unimported
warn_redundant_casts = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-warn_redundant_casts
check_untyped_defs = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-check_untyped_defs
warn_return_any = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-warn_return_any
warn_unused_configs = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-warn_unused_configs
warn_unused_ignores = true # https://mypy.readthedocs.io/en/stable/config_file.html#confval-warn_unused_ignores