-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
126 lines (111 loc) · 3.06 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
[project]
authors = [{name = "Gui Castelao", email = "guilherme@castelao.net"}]
dependencies = []
description = "Add a short description here"
name = "fied"
requires-python = ">= 3.9"
version = "0.0.1"
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.project]
channels = ["conda-forge", "anaconda", "main"]
platforms = ["osx-arm64", "linux-64", "win-64"]
[tool.pixi.pypi-dependencies]
fied = { path = ".", editable = true }
[tool.pixi.tasks]
[tool.pixi.dependencies]
dask = ">=2023.2.0,<2024"
geopandas = "==0.12.1"
matplotlib = "==3.6.2"
numpy = "==1.23.4"
pandas = "==1.2.0"
plotly = "==5.11.0"
pyarrow = "==9.0.0"
pyyaml = "==6.0"
pyxlsb = "==1.0.10"
requests = "==2.28.1"
seaborn = "==0.12.1"
scikit-learn = "==1.1.3"
python = "~=3.9.18"
[tool.pixi.environments]
default = { solve-group = "default" }
dev = { features = ["dev", "doc", "test"], solve-group = "default" }
doc = { features = ["doc"], solve-group = "default" }
test = { features = ["test"], solve-group = "default" }
[tool.pixi.feature.dev.dependencies]
ipython = "==8.15"
ruff = ">=0.9.6,<0.10"
[tool.pixi.feature.doc.dependencies]
sphinx = "==7.3.7"
[tool.pixi.feature.test.dependencies]
pytest = "~=7.4.0"
[tool.ruff]
line-length = 79
extend-exclude = [
"fied/energy/IEDB/ag_total.py",
"fied/energy/IEDB/county_energy_nonmfg.py",
"fied/energy/IEDB/mining_total.py",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
preview = true
select = [
# "A", # flake8-builtins
# "B", # flake8-bugbear
"ARG", # flake8-unused-arguments
"BLE", # flake8-blind-except
# "C4", # flake8-comprehensions
# "C90", # mccabe
"COM", # flake8-commas
# "D", # pydocstyle
# "E", # pycodestyle
# "EM", # flake8-errmsg
# "F", # Pyflakes
# "FURB", # refurb
"FLY", # flynt
# "G", # flake8-logging-format
"I", # isort
# "INP", # flake8-no-pep420
# "ISC", # flake8-implicit-str-concat
# "LOG", # flake8-logging
"N", # pep8-naming
"NPY", # numpy-specific
# "PD", # pandas-vet
# "PERF", # Perflint
# "PIE", # flake8-pie
# "PL", # Pylint
# "PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
# "Q", # flake8-quotes
# "RET", # flake8-return
"RSE", # flake8-raise
# "RUF", # Ruff-specific rules
# "S", # flake8-bandit
"SLF", # flake8-self
# "SIM", # flake8-simplify
"TID", # flake8-tidy-imports (absolute imports)
# "TRY", # tryceratops
# "UP", # pyupgrade
# "W", # Warning
]
ignore = [
"ARG001", # unused function argument
"ARG002", # unused method argument
"COM812", # missing-trailing-comma (incompatible with formatter)
"I001", # isort: imports are incorrectly sorted
"N801", # class name should use CapWords convention
"N802", # function name should be lowercase
"N803", # argument name should be lowercase
"N806", # variable in function should be lowercase
"N815", # mixedCase variable in class scope
"N816", # mixedCase variable in global scope
"N999", # invalid module name
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 72
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]