Commit Graph

24 Commits

Author SHA1 Message Date
fabiobarkoski 9fb26419ea Move metadata from setup.py to pyproject.toml
migrated the metadata from setup.py to pyproject.toml
following the recommendation from setuptools docs.

resolve: #1012
2023-06-29 22:57:22 -03:00
Afrid Hussain f766a70ede
Introducing new file 'pytest.ini' a conf file for pytest (#1047)
* Introducing new file 'pytest.ini' a conf file for pytest

* Completly removing conftest.py file

This commit removes the conftest.py file in the root directory, whose's intention is only to add project path to sys.path when pytest is run wihout any arguments.
Which can be replaced with pytest.ini configuration variables.

changes:

- Added pythonpath variable to pytest.ini file

Reference:

- https://docs.pytest.org/en/7.3.x/reference/reference.html#confval-pythonpath

* Explicitly telling pytest to run tests from  directory

When it is not given, it recursively searches for testing directories according to the naming conventions and other rules, which takes time. However when explicilty telling pytest which directory to run tests it directly runs tests, no more searching for directories

Changes:

- In pytest.ini file created a testpaths variable and initialized with test, if in future, if more testing directories comes, just adding the corresponding directories should do the work

Reference:
- https://docs.pytest.org/en/7.3.x/reference/reference.html#confval-testpaths
2023-04-24 09:51:58 +02:00
Martin Liska 8c06a042d6 pytest: disable legacypath 2023-03-27 09:51:24 +02:00
Todd Zullinger a7265dfda3 setup.cfg: rename license_file to license_files
In setuptools-56.0.0¹ license_file was changed to license_files.  The
former causes a deprecation warning.

¹ https://github.com/pypa/setuptools/issues/2620
  https://setuptools.pypa.io/en/latest/history.html?highlight=license_files#v56-0-0
2023-03-06 20:54:04 -05:00
Martin Liska 38b24d407b Run flake8 directly as pytest-flake8 is broken.
It's broken due to:
https://github.com/tholo/pytest-flake8/issues/87
2022-08-26 20:25:33 +02:00
Martin Liska ad6d779b50 Do not use flake8-simplify for testers automatically. 2022-07-25 22:03:42 +02:00
Martin Liska 8ae551d2eb Add flake8-simplify issues. 2022-07-25 21:44:18 +02:00
Tomáš Chvátal 4fa3b92904 Switch to pytest flake execution
From separate flake run that people seem to not run on their local
machines simply merge it into one commit and make sure that if
anyone runs pytest they also see the flake failures
2020-02-10 21:16:41 -05:00
Tomáš Chvátal acfca7b8c6 No longer ignore minor warnings from flake, rather fix them when seen 2020-02-10 21:16:41 -05:00
Tomáš Chvátal f07fbeda38 Use xdist for parallel test execution
This shaves up half the time spent in testsuite run so I think it
is worth it.
2019-09-19 07:10:54 -04:00
Tomáš Chvátal c05470316b
Have tests verbose by default 2019-07-15 13:46:52 +02:00
Tomáš Chvátal 18a20e7827
Make flake8 happy 2018-09-14 15:26:05 +02:00
Tomáš Chvátal 5f2436df78
Silence naming errors for now as there are too many, should be slowly fixed. 2018-08-01 13:12:14 +02:00
Tomáš Chvátal 0692e66398
Convert the rpmlint to initialized objects
As such all parameters should be passed properly and all objects
should have proper inheritance thus nothing should be depending
on explicit import order.

There is no functional change in this commit except for moving
the content to proper namespace and adding trivial tests if
deemed worth it

The DEFAULT values from the checks are already initialized by Config
class and as such they no longer are carried there.
2018-07-31 10:39:00 +02:00
Tomáš Chvátal e4465db12f
Do not ignore flake reports that do not report anything 2018-07-13 11:51:48 +02:00
Tomáš Chvátal 9da98a04e8
Make flake8 checking optional based on where flake8 is packaged 2018-07-12 19:12:10 +02:00
Tomáš Chvátal 5c52a41483
Add license file to metadata info 2018-07-12 14:46:13 +02:00
Tomáš Chvátal 2d32b6ec2f
Make sure setuptools run the tests 2018-07-12 14:46:12 +02:00
Dirk Mueller 49b7256217 Blacklist newer pycodestyle warnings 2018-07-09 22:04:45 +02:00
Ville Skyttä b1bb6eca4f test: Set up flake8-bugbear, enable it in fedoradev container 2017-08-06 15:01:35 +03:00
Ville Skyttä e77021da19 flake8: Ignore H105 2016-04-21 18:53:23 +03:00
Ville Skyttä 371f6959c3 Add hacking flake8 to Travis and ignores 2016-01-06 01:26:36 +02:00
Ville Skyttä a6b3e3f86e Test import order 2015-12-31 13:04:11 +02:00
Ville Skyttä 44cc12fa76 Add some pep8 settings 2015-10-26 15:36:52 +02:00