FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python_package/pyproject.toml at main · RasmussenLab/python_package · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
RasmussenLab
/
python_package
Public template
Notifications
You must be signed in to change notification settings
Fork
2
Star
1
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python_package
/
pyproject.toml
Copy path
More file actions
More file actions
Latest commit
History
History
History
71 lines (63 loc) · 2.23 KB
Breadcrumbs
python_package
/
pyproject.toml
Copy path
File metadata and controls
71 lines (63 loc) · 2.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
ref: https://setuptools.pypa.io/en/stable/userguide/pyproject_config.html
[
project
]
authors
= [
{
name
=
"
First Last
"
,
email
=
"
first.last@gmail.com
"
},
]
description
=
"
A small example package
"
name
=
"
python_package
"
#
This means: Load the version from the package itself.
#
See the section below: [tools.setuptools.dynamic]
dynamic
= [
"
version
"
,
#
version is loaded from the package
#
"dependencies", # add if using requirements.txt
]
readme
=
"
README.md
"
requires-python
=
"
>=3.9
"
#
test all higher Python versions
#
These are keywords
classifiers
= [
"
Programming Language :: Python :: 3
"
,
"
Operating System :: OS Independent
"
,
]
license
=
"
MIT
"
#
https://choosealicense.com/
#
# add dependencies here: (use one of the two)
#
dependencies = ["numpy", "pandas", "scipy", "matplotlib", "seaborn"]
#
use requirements.txt instead of pyproject.toml for dependencies
#
https://stackoverflow.com/a/73600610/9684872
#
! uncomment also dependencies in the dynamic section above
#
[tool.setuptools.dynamic]
#
dependencies = {file = ["requirements.txt"]}
[
project
.
urls
]
"Bug Tracker"
=
"
https://github.com/RasmussenLab/python_package/issues
"
"Homepage"
=
"
https://github.com/RasmussenLab/python_package
"
[
project
.
optional-dependencies
]
#
Optional dependencies to locally build the documentation, also used for
#
readthedocs.
docs
= [
"
sphinx
"
,
"
sphinx-book-theme
"
,
"
myst-nb
"
,
"
ipywidgets
"
,
"
sphinx-new-tab-link!=0.2.2
"
,
"
jupytext
"
,
"
sphinx-copybutton
"
,
]
#
local development options
dev
= [
"
black[jupyter]
"
,
"
ruff
"
,
"
pytest
"
]
#
Configure the Ruff linter: Ignore error number 501
[
tool
.
ruff
]
#
https://docs.astral.sh/ruff/rules/#flake8-bandit-s
#
lint.ignore = ["E501"] # Ignore line length errors
#
Allow lines to be as long as (default is 88 in black)
[
tool
.
ruff
.
lint
]
#
https://docs.astral.sh/ruff/tutorial/#rule-selection
#
1. Enable flake8-bugbear (`B`) rules
#
2. Enable pycodestyle (`E`) errors and (`W`) warnings
#
3. Pyflakes (`F`) errors
extend-select
= [
"
E
"
,
"
W
"
,
"
F
"
,
"
B
"
]
[
build-system
]
build-backend
=
"
setuptools.build_meta
"
requires
= [
"
setuptools>=64
"
,
"
setuptools_scm>=8
"
]
[
tool
.
setuptools_scm
]
#
https://setuptools-scm.readthedocs.io/
#
used to pick up the version from the git tags or the latest commit.
[
tool
.
isort
]
profile
=
"
black
"
Back
|
FazBrowse Home
|
New Git URL