File tree Expand file tree Collapse file tree 8 files changed +34
-13
lines changed Expand file tree Collapse file tree 8 files changed +34
-13
lines changed Original file line number Diff line number Diff line change 73
73
# Ignore Jupyter Notebook related temp files
74
74
.ipynb_checkpoints /
75
75
/.ruff_cache /
76
+ .env
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ python:
26
26
- method : pip
27
27
path : .
28
28
extra_requirements :
29
- - docs
29
+ - dev
Original file line number Diff line number Diff line change 1
1
graft src
2
+ graft docs
3
+ graft etc
2
4
3
5
include *.LICENSE
4
6
include NOTICE
5
7
include *.ABOUT
6
8
include *.toml
7
9
include *.yml
8
10
include *.rst
11
+ include *.png
9
12
include setup.*
10
13
include configure*
11
14
include requirements*
12
- include .git*
15
+ include .dockerignore
16
+ include .gitignore
17
+ include .readthedocs.yml
18
+ include manage.py
19
+ include Dockerfile*
20
+ include Makefile
21
+ include MANIFEST.in
13
22
14
- global-exclude *.py[co] __pycache__ *.*~
23
+ include .VERSION
15
24
25
+ global-exclude *.py[co] __pycache__ *.*~
Original file line number Diff line number Diff line change @@ -13,8 +13,13 @@ PYTHON_EXE?=python3
13
13
VENV =venv
14
14
ACTIVATE? =. ${VENV}/bin/activate;
15
15
16
+
17
+ conf :
18
+ @echo " -> Install dependencies"
19
+ ./configure
20
+
16
21
dev :
17
- @echo " -> Configure the development envt. "
22
+ @echo " -> Configure and install development dependencies "
18
23
./configure --dev
19
24
20
25
doc8 :
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ CLI_ARGS=$1
29
29
30
30
# Requirement arguments passed to pip and used by default or with --dev.
31
31
REQUIREMENTS=" --editable . --constraint requirements.txt"
32
- DEV_REQUIREMENTS=" --editable .[testing ] --constraint requirements.txt --constraint requirements-dev.txt"
32
+ DEV_REQUIREMENTS=" --editable .[dev ] --constraint requirements.txt --constraint requirements-dev.txt"
33
33
34
34
# where we create a virtualenv
35
35
VIRTUALENV_DIR=venv
36
36
37
37
# Cleanable files and directories to delete with the --clean option
38
- CLEANABLE=" build dist venv .cache .eggs"
38
+ CLEANABLE=" build dist venv .cache .eggs *.egg-info docs/_build/ pip-selfcheck.json "
39
39
40
40
# extra arguments passed to pip
41
41
PIP_EXTRA_ARGS=" "
@@ -167,6 +167,7 @@ clean() {
167
167
for cln in $CLEANABLE ;
168
168
do rm -rf " ${CFG_ROOT_DIR:? } /${cln:? } " ;
169
169
done
170
+ find . -type f -name ' *.py[co]' -delete -o -type d -name __pycache__ -delete
170
171
set +e
171
172
exit
172
173
}
Original file line number Diff line number Diff line change 27
27
28
28
@ rem # Requirement arguments passed to pip and used by default or with --dev.
29
29
set " REQUIREMENTS = --editable . --constraint requirements.txt"
30
- set " DEV_REQUIREMENTS = --editable .[testing ] --constraint requirements.txt --constraint requirements-dev.txt"
30
+ set " DEV_REQUIREMENTS = --editable .[dev ] --constraint requirements.txt --constraint requirements-dev.txt"
31
31
32
32
@ rem # where we create a virtualenv
33
33
set " VIRTUALENV_DIR = venv"
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ norecursedirs = [
14
14
" dist" ,
15
15
" build" ,
16
16
" _build" ,
17
- " dist" ,
18
17
" etc" ,
19
18
" local" ,
20
19
" ci" ,
@@ -34,7 +33,9 @@ norecursedirs = [
34
33
" thirdparty" ,
35
34
" tmp" ,
36
35
" venv" ,
36
+ " .venv" ,
37
37
" tests/data" ,
38
+ " */tests/test_data" ,
38
39
" .eggs" ,
39
40
" src/*/data" ,
40
41
" tests/*/data"
@@ -65,6 +66,7 @@ include = [
65
66
" docs/**/*.py" ,
66
67
" *.py" ,
67
68
" ."
69
+
68
70
]
69
71
# ignore test data and testfiles: they should never be linted nor formatted
70
72
exclude = [
@@ -77,11 +79,12 @@ exclude = [
77
79
# vulnerablecode, fetchcode
78
80
" **/tests/*/test_data/**/*" ,
79
81
" **/tests/test_data/**/*" ,
82
+ # django migrations
83
+ " **/migrations/**/*" ,
80
84
# exclude vendored code from ScanCode
81
85
" src/_packagedcode" ,
82
86
]
83
87
84
-
85
88
[tool .ruff .lint ]
86
89
# Rules: https://docs.astral.sh/ruff/rules/
87
90
select = [
Original file line number Diff line number Diff line change @@ -41,8 +41,11 @@ license_files =
41
41
AUTHORS.rst
42
42
CHANGELOG.rst
43
43
CODE_OF_CONDUCT.rst
44
+ README.rst
44
45
45
46
[options]
47
+ python_requires = >=3.9
48
+
46
49
package_dir =
47
50
=src
48
51
packages = find:
@@ -51,7 +54,6 @@ zip_safe = false
51
54
52
55
setup_requires = setuptools_scm[toml] >= 4
53
56
54
- python_requires = >=3.8
55
57
56
58
install_requires =
57
59
attrs >= 18.1, !=20.1.0
@@ -78,11 +80,10 @@ console_scripts =
78
80
python-inspector = python_inspector.resolve_cli:resolve_dependencies
79
81
80
82
[options.extras_require]
81
- testing =
82
- pytest >= 6, != 7.0.0
83
+ dev =
84
+ pytest >= 7.0.1
83
85
pytest-xdist >= 2
84
86
aboutcode-toolkit >= 7.0.2
85
- pycodestyle >= 2.8.0
86
87
twine
87
88
ruff
88
89
pytest-rerunfailures
You can’t perform that action at this time.
0 commit comments