Skip to content

Commit

Permalink
Update all the CI and developer configurations (#293)
Browse files Browse the repository at this point in the history
* All the updates

* Update constraints

* Codecov CI fail

* Note 3.10

* Revert codecov config change

* Allow VsCode configuration
  • Loading branch information
cidrblock authored May 28, 2024
1 parent 091f722 commit 2ae824d
Show file tree
Hide file tree
Showing 18 changed files with 503 additions and 257 deletions.
27 changes: 23 additions & 4 deletions .config/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --all-extras --no-annotate --output-file=.config/constraints.txt --strip-extras pyproject.toml
# pip-compile --all-extras --no-annotate --output-file=.config/constraints.txt --strip-extras .config/requirements.in pyproject.toml
#
ansible-compat==24.5.1
ansible-core==2.17.0
astroid==3.2.2
attrs==23.2.0
babel==2.15.0
beautifulsoup4==4.12.3
black==24.4.2
build==1.2.1
cachetools==5.3.3
cairocffi==1.7.0
cairosvg==2.7.1
Expand All @@ -20,22 +22,26 @@ chardet==5.2.0
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
coverage==7.5.1
coverage==7.5.3
cryptography==42.0.7
csscompressor==0.9.5
cssselect2==0.7.0
defusedxml==0.7.1
dill==0.3.8
distlib==0.3.8
dnspython==2.6.1
docstring-parser-fork==0.0.5
exceptiongroup==1.2.1
execnet==2.1.1
filelock==3.14.0
flake8==7.0.0
ghp-import==2.1.0
griffe==0.45.2
htmlmin2==0.1.13
identify==2.5.36
idna==3.7
iniconfig==2.0.0
isort==5.13.2
jinja2==3.1.4
jsmin==3.0.1
jsonschema==4.22.0
Expand All @@ -45,13 +51,16 @@ markdown==3.6
markdown-exec==1.8.3
markdown-include==0.8.1
markupsafe==2.1.5
mccabe==0.7.0
mergedeep==1.3.4
mkdocs==1.6.0
mkdocs-ansible==24.3.1
mkdocs-autorefs==1.0.1
mkdocs-gen-files==0.5.0
mkdocs-get-deps==0.2.0
mkdocs-htmlproofer-plugin==1.2.1
mkdocs-material==9.5.24
mkdocs-macros-plugin==1.0.5
mkdocs-material==9.5.25
mkdocs-material-extensions==1.3.1
mkdocs-minify-plugin==0.8.0
mkdocs-monorepo-plugin==1.1.0
Expand All @@ -64,17 +73,22 @@ packaging==24.0
paginate==0.5.6
pathspec==0.12.1
pillow==10.3.0
pip-tools==7.4.1
pipdeptree==2.21.0
platformdirs==4.2.2
pluggy==1.5.0
pre-commit==3.7.1
pycodestyle==2.11.1
pycparser==2.22
pydoclint==0.4.1
pyflakes==3.2.0
pygments==2.18.0
pylint==3.2.2
pymdown-extensions==10.8.1
pyproject-api==1.6.1
pyproject-hooks==1.1.0
pytest==8.2.1
pytest-ansible==24.1.3
pytest-mock==3.14.0
pytest-xdist==3.6.1
python-dateutil==2.9.0.post0
python-slugify==8.0.4
Expand All @@ -89,16 +103,21 @@ ruff==0.4.5
six==1.16.0
soupsieve==2.5
subprocess-tee==0.4.1
termcolor==2.4.0
text-unidecode==1.3
tinycss2==1.3.0
toml-sort==0.23.1
tomli==2.0.1
tomlkit==0.12.5
tox==4.15.0
types-pyyaml==6.0.12.20240311
typing-extensions==4.12.0
urllib3==2.2.1
virtualenv==20.26.2
watchdog==4.0.1
webencodings==0.5.1
wheel==0.43.0

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
1 change: 1 addition & 0 deletions .config/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ autouse
basepython
calver
cidrblock
codecov
delenv
devel
endgroup
Expand Down
6 changes: 0 additions & 6 deletions .config/requirements-dev.in

This file was deleted.

14 changes: 12 additions & 2 deletions .config/requirements-test.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
ansible-core
coverage
black
coverage[toml]
flake8
mypy
pip-tools
pre-commit
pydoclint[flake8]
pylint
pytest
pytest_mock
pytest-xdist
ruff
toml-sort
tox
types-PyYAML
65 changes: 10 additions & 55 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,56 +1,11 @@
[flake8]

builtins = _

# Print the total number of errors:
count = true

# Don't even try to analyze these:
extend-exclude =
# No need to traverse egg info dir
*.egg-info,
# tool cache dirs
*_cache
# project env vars
.env,
# GitHub configs
.github,
# Cache files of MyPy
.mypy_cache,
# Cache files of pytest
.pytest_cache,
# Temp dir of pytest-testmon
.tmontmp,
# Occasional virtualenv dir
.venv
# VS Code
.vscode,
# Temporary build dir
build,
# This contains sdists and wheels of ansible-navigator that we don't want to check
dist,
# Metadata of `pip wheel` cmd is autogenerated
pip-wheel-metadata,
# adjacent venv
venv
# project tox directory
.tox

# IMPORTANT: avoid using ignore option, always use extend-ignore instead
# Completely and unconditionally ignore the following errors:
extend-ignore = F, E203

# Accessibility/large fonts and PEP8 unfriendly:
max-line-length = 100

# Allow certain violations in certain files:
# Please keep both sections of this list sorted, as it will be easier for others to find and add entries in the future
per-file-ignores =
# The following ignores have been researched and should be considered permanent
# each should be preceeded with an explanation of each of the error codes
# If other ignores are added for a specific file in the section following this,
# these will need to be added to that line as well.


# Count the number of occurrences of each error/warning code and print a report:
statistics = true
allow-init-docstring = True
arg-type-hints-in-docstring = False
check-return-types = False
select = DOC102
show-filenames-in-every-violation-message = True
skip-checking-short-docstrings = False
filename =
*/src/**/*.py
*/tests/**/*.py
style = google
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @cidrblock @ssbarnea
* @ansible/devtools
Loading

0 comments on commit 2ae824d

Please sign in to comment.